aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xg_save_restore.h
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:43 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:43 +0000
commitb1cf3deb811b8d4cb9c36146f0f5ea046d8f4062 (patch)
tree56bdb6d1b4abcda3516498697ada8eb034e32f51 /tools/libxc/xg_save_restore.h
parentf4c856df98b0797eab75e9c73f925a0aa101a06d (diff)
downloadxen-b1cf3deb811b8d4cb9c36146f0f5ea046d8f4062.tar.gz
xen-b1cf3deb811b8d4cb9c36146f0f5ea046d8f4062.tar.bz2
xen-b1cf3deb811b8d4cb9c36146f0f5ea046d8f4062.zip
Support for save and restore of compatibility guests
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
Diffstat (limited to 'tools/libxc/xg_save_restore.h')
-rw-r--r--tools/libxc/xg_save_restore.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/libxc/xg_save_restore.h b/tools/libxc/xg_save_restore.h
index 00d0753def..6275b37ef0 100644
--- a/tools/libxc/xg_save_restore.h
+++ b/tools/libxc/xg_save_restore.h
@@ -53,8 +53,17 @@ static int get_platform_info(int xc_handle, uint32_t dom,
*hvirt_start = xen_params.virt_start;
+ /*
+ * XXX For now, 32bit dom0's can only save/restore 32bit domUs
+ * on 64bit hypervisors, so no need to check which type of domain
+ * we're dealing with.
+ */
if (strstr(xen_caps, "xen-3.0-x86_64"))
+#if defined(__i386__)
+ *pt_levels = 3;
+#else
*pt_levels = 4;
+#endif
else if (strstr(xen_caps, "xen-3.0-x86_32p"))
*pt_levels = 3;
else if (strstr(xen_caps, "xen-3.0-x86_32"))