diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-06-02 14:16:43 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-06-02 14:16:43 +0100 |
commit | 4f7f661224a7e496548c154c1cbe022be25561d9 (patch) | |
tree | fa31b523e6ebc0ca98008ced90442237e9aad85d /tools/libxc/xc_pagetab.c | |
parent | dd9f789cb6ce7f512a06fb2ebd013a52ca6cbf9f (diff) | |
download | xen-4f7f661224a7e496548c154c1cbe022be25561d9.tar.gz xen-4f7f661224a7e496548c154c1cbe022be25561d9.tar.bz2 xen-4f7f661224a7e496548c154c1cbe022be25561d9.zip |
[PAE] Fix tools to properly pack/unpack >4GB PAE CR3 values.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_pagetab.c')
-rw-r--r-- | tools/libxc/xc_pagetab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_pagetab.c b/tools/libxc/xc_pagetab.c index 02a19b5527..64c05c74e6 100644 --- a/tools/libxc/xc_pagetab.c +++ b/tools/libxc/xc_pagetab.c @@ -78,7 +78,7 @@ unsigned long xc_translate_foreign_address(int xc_handle, uint32_t dom, fprintf(stderr, "failed to retreive vcpu context\n"); goto out; } - cr3 = ctx.ctrlreg[3]; + cr3 = ((unsigned long long)xen_cr3_to_pfn(ctx.ctrlreg[3])) << PAGE_SHIFT; /* Page Map Level 4 */ |