diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2012-10-03 13:49:40 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-10-03 13:49:40 +0000 |
commit | 8aba7dc02d5660df7e7d8651304b3079908358be (patch) | |
tree | 74a617690a91a289a73969ddd0935e4c90cb91e1 /xen-all.c | |
parent | e226939de5814527a21396903b08c3d0ed989558 (diff) | |
download | qemu-8aba7dc02d5660df7e7d8651304b3079908358be.zip qemu-8aba7dc02d5660df7e7d8651304b3079908358be.tar.gz qemu-8aba7dc02d5660df7e7d8651304b3079908358be.tar.bz2 |
xen: Set the vram dirty when an error occur.
If the call to xc_hvm_track_dirty_vram() fails, then we set dirtybit on all the
video ram. This case happens during migration.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen-all.c')
-rw-r--r-- | xen-all.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -507,7 +507,8 @@ static void xen_sync_dirty_bitmap(XenIOState *state, bitmap); if (rc < 0) { if (rc != -ENODATA) { - fprintf(stderr, "xen: track_dirty_vram failed (0x" TARGET_FMT_plx + memory_region_set_dirty(framebuffer, 0, size); + DPRINTF("xen: track_dirty_vram failed (0x" TARGET_FMT_plx ", 0x" TARGET_FMT_plx "): %s\n", start_addr, start_addr + size, strerror(-rc)); } |