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

Eugenio Pérez posted 3 patches 10 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230602143854.1879091-1-eperezma@redhat.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, "Eugenio Pérez" <eperezma@redhat.com>, Jason Wang <jasowang@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c | 18 ++++-----
net/vhost-vdpa.c                   | 59 ++++++++++++++++--------------
2 files changed, 40 insertions(+), 37 deletions(-)
[PATCH v2 0/3] vdpa: map shadow vrings with MAP_SHARED
Posted by Eugenio Pérez 10 months, 3 weeks ago
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(-)

-- 
2.31.1