aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_resume.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-24 10:18:44 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-24 10:18:44 +0000
commita3fb2cebf9a865c0bd466f72215191f61648a4f3 (patch)
tree800dcac67729ade696b905d1acb796081ca2869e /tools/libxc/xc_resume.c
parent7e7d92bea4fc6b63d201e4da4619924b308a04cf (diff)
downloadxen-a3fb2cebf9a865c0bd466f72215191f61648a4f3.tar.gz
xen-a3fb2cebf9a865c0bd466f72215191f61648a4f3.tar.bz2
xen-a3fb2cebf9a865c0bd466f72215191f61648a4f3.zip
libxenguest: Fix xc_resume() build for non-x86.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_resume.c')
-rw-r--r--tools/libxc/xc_resume.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/libxc/xc_resume.c b/tools/libxc/xc_resume.c
index 519bf1cadb..214d520800 100644
--- a/tools/libxc/xc_resume.c
+++ b/tools/libxc/xc_resume.c
@@ -43,13 +43,9 @@ static int xc_domain_resume_cooperative(int xc_handle, uint32_t domid)
static int xc_domain_resume_any(int xc_handle, uint32_t domid)
{
DECLARE_DOMCTL;
+ xc_dominfo_t info;
int i, rc = -1;
-
- /*
- * (x86 only) Rewrite store_mfn and console_mfn back to MFN (from PFN).
- */
#if defined(__i386__) || defined(__x86_64__)
- xc_dominfo_t info;
unsigned long mfn, max_pfn = 0;
vcpu_guest_context_t ctxt;
start_info_t *start_info;
@@ -57,6 +53,7 @@ static int xc_domain_resume_any(int xc_handle, uint32_t domid)
xen_pfn_t *p2m_frame_list_list = NULL;
xen_pfn_t *p2m_frame_list = NULL;
xen_pfn_t *p2m = NULL;
+#endif
if ( xc_domain_getinfo(xc_handle, domid, 1, &info) != 1 )
{
@@ -64,6 +61,10 @@ static int xc_domain_resume_any(int xc_handle, uint32_t domid)
goto out;
}
+ /*
+ * (x86 only) Rewrite store_mfn and console_mfn back to MFN (from PFN).
+ */
+#if defined(__i386__) || defined(__x86_64__)
/* Map the shared info frame */
shinfo = xc_map_foreign_range(xc_handle, domid, PAGE_SIZE,
PROT_READ, info.shared_info_frame);