diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-05-24 11:37:39 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-06-23 02:54:44 -0400 |
commit | 6df956299a751c1eff03a8ea791a0182a688a7cc (patch) | |
tree | d6535e0b5e3b0fa691dba7e4df04c5d2a233bcbc /hw/virtio/Kconfig | |
parent | 5268f5f5224ed67de63e0b91b05e410a97dbb976 (diff) | |
download | qemu-6df956299a751c1eff03a8ea791a0182a688a7cc.zip qemu-6df956299a751c1eff03a8ea791a0182a688a7cc.tar.gz qemu-6df956299a751c1eff03a8ea791a0182a688a7cc.tar.bz2 |
hw/virtio: Introduce VHOST_VSOCK_COMMON symbol in Kconfig
Instead of adding 'vhost-vsock-common.c' twice (for VHOST_VSOCK
and VHOST_USER_VSOCK), have it depend on VHOST_VSOCK_COMMON,
selected by both symbols.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230524093744.88442-6-philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Diffstat (limited to 'hw/virtio/Kconfig')
-rw-r--r-- | hw/virtio/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/virtio/Kconfig b/hw/virtio/Kconfig index 89e9e42..de7a354 100644 --- a/hw/virtio/Kconfig +++ b/hw/virtio/Kconfig @@ -56,14 +56,20 @@ config VIRTIO_MEM depends on VIRTIO_MEM_SUPPORTED select MEM_DEVICE +config VHOST_VSOCK_COMMON + bool + depends on VIRTIO + config VHOST_VSOCK bool default y + select VHOST_VSOCK_COMMON depends on VIRTIO && VHOST_KERNEL config VHOST_USER_VSOCK bool default y + select VHOST_VSOCK_COMMON depends on VIRTIO && VHOST_USER config VHOST_USER_I2C |