Skip to content

virtio-driver/vhost_vdpa: fix virtqueue allocation to work with VDUSE

Stefano Garzarella requested to merge sgarzarella/libblkio:vdpa-vduse into main

VDUSE requires that memory should be allocated with an associated fd, to be shared with the device emulated in the VDUSE application, as Yongji Xie confirmed here: https://lore.kernel.org/qemu-devel/CACycT3vMVbm94OYtUgB9bS6_pU6FKh1Y6kWPyAxi4rvjUfQ3qg@mail.gmail.com/

Let's use the same approach as vhost-user, allocating the virtqueues memory through a memory mapped anonymous file.

Signed-off-by: Stefano Garzarella sgarzare@redhat.com

Merge request reports