Skip to content

Support host notifiers in vhost-user

Tiwei Bie qemu-devel virtio-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v16 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Drop the VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD patch; (MST)
- In PATCH 2/5, for net/vhost-user, only save VhostUserState in queue index 0, i.e. where chr is saved;
- In PATCH 4/5, check VHOST_USER_PROTOCOL_F_HOST_NOTIFIER before sending msg (including fd) to master; (MST)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vhost: allow backends to filter memory sectionshw/virtio/vhost-user.c hw/virtio/vhost.c include/hw/virtio/vhost-backend.h+22 -20 replies
2/5vhost-user: introduce shared vhost-user statebackends/cryptodev-vhost-user.c hw/block/vhost-user-blk.c hw/scsi/vhost-user-scsi.c +7 more+158 -280 replies
3/5vhost-user: support registering external host notifiersdocs/interop/vhost-user.txt hw/virtio/vhost-user.c include/hw/virtio/vhost-user.h+164 -02 replies
4/5libvhost-user: support host notifiercontrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h+103 -80 replies
5/5vhost-user-bridge: support host notifiertests/vhost-user-bridge.c+95 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] Support host notifiers in vhost-user

More details about this patch set can be found from:

http://lists.gnu.org/archive/html/qemu-devel/2018-04/msg01779.html
http://lists.gnu.org/archive/html/qemu-devel/2018-04/msg04626.html

v1 -> v2:
- Drop the VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD patch; (MST)
- In PATCH 2/5, for net/vhost-user, only save VhostUserState in queue index 0, i.e. where chr is saved;
- In PATCH 4/5, check VHOST_USER_PROTOCOL_F_HOST_NOTIFIER before sending msg (including fd) to master; (MST)

Tiwei Bie (5):
vhost: allow backends to filter memory sections
vhost-user: introduce shared vhost-user state
vhost-user: support registering external host notifiers
libvhost-user: support host notifier
vhost-user-bridge: support host notifier

 backends/cryptodev-vhost-user.c       |  20 +++-
 contrib/libvhost-user/libvhost-user.c |  80 +++++++++++--
 contrib/libvhost-user/libvhost-user.h |  31 +++++
 docs/interop/vhost-user.txt           |  33 ++++++
 hw/block/vhost-user-blk.c             |  22 +++-
 hw/scsi/vhost-user-scsi.c             |  20 +++-
 hw/virtio/Makefile.objs               |   2 +-
 hw/virtio/vhost-stub.c                |  10 ++
 hw/virtio/vhost-user.c                | 165 ++++++++++++++++++++++++--
 hw/virtio/vhost.c                     |   9 +-
 include/hw/virtio/vhost-backend.h     |   4 +
 include/hw/virtio/vhost-user-blk.h    |   2 +
 include/hw/virtio/vhost-user-scsi.h   |   2 +
 include/hw/virtio/vhost-user.h        |  28 +++++
 net/vhost-user.c                      |  57 ++++++---
 tests/vhost-user-bridge.c             |  98 ++++++++++++++-
 16 files changed, 542 insertions(+), 41 deletions(-)
 create mode 100644 include/hw/virtio/vhost-user.h
Signature · 1 line
2.17.0