[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V5 4/5] exec, memory: Call to xen_modified_memory.
From: |
Anthony PERARD |
Subject: |
[Qemu-devel] [PATCH V5 4/5] exec, memory: Call to xen_modified_memory. |
Date: |
Tue, 2 Oct 2012 19:21:24 +0100 |
This patch add some calls to xen_modified_memory to notify Xen about dirtybits
during migration.
Signed-off-by: Anthony PERARD <address@hidden>
Reviewed-by: Avi Kivity <address@hidden>
---
exec-obsolete.h | 2 ++
exec.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/exec-obsolete.h b/exec-obsolete.h
index c099256..286e2f7 100644
--- a/exec-obsolete.h
+++ b/exec-obsolete.h
@@ -24,6 +24,7 @@
#endif
#ifndef CONFIG_USER_ONLY
+#include "hw/xen.h"
ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host,
MemoryRegion *mr);
@@ -111,6 +112,7 @@ static inline void
cpu_physical_memory_set_dirty_range(ram_addr_t start,
for (addr = start; addr < end; addr += TARGET_PAGE_SIZE) {
cpu_physical_memory_set_dirty_flags(addr, dirty_flags);
}
+ xen_modified_memory(addr, length);
}
static inline void cpu_physical_memory_mask_dirty_range(ram_addr_t start,
diff --git a/exec.c b/exec.c
index 366684c..1114a09 100644
--- a/exec.c
+++ b/exec.c
@@ -3427,6 +3427,7 @@ static void invalidate_and_set_dirty(target_phys_addr_t
addr,
/* set dirty bit */
cpu_physical_memory_set_dirty_flags(addr, (0xff & ~CODE_DIRTY_FLAG));
}
+ xen_modified_memory(addr, length);
}
void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
--
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, 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 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 <=
- [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