]> Git Repo - qemu.git/commit - exec.c
Memory: Only call ramblock_ptr when needed in qemu_ram_writeback
authorAnthony PERARD <[email protected]>
Thu, 19 Dec 2019 15:43:22 +0000 (15:43 +0000)
committerAnthony PERARD <[email protected]>
Thu, 27 Feb 2020 11:50:30 +0000 (11:50 +0000)
commit5d4c954931ba62661c6a1bc16ce604a012a10007
treea66d547e8b1db3e3e717c494aae6c40ea893dcb9
parent32d0b7be68216f130dc962533c6fc2f9ad848a8b
Memory: Only call ramblock_ptr when needed in qemu_ram_writeback

It is possible that a ramblock doesn't have memory that QEMU can
access, this is the case with the Xen hypervisor.

In order to avoid to trigger an assert, only call ramblock_ptr() when
needed in qemu_ram_writeback(). This should fix migration of Xen
guests that was broken with bd108a44bc29 ("migration: ram: Switch to
ram block writeback").

Signed-off-by: Anthony PERARD <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Message-Id: <20191219154323[email protected]>
exec.c
This page took 0.025226 seconds and 4 git commands to generate.