Skip to content

vhost-user: protocol updates

Michael S. Tsirkin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Revert "vhost-user: add multi queue support"docs/specs/vhost-user.txt hw/net/vhost_net.c hw/virtio/vhost-user.c +3 more+18 -491 reply
2/4vhost-user: refactor ioctl translationhw/virtio/vhost-user.c+46 -410 replies
3/4vhost-user: add protocol feature negotiationdocs/specs/vhost-user.txt hw/net/vhost_net.c hw/virtio/vhost-user.c +1 more+92 -02 replies
4/4vhost-user: unit test for new messagestests/vhost-user-test.c+19 -01 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchEric Blake
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] vhost-user: protocol updates

This patchset sets the stage for extending the vhost user protocol, with full backwards compatibility.

The approach is to negotiate feature bits queried and acknowledged during device setup.

For now, there's no new functionality: two new messages are added that will allow negotiating new messages required for functionality such as MQ and migration.

For now, I used the feature bit 30 to signal support for these new messages, and we now have 64 more bits to play.

The patches can be found in my tree, branch vhost-user.

Only patch 1 is intended for 2.4.

Posting early so people working on extensions such as migration can review this - but please note the protocol is not set in stone yet.

Michael S. Tsirkin (4):
Revert "vhost-user: add multi queue support"
vhost-user: refactor ioctl translation
vhost-user: add protocol feature negotiation
vhost-user: unit test for new messages

 qapi-schema.json          |   6 +-
 include/hw/virtio/vhost.h |   1 +
 hw/net/vhost_net.c        |   5 +-
 hw/virtio/vhost-user.c    | 150 ++++++++++++++++++++++++++++++----------------
 net/vhost-user.c          |  37 ++++--------
 tests/vhost-user-test.c   |  19 ++++++
 docs/specs/vhost-user.txt |  40 +++++++++++--
 qemu-options.hx           |   5 +-
 8 files changed, 174 insertions(+), 89 deletions(-)
Signature · 1 line
MST