Commit 20c384f1 authored by Jason Wang's avatar Jason Wang Committed by Michael S. Tsirkin
Browse files

vhost: refine vhost and vringh kconfig



Currently, CONFIG_VHOST depends on CONFIG_VIRTUALIZATION. But vhost is
not necessarily for VM since it's a generic userspace and kernel
communication protocol. Such dependency may prevent archs without
virtualization support from using vhost.

To solve this, a dedicated vhost menu is created under drivers so
CONIFG_VHOST can be decoupled out of CONFIG_VIRTUALIZATION.

While at it, also squash Kconfig.vringh into vhost Kconfig file. This
avoids the trick of conditional inclusion from VOP or CAIF. Then it
will be easier to introduce new vringh users and common dependency for
both vringh and vhost.

Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200326140125.19794-2-jasowang@redhat.com


Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 5a6b4cc5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -54,6 +54,4 @@ config KVM_ARM_HOST
	---help---
	  Provides host support for ARM processors.

source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
+0 −2
Original line number Diff line number Diff line
@@ -64,6 +64,4 @@ config KVM_ARM_PMU
config KVM_INDIRECT_VECTORS
       def_bool KVM && (HARDEN_BRANCH_PREDICTOR || HARDEN_EL2_VECTORS)

source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
+0 −2
Original line number Diff line number Diff line
@@ -72,6 +72,4 @@ config KVM_MIPS_DEBUG_COP0_COUNTERS

	  If unsure, say N.

source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
+0 −2
Original line number Diff line number Diff line
@@ -204,6 +204,4 @@ config KVM_XIVE
	default y
	depends on KVM_XICS && PPC_XIVE_NATIVE && KVM_BOOK3S_HV_POSSIBLE

source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
+0 −4
Original line number Diff line number Diff line
@@ -55,8 +55,4 @@ config KVM_S390_UCONTROL

	  If unsure, say N.

# OK, it's a little counter-intuitive to do this, but it puts it neatly under
# the virtualization menu.
source "drivers/vhost/Kconfig"

endif # VIRTUALIZATION
Loading