qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Enable vhost-user to be used on BSD systems
@ 2022-03-04 10:08 Sergio Lopez
  2022-03-04 10:08 ` [PATCH v4 1/4] event_notifier: add event_notifier_get_wfd() Sergio Lopez
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Sergio Lopez @ 2022-03-04 10:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, John G Johnson, kvm, David Hildenbrand, Eric Farman,
	Jagannathan Raman, Matthew Rosato, qemu-block,
	Michael S. Tsirkin, Elena Ufimtseva, Halil Pasic,
	Christian Borntraeger, vgoyal, Thomas Huth, Sergio Lopez,
	Richard Henderson, Alex Williamson, Stefan Hajnoczi, Kevin Wolf,
	qemu-s390x, Cornelia Huck, Philippe Mathieu-Daudé,
	Hanna Reitz, Paolo Bonzini

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. Adding a new event_notifier_get_wfd() to return wfd on the places where
   the peer is expected to write to the notifier.

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

v1->v2:
  - Drop: "Allow returning EventNotifier's wfd" (Alex Williamson)
  - Add: "event_notifier: add event_notifier_get_wfd()" (Alex Williamson)
  - Add: "vhost: use wfd on functions setting vring call fd"
  - Rename: "Allow building vhost-user in BSD" to "configure, meson: allow
    enabling vhost-user on all POSIX systems"
  - Instead of making possible enabling vhost-user on Linux and BSD systems,
    allow enabling it on all non-Windows platforms. (Paolo Bonzini)

v2->v3:
  - Add a section to docs/interop/vhost-user.rst explaining how vhost-user
    is supported on non-Linux platforms. (Stefan Hajnoczi)

v3->v4:
  - Some documentation fixes. (Stefan Hajnoczi)
  - Pick up Reviewed-by tags.

Sergio Lopez (4):
  event_notifier: add event_notifier_get_wfd()
  vhost: use wfd on functions setting vring call fd
  configure, meson: allow enabling vhost-user on all POSIX systems
  docs: vhost-user: add subsection for non-Linux platforms

 configure                     |  4 ++--
 docs/interop/vhost-user.rst   | 20 ++++++++++++++++++++
 hw/virtio/vhost.c             |  6 +++---
 include/qemu/event_notifier.h |  1 +
 meson.build                   |  2 +-
 util/event_notifier-posix.c   |  5 +++++
 6 files changed, 32 insertions(+), 6 deletions(-)

-- 
2.35.1




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-07  9:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04 10:08 [PATCH v4 0/4] Enable vhost-user to be used on BSD systems Sergio Lopez
2022-03-04 10:08 ` [PATCH v4 1/4] event_notifier: add event_notifier_get_wfd() Sergio Lopez
2022-03-04 10:08 ` [PATCH v4 2/4] vhost: use wfd on functions setting vring call fd Sergio Lopez
2022-03-04 10:08 ` [PATCH v4 3/4] configure, meson: allow enabling vhost-user on all POSIX systems Sergio Lopez
2022-03-07  9:39   ` Thomas Huth
2022-03-04 10:08 ` [PATCH v4 4/4] docs: vhost-user: add subsection for non-Linux platforms Sergio Lopez
2022-03-07  9:25 ` [PATCH v4 0/4] Enable vhost-user to be used on BSD systems Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).