aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-04-20 17:34:02 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-05-07 07:46:58 +0200
commit9972ae314fc38b7e47ee7ccdbc8556b7cad8a930 (patch)
treebe251fee92f40293d60362ff7fe1503cc0df9e77 /hw/virtio
parent5e7b5ebaec4c2bcc2754ab1e8ac5a05b88fef073 (diff)
downloadqemu-9972ae314fc38b7e47ee7ccdbc8556b7cad8a930.zip
qemu-9972ae314fc38b7e47ee7ccdbc8556b7cad8a930.tar.gz
qemu-9972ae314fc38b7e47ee7ccdbc8556b7cad8a930.tar.bz2
build: move vhost-vsock configuration to Kconfig
vhost-vsock and vhost-user-vsock are two devices of their own; it should be possible to enable/disable them with --without-default-devices, not --without-default-features. Compute their default value in Kconfig to obtain the more intuitive behavior. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r--hw/virtio/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/virtio/Kconfig b/hw/virtio/Kconfig
index c144d42..b642ae1 100644
--- a/hw/virtio/Kconfig
+++ b/hw/virtio/Kconfig
@@ -59,6 +59,16 @@ config VIRTIO_MEM
depends on VIRTIO_MEM_SUPPORTED
select MEM_DEVICE
+config VHOST_VSOCK
+ bool
+ default y
+ depends on VIRTIO && VHOST_KERNEL
+
+config VHOST_USER_VSOCK
+ bool
+ default y
+ depends on VIRTIO && VHOST_USER
+
config VHOST_USER_I2C
bool
default y