diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2012-01-25 12:36:06 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-03-19 18:21:12 +0000 |
commit | c234572ded381423abca9801ebf5a32abd2495ef (patch) | |
tree | f25afa46c264abe1802cb9ca36ef20e32c360637 /xen-all.c | |
parent | cd1ba7de230b3a85fb4dba53bb681b7ea626b4eb (diff) | |
download | qemu-c234572ded381423abca9801ebf5a32abd2495ef.tar.gz qemu-c234572ded381423abca9801ebf5a32abd2495ef.tar.bz2 qemu-c234572ded381423abca9801ebf5a32abd2495ef.zip |
xen: do not allocate RAM during INMIGRATE runstate
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen-all.c')
-rw-r--r-- | xen-all.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; } |