Skip to content

vdpa: map shadow vrings with MAP_SHARED

Eugenio Pérez qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v11 patch 0 repliesSuperseded

Changes in v2 from the cover letter

* Use PROT_READ|PROT_WRITE instead of O_RDWR. The latter does not work for mmap.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vdpa: do not block migration if device has cvq and x-svq=onnet/vhost-vdpa.c+7 -41 reply
2/3vdpa: reorder vhost_vdpa_net_cvq_cmd_page_len functionnet/vhost-vdpa.c+16 -160 replies
3/3vdpa: map shadow vrings with MAP_SHAREDhw/virtio/vhost-shadow-virtqueue.c net/vhost-vdpa.c+17 -170 replies

Reviews trailers per patch

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

PatchPhilippe Mathieu-DaudéLei Yang
1/3T-b
2/3R-b
3/3

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

Read the v2 thread

Cover letter [PATCH v2 0/3] vdpa: map shadow vrings with MAP_SHARED

The vdpa devices that use va addresses neeeds these maps shared. Otherwise, vhost_vdpa checks will refuse to accept the maps.

Discovered this issue while testing SVQ with vdpa sim, now defaulting to use_va=on.

v2:
* Use PROT_READ|PROT_WRITE instead of O_RDWR. The latter does not work for mmap.

Eugenio Pérez (3):
vdpa: do not block migration if device has cvq and x-svq=on
vdpa: reorder vhost_vdpa_net_cvq_cmd_page_len function
vdpa: map shadow vrings with MAP_SHARED

 hw/virtio/vhost-shadow-virtqueue.c | 18 ++++-----
 net/vhost-vdpa.c                   | 59 ++++++++++++++++--------------
 2 files changed, 40 insertions(+), 37 deletions(-)
Signature · 1 line
2.31.1