The latest vhost-user changes changed the VHOST_SET_MEM_TABLE handling. Now the memory regions are mapped from dev->mem. There is an error when calling qemu_get_ram_fd with reg->guest_phys_addr. The right approach is to find the ram_addr_t corresponding to the userspace_addr using qemu_ram_addr_from_host first.
Thanks to Paolo Bonzini for poinitng the real problem. The related vhost-user qtest is also updated to reflect the changes in vhost-user message structures. Changes since v1: - dropped the patches 1 and 2 and just fixed the "real issue" --- Nikolay Nikolaev (2): vhost-user: Fix VHOST_SET_MEM_TABLE processing qtest: Adapt vhost-user-test to latehs vhost-user changes hw/virtio/vhost-user.c | 4 +++- tests/vhost-user-test.c | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) -- Signature