summary refs log tree commit diff stats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorEugenio Pérez <eperezma@redhat.com>2023-06-02 16:38:54 +0200
committerMichael S. Tsirkin <mst@redhat.com>2023-06-26 09:50:00 -0400
commitbabf8b87127ae809b31b3c0a117dcbc91aaf9aba (patch)
tree99952f284e1926f28563b577d29860eb1581bd6f /hw/net/virtio-net.c
parent915bf6ccd7a5c9b6cbea7a72f153597d1b98834f (diff)
downloadfocaccia-qemu-babf8b87127ae809b31b3c0a117dcbc91aaf9aba.tar.gz
focaccia-qemu-babf8b87127ae809b31b3c0a117dcbc91aaf9aba.zip
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>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions