]> git.proxmox.com Git - mirror_qemu.git/commit
vdpa: map shadow vrings with MAP_SHARED
authorEugenio Pérez <eperezma@redhat.com>
Fri, 2 Jun 2023 14:38:54 +0000 (16:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 26 Jun 2023 13:50:00 +0000 (09:50 -0400)
commitbabf8b87127ae809b31b3c0a117dcbc91aaf9aba
tree99952f284e1926f28563b577d29860eb1581bd6f
parent915bf6ccd7a5c9b6cbea7a72f153597d1b98834f
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.

The mmap call will always return a page aligned address, so removing the
qemu_memalign call.  Keeping the ROUND_UP for the size as we still need
to DMA-map them in full.

Not applying fixes tag as it never worked with va devices.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20230602143854.1879091-4-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c
net/vhost-vdpa.c