diff options
| author | Nikolay Nikolaev | 2014-07-12 03:42:35 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-07-18 01:14:15 +0200 |
| commit | f69a28051f856e906bd9c2f9f27b3106a47e18f6 (patch) | |
| tree | b6818245d7e770ae59de26ff9e8537117df944f0 /include/exec/cputlb.h | |
| parent | qtest: fix vhost-user-test compilation with old GLib (diff) | |
| download | qemu-f69a28051f856e906bd9c2f9f27b3106a47e18f6.tar.gz qemu-f69a28051f856e906bd9c2f9f27b3106a47e18f6.tar.xz qemu-f69a28051f856e906bd9c2f9f27b3106a47e18f6.zip | |
vhost-user: Fix VHOST_SET_MEM_TABLE processing
qemu_get_ram_fd doesn't accept a guest physical address. ram_addr_t are
opaque values that are assigned in qemu_ram_alloc.
Find the ram_addr_t corresponding to the userspace_addr using qemu_ram_addr_from_host,
and then call qemu_get_ram_fd on it.
Thanks to Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/cputlb.h')
0 files changed, 0 insertions, 0 deletions
