[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V5 5/5] xen: Set the vram dirty when an error occur.
From: |
Anthony PERARD |
Subject: |
[Qemu-devel] [PATCH V5 5/5] xen: Set the vram dirty when an error occur. |
Date: |
Tue, 2 Oct 2012 17:52:27 +0100 |
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 <address@hidden>
Acked-by: Stefano Stabellini <address@hidden>
---
xen-all.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xen-all.c b/xen-all.c
index b11542c..e6308be 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));
}
--
Anthony PERARD
- [Qemu-devel] [PATCH V5 0/5] Xen, introducing dirty log for migration., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 1/5] QMP, Introduce xen-set-global-dirty-log command., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 5/5] xen: Set the vram dirty when an error occur.,
Anthony PERARD <=
- [Qemu-devel] [PATCH V5 4/5] exec, memory: Call to xen_modified_memory., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 3/5] exec: Introduce helper to set dirty flags., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 2/5] xen: Introduce xen_modified_memory., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 0/5] Xen, introducing dirty log for migration., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 4/5] exec, memory: Call to xen_modified_memory., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 5/5] xen: Set the vram dirty when an error occur., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 3/5] exec: Introduce helper to set dirty flags., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 1/5] QMP, Introduce xen-set-global-dirty-log command., Anthony PERARD, 2012/10/02
- [Qemu-devel] [PATCH V5 2/5] xen: Introduce xen_modified_memory., Anthony PERARD, 2012/10/02