projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd1ba7d
)
xen: do not allocate RAM during INMIGRATE runstate
author
Anthony PERARD
<anthony.perard@citrix.com>
Wed, 25 Jan 2012 12:36:06 +0000
(12:36 +0000)
committer
Stefano Stabellini
<stefano.stabellini@eu.citrix.com>
Mon, 19 Mar 2012 18:21:12 +0000
(18:21 +0000)
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-all.c
patch
|
blob
|
history
diff --git
a/xen-all.c
b/xen-all.c
index 972cffd5ba7c8b3da678fb566a680c9839319de1..10d53d168c664dc6de4786abf16f66374e4f0f2e 100644
(file)
--- a/
xen-all.c
+++ b/
xen-all.c
@@
-190,6
+190,14
@@
void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size, MemoryRegion *mr)
xen_pfn_t *pfn_list;
int i;
+ if (runstate_check(RUN_STATE_INMIGRATE)) {
+ /* RAM already populated in Xen */
+ fprintf(stderr, "%s: do not alloc "RAM_ADDR_FMT
+ " bytes of ram at "RAM_ADDR_FMT" when runstate is INMIGRATE\n",
+ __func__, size, ram_addr);
+ return;
+ }
+
if (mr == &ram_memory) {
return;
}