virtio: fix --enable-vhost-user build on non-Linux
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Mar 2022 15:58:27 +0000 (17:58 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Mar 2022 13:58:06 +0000 (15:58 +0200)
commit14b61778bc968d121dd19c4e960d98c441271a7d
tree443547208855888bca036d2f85beabf5bea56413
parentf345abe36527a8b575482bb5a0616f43952bf1f4
virtio: fix --enable-vhost-user build on non-Linux

The vhost-shadow-virtqueue.c build requires include files from
linux-headers/, so it cannot be built on non-Linux systems.
Fortunately it is only needed by vhost-vdpa, so move it there.

Acked-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/meson.build