build-sys: add --disable-vhost-user
commite6a74868d92f858ac33915b6772999d7de2fd288
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 3 Aug 2017 09:07:46 +0000 (3 11:07 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 3 Aug 2017 12:55:41 +0000 (3 15:55 +0300)
treec64cbf17d6fa69e46da4f8753e8d0e7c558901c3
parentaaaec6acad7cf97372d48c1b09126a09697519c8
build-sys: add --disable-vhost-user

Learn to compile out vhost-user (net, scsi & upcoming users). Keep it
enabled by default on non-win32, that is assumed to be POSIX. Fail if
trying to enable it on win32.

When trying to make a vhost-user netdev, it gives the following error:

-netdev vhost-user,id=foo,chardev=chr-test: Parameter 'type' expects a netdev backend type

And similar error with the HMP/QMP monitors.

While at it, rename CONFIG_VHOST_NET_TEST CONFIG_VHOST_USER_NET_TEST
since it's a vhost-user specific variable.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
configure
default-configs/pci.mak
default-configs/s390x-softmmu.mak
hw/virtio/virtio-pci.c
tests/Makefile.include