aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_pagetab.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-06-19 16:15:05 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-06-19 16:15:05 +0100
commit50bddc93078cb4f3e757027fbe3b9a15659050c0 (patch)
tree260c0ca76854afa92c5536603c5a0361a378341b /tools/libxc/xc_pagetab.c
parentc385f786c2b062e79c92a760ca0973ef0d54371a (diff)
downloadxen-50bddc93078cb4f3e757027fbe3b9a15659050c0.tar.gz
xen-50bddc93078cb4f3e757027fbe3b9a15659050c0.tar.bz2
xen-50bddc93078cb4f3e757027fbe3b9a15659050c0.zip
libxc: The following patch replace the libxc interface to use
vcpu_guest_context_any_t (which is both 32 and 64 bits) instead of vcpu_guest_context_t. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_pagetab.c')
-rw-r--r--tools/libxc/xc_pagetab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/xc_pagetab.c b/tools/libxc/xc_pagetab.c
index 4682bb7f04..ac8035bf41 100644
--- a/tools/libxc/xc_pagetab.c
+++ b/tools/libxc/xc_pagetab.c
@@ -48,7 +48,7 @@
unsigned long xc_translate_foreign_address(int xc_handle, uint32_t dom,
int vcpu, unsigned long long virt )
{
- vcpu_guest_context_t ctx;
+ vcpu_guest_context_any_t ctx;
unsigned long long cr3;
void *pd, *pt, *pdppage = NULL, *pdp, *pml = NULL;
unsigned long long pde, pte, pdpe, pmle;
@@ -78,7 +78,7 @@ unsigned long xc_translate_foreign_address(int xc_handle, uint32_t dom,
DPRINTF("failed to retreive vcpu context\n");
goto out;
}
- cr3 = ((unsigned long long)xen_cr3_to_pfn(ctx.ctrlreg[3])) << PAGE_SHIFT;
+ cr3 = ((unsigned long long)xen_cr3_to_pfn(ctx.c.ctrlreg[3])) << PAGE_SHIFT;
/* Page Map Level 4 */