aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xg_save_restore.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-11-21 16:56:39 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-11-21 16:56:39 +0100
commit9ba9cbdb3fb55274a25092f52d60545474beae4d (patch)
tree6521742490be4984e0e2b156b39dfbd8e2b506c4 /tools/libxc/xg_save_restore.h
parent7cdf0f64076d05bab8edaac9aa02ddfef510afb5 (diff)
downloadxen-9ba9cbdb3fb55274a25092f52d60545474beae4d.tar.gz
xen-9ba9cbdb3fb55274a25092f52d60545474beae4d.tar.bz2
xen-9ba9cbdb3fb55274a25092f52d60545474beae4d.zip
Update the memory_op() hypercall. Add two new subcommands, to
query a domain's current and maximum memory reservation. Also, XENMEM_maximum_ram_page now returns the max_page directly, rather than writing through a passed-in pointer. Also, disable PAE in the default config (accidentally checked in two changesets ago). Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xg_save_restore.h')
-rw-r--r--tools/libxc/xg_save_restore.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/libxc/xg_save_restore.h b/tools/libxc/xg_save_restore.h
index c735deab41..b9a4d38122 100644
--- a/tools/libxc/xg_save_restore.h
+++ b/tools/libxc/xg_save_restore.h
@@ -64,7 +64,6 @@ static int get_platform_info(int xc_handle, uint32_t dom,
{
xen_capabilities_info_t xen_caps = "";
xen_platform_parameters_t xen_params;
-
if (xc_version(xc_handle, XENVER_platform_parameters, &xen_params) != 0)
return 0;
@@ -72,8 +71,7 @@ static int get_platform_info(int xc_handle, uint32_t dom,
if (xc_version(xc_handle, XENVER_capabilities, &xen_caps) != 0)
return 0;
- if (xc_memory_op(xc_handle, XENMEM_maximum_ram_page, max_mfn) != 0)
- return 0;
+ *max_mfn = xc_memory_op(xc_handle, XENMEM_maximum_ram_page, NULL);
*hvirt_start = xen_params.virt_start;