Skip to content

Refactor vhost device reset

Michael Qiu qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 of 3 patches 9 repliesIn review

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vhost: Refactor vhost_reset_device() in VhostOpshw/scsi/vhost-user-scsi.c hw/virtio/vhost-backend.c hw/virtio/vhost-user.c +1 more+27 -78 replies
2/3vhost: add vhost_dev_reset()hw/virtio/vhost.c include/hw/virtio/vhost.h+15 -01 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichael QiuJason Wang
SeriesA-b
1/3Signde-off-by
2/3

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

Read the v1 thread

Cover letter [PATCH 0/3] Refactor vhost device reset

Now adays, vhost framework does a misnamed for vhost_reset_device(), actually we need seperate vhost_reset_device() and vhost_reset_owner(), this patchset refactor it, and make different backend call the right function.

Base on those work, fix an issue of vdpa device reset for several times.

Test with kernel vhost, vhost-vdpa, DPDK vhost-user(vdpa), with shutdown ,reboot, and load/unload virtio_net driver in guest.

Michael Qiu (3):
vhost: Refactor vhost_reset_device() in VhostOps
vhost: add vhost_dev_reset()
vdpa: reset the backend device in the end of vhost_net_stop()

 hw/net/vhost_net.c                | 22 +++++++++++++++++++---
 hw/scsi/vhost-user-scsi.c         |  6 +++++-
 hw/virtio/vhost-backend.c         |  4 ++--
 hw/virtio/vhost-user.c            | 22 ++++++++++++++++++----
 hw/virtio/vhost-vdpa.c            | 15 +++++++++------
 hw/virtio/vhost.c                 | 14 ++++++++++++++
 include/hw/virtio/vhost-backend.h |  2 ++
 include/hw/virtio/vhost.h         |  1 +
 8 files changed, 70 insertions(+), 16 deletions(-)
Signature · 1 line
1.8.3.1