]> git.proxmox.com Git - qemu.git/commitdiff
xen: Set the vram dirty when an error occur.
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 3 Oct 2012 13:49:40 +0000 (13:49 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 3 Oct 2012 13:49:40 +0000 (13:49 +0000)
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>
xen-all.c

index b11542c3e7b2ca480ae9961ff9949f793a431c8f..e6308be23adb7198c144883eb886fb6edb5fe09f 100644 (file)
--- a/xen-all.c
+++ b/xen-all.c
@@ -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));
         }