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

Sergio Lopez posted 2 patches 2 years, 2 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220302113644.43717-1-slp@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Elena Ufimtseva <elena.ufimtseva@oracle.com>, Jagannathan Raman <jag.raman@oracle.com>, John G Johnson <john.g.johnson@oracle.com>, Alex Williamson <alex.williamson@redhat.com>, Cornelia Huck <cohuck@redhat.com>, Thomas Huth <thuth@redhat.com>, Eric Farman <farman@linux.ibm.com>, Matthew Rosato <mjrosato@linux.ibm.com>, "Michael S. Tsirkin" <mst@redhat.com>, Halil Pasic <pasic@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Richard Henderson <richard.henderson@linaro.org>, David Hildenbrand <david@redhat.com>
There is a newer version of this series
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(-)
[PATCH 0/2] Enable vhost-user to be used on BSD systems
Posted by Sergio Lopez 2 years, 2 months ago
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