qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] vdpa: map shadow vrings with MAP_SHARED
@ 2023-06-02 14:38 Eugenio Pérez
  2023-06-02 14:38 ` [PATCH v2 1/3] vdpa: do not block migration if device has cvq and x-svq=on Eugenio Pérez
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Eugenio Pérez @ 2023-06-02 14:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Eugenio Pérez, Jason Wang, Michael S. Tsirkin, Lei Yang

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-02 17:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-02 14:38 [PATCH v2 0/3] vdpa: map shadow vrings with MAP_SHARED Eugenio Pérez
2023-06-02 14:38 ` [PATCH v2 1/3] vdpa: do not block migration if device has cvq and x-svq=on Eugenio Pérez
2023-06-02 17:27   ` Lei Yang
2023-06-02 14:38 ` [PATCH v2 2/3] vdpa: reorder vhost_vdpa_net_cvq_cmd_page_len function Eugenio Pérez
2023-06-02 14:38 ` [PATCH v2 3/3] vdpa: map shadow vrings with MAP_SHARED Eugenio Pérez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).