aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xg_private.c
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@xensource.com>2007-02-09 10:48:41 +0000
committerTim Deegan <Tim.Deegan@xensource.com>2007-02-09 10:48:41 +0000
commite0bc4531dfc430497e311f13192781ce215d40b8 (patch)
tree11fe8e310a71d1b697e7be224d0d68f658a8f6e2 /tools/libxc/xg_private.c
parent982965741d777beb7f79e46e15a05f8c6dd2ce1e (diff)
downloadxen-e0bc4531dfc430497e311f13192781ce215d40b8.tar.gz
xen-e0bc4531dfc430497e311f13192781ce215d40b8.tar.bz2
xen-e0bc4531dfc430497e311f13192781ce215d40b8.zip
[HVM] Save/restore: disentangle max_pfn from nr_pages.
These have been used interchangeably, which is OK for PV domains but not for HVM. This fixes an over-allocation by 256MB when restoring HVM guests that have more than 4GB of RAM. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'tools/libxc/xg_private.c')
-rw-r--r--tools/libxc/xg_private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xg_private.c b/tools/libxc/xg_private.c
index 6f4f28f988..751c56d59b 100644
--- a/tools/libxc/xg_private.c
+++ b/tools/libxc/xg_private.c
@@ -209,7 +209,7 @@ int xc_hvm_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters,
__attribute__((weak))
int xc_hvm_restore(int xc_handle, int io_fd, uint32_t dom,
- unsigned long nr_pfns, unsigned int store_evtchn,
+ unsigned long max_pfn, unsigned int store_evtchn,
unsigned long *store_mfn,
unsigned int pae, unsigned int apic)
{