[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V2 5/5] xen: Always set the vram dirty during migrat
From: |
Anthony PERARD |
Subject: |
[Qemu-devel] [PATCH V2 5/5] xen: Always set the vram dirty during migration. |
Date: |
Fri, 20 Jul 2012 15:34:42 +0100 |
Because the call to track the dirty bit in the video ram during migration won't
work (it returns -1), we set dirtybit on the all video ram.
Signed-off-by: Anthony PERARD <address@hidden>
---
xen-all.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/xen-all.c b/xen-all.c
index 54e54cb..207182e 100644
--- a/xen-all.c
+++ b/xen-all.c
@@ -502,6 +502,11 @@ static void xen_sync_dirty_bitmap(XenIOState *state,
return;
}
+ if (unlikely(xen_in_migration)) {
+ /* track_dirty_vram does not work during migration */
+ memory_region_set_dirty(framebuffer, 0, size);
+ return;
+ }
rc = xc_hvm_track_dirty_vram(xen_xc, xen_domid,
start_addr >> TARGET_PAGE_BITS, npages,
bitmap);
--
Anthony PERARD
- [Qemu-devel] [PATCH V2 0/5] Xen, introducing dirty log for migration., Anthony PERARD, 2012/07/20
- [Qemu-devel] [PATCH V2 5/5] xen: Always set the vram dirty during migration.,
Anthony PERARD <=
- [Qemu-devel] [PATCH V2 2/5] xen: Introduce xen_modified_memory., Anthony PERARD, 2012/07/20
- [Qemu-devel] [PATCH V2 1/5] QMP, Introduce xen-set-global-dirty-log command., Anthony PERARD, 2012/07/20
- [Qemu-devel] [PATCH V2 4/5] exec, memory: Call to xen_modified_memory., Anthony PERARD, 2012/07/20
- [Qemu-devel] [PATCH V2 3/5] exec: Introduce helper to set dirty flags., Anthony PERARD, 2012/07/20