diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-02-14 18:35:53 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-02-21 12:28:01 -0500 |
commit | 299e6f19b3e285f3ab00b780e3b48f5e58b5d4ed (patch) | |
tree | 8f8aab219b0cbd50d1dcbcad4cb14ad2555c6617 /hw/virtio/Makefile.objs | |
parent | af3bba761a1208c8515bcc72fc48d0f9045d040c (diff) | |
download | qemu-299e6f19b3e285f3ab00b780e3b48f5e58b5d4ed.zip qemu-299e6f19b3e285f3ab00b780e3b48f5e58b5d4ed.tar.gz qemu-299e6f19b3e285f3ab00b780e3b48f5e58b5d4ed.tar.bz2 |
vhost-net: revamp configure logic
Detect all invalid configurations (e.g. mingw32 with vhost-user,
non-Linux with vhost-kernel). As a collateral benefit, all vhost-kernel
backends can be now disabled if one wants to reduce the attack surface.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1543851204-41186-6-git-send-email-pbonzini@redhat.com>
Message-Id: <1550165756-21617-7-git-send-email-pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/Makefile.objs')
-rw-r--r-- | hw/virtio/Makefile.objs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/virtio/Makefile.objs b/hw/virtio/Makefile.objs index ce542e7..a3eb8ed 100644 --- a/hw/virtio/Makefile.objs +++ b/hw/virtio/Makefile.objs @@ -2,8 +2,8 @@ ifeq ($(CONFIG_VIRTIO),y) common-obj-y += virtio-bus.o obj-y += virtio.o -obj-$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_LINUX)) += vhost.o vhost-backend.o -common-obj-$(call lnot,$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_LINUX))) += vhost-stub.o +obj-$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_VHOST_KERNEL)) += vhost.o vhost-backend.o +common-obj-$(call lnot,$(call lor,$(CONFIG_VHOST_USER),$(CONFIG_VHOST_KERNEL))) += vhost-stub.o obj-$(CONFIG_VHOST_USER) += vhost-user.o common-obj-$(CONFIG_VIRTIO_RNG) += virtio-rng.o |