cloud-hypervisor/vhost_user_backend
Sergio Lopez 669d9a8ae8 vhost_user_backend: fix memory region offsetting
The way in which offsets are currently use in memory regions is
derived from QEMU's contrib/libvhost-user, but while this one works
mainly by translating vmm va's to local va's, vm-memory expects us to
use proper guest addresses and thus, define memory regions that
actually match the guest's memory disposition.

With this change, we create the memory regions with the proper length
and offsets, extend AddrMapping to store the guest physical address,
and use the latter instead of offset in vmm_va_to_gpa().

Signed-off-by: Sergio Lopez <slp@redhat.com>
2019-12-02 01:57:25 -08:00
..
src vhost_user_backend: fix memory region offsetting 2019-12-02 01:57:25 -08:00
Cargo.toml cargo: Bump the kvm and vmm-sys-util crates 2019-11-29 17:48:02 +00:00