]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
vhost-user: fix mmap offset calculation
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 2 Nov 2014 18:00:28 +0000 (20:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Nov 2014 16:32:48 +0000 (18:32 +0200)
commitd3f16ec887bb58b19eac94fcae139a39a7933e15
tree04cbb3af6b7f84e228cf27c4b63ab0b31da4e2b9
parentac369a77967d5dd984a5430505eaf24a380af1c0
vhost-user: fix mmap offset calculation

qemu_get_ram_block_host_ptr should get ram_addr_t,
vhost-user passes in GPA.
That's very wrong.

Reported-by: Linhaifeng <haifeng.lin@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-user.c