Skip to content
Commit d6b6aec4 authored by Anthony PERARD's avatar Anthony PERARD Committed by Stefano Stabellini
Browse files

exec: Fix qemu_ram_block_from_host for Xen



Since f615f396 (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: default avatarAnthony PERARD <anthony.perard@citrix.com>
Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarStefano Stabellini <sstabellini@kernel.org>
parent a93c1bdf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment