[PATCH 0/2] Enable vhost-user to be used on BSD systems

Sergio Lopez
2022-03-02T11:36:41Z

Since QEMU is already able to emulate ioeventfd using pipefd, we're already
pretty close to supporting vhost-user on non-Linux systems.

This two patches bridge the gap by:

1. Extending event_notifier_get_fd() to be able to return wfd when needed.

2. Modifying the build system to it allows enabling vhost-user on BSD.

Sergio Lopez (2):
Allow returning EventNotifier's wfd
Allow building vhost-user in BSD

accel/kvm/kvm-all.c | 12 +++----
block/linux-aio.c | 2 +-
block/nvme.c | 2 +-
configure | 5 +--
contrib/ivshmem-server/ivshmem-server.c | 5 +--
hw/hyperv/hyperv.c | 2 +-
hw/misc/ivshmem.c | 2 +-
hw/remote/iohub.c | 13 +++----
hw/remote/proxy.c | 4 +--
hw/vfio/ccw.c | 4 +--
hw/vfio/pci-quirks.c | 6 ++--
hw/vfio/pci.c | 48 +++++++++++++------------
hw/vfio/platform.c | 16 ++++-----
hw/virtio/vhost.c | 10 +++---
include/qemu/event_notifier.h | 2 +-
meson.build | 2 +-
target/s390x/kvm/kvm.c | 2 +-
util/aio-posix.c | 4 +--
util/event_notifier-posix.c | 5 ++-
util/vfio-helpers.c | 2 +-
20 files changed, 79 insertions(+), 69 deletions(-)

--
2.35.1