aboutsummaryrefslogtreecommitdiff
path: root/blockdev.c
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2016-06-09 16:56:17 +0100
committerStefano Stabellini <sstabellini@kernel.org>2016-06-13 11:50:20 +0100
commitd6b6aec4091a11e5429aac4d56ad0295c5316375 (patch)
tree3cc6285d6caa13429eb962b735dd18b522138907 /blockdev.c
parenta93c1bdf0bd4689287094ddb2aae3dc907da3535 (diff)
exec: Fix qemu_ram_block_from_host for Xen
Since f615f39 (exec: remove ram_addr argument from qemu_ram_block_from_host), migration under Xen is likely to fail, with a SEGV of QEMU. But the commit only reveal a bug with the calculation of the offset value in qemu_ram_block_from_host(). This patch calculates the offset from the ram_addr as qemu_ram_addr_from_host() will later calculate the ram_addr from the offset. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions