From: Anthony PERARD Date: Wed, 3 Oct 2012 13:49:40 +0000 (+0000) Subject: xen: Set the vram dirty when an error occur. X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~900^2~59^2~1690^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8aba7dc02d5660df7e7d8651304b3079908358be;p=sdk%2Femulator%2Fqemu.git 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 Acked-by: Stefano Stabellini --- diff --git a/xen-all.c b/xen-all.c index b11542c3e7..e6308be23a 100644 --- 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)); }