Hi all! Here is a new feature to pass GPA addresses instead of UVA to vhost-user server from QEMU. The details are in last patch 10/10 the others are preparation and refactoring.
The series replaces my first attempt "[PATCH] vhost-user: pass GPA instead of UVA" Supersedes: <[email protected]> Vladimir Sementsov-Ogievskiy (10): vhost: move IOTLB functions from vhost-backend.c to vhost.c vhost: use consistent naming for backend handlers vhost: rename vhost-backend.c to vhost-kernel.c vhost: replace .vhost_vq_get_addr() with .vhost_phys_vring_addr() vhost: simplify vhost_memory_map() and vhost_memory_unmap() qapi: remove user addresses from x-query-virtio-vhost-queue-status vhost: stop reusing vq->desc (and friends) to store physical address vhost: rename vring pointer fields to reflect user addresses vhost: add .vhost_phys_iotlb_msg() handler vhost-user: add VHOST_USER_PROTOCOL_F_GPA_ADDRESSES docs/interop/vhost-user.rst | 21 +- hw/virtio/meson.build | 2 +- hw/virtio/{vhost-backend.c => vhost-kernel.c} | 90 +------- hw/virtio/vhost-user.c | 32 ++- hw/virtio/vhost-vdpa.c | 19 +- hw/virtio/vhost.c | 193 +++++++++++++----- hw/virtio/virtio-hmp-cmds.c | 3 - hw/virtio/virtio-qmp.c | 3 - include/hw/virtio/vhost-backend.h | 37 ++-- include/hw/virtio/vhost-user.h | 1 + include/hw/virtio/vhost.h | 8 +- qapi/virtio.json | 15 -- 12 files changed, 210 insertions(+), 214 deletions(-) rename hw/virtio/{vhost-backend.c => vhost-kernel.c} (83%) -- 2.52.0
