aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_pagetab.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-02 13:46:16 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-02 13:46:16 +0100
commitb2870e0a214f9c663c37992385a25011954828c6 (patch)
treefbb271ff9681b7849d6300f456c9a4b45ad9ec04 /tools/libxc/xc_pagetab.c
parent622e368758b626b4567237395e5217761efb43d8 (diff)
downloadxen-b2870e0a214f9c663c37992385a25011954828c6.tar.gz
xen-b2870e0a214f9c663c37992385a25011954828c6.tar.bz2
xen-b2870e0a214f9c663c37992385a25011954828c6.zip
libxc foreign address translation bug
In the xc_translate_foreign_address function from libxc, there is a check on the page directory entry to see if the page is 4K or 4M. However, the check is looking at bit 3, when it should be looking at bit 7. This patch fixes the problem. Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
Diffstat (limited to 'tools/libxc/xc_pagetab.c')
-rw-r--r--tools/libxc/xc_pagetab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_pagetab.c b/tools/libxc/xc_pagetab.c
index e67a34ae8f..4682bb7f04 100644
--- a/tools/libxc/xc_pagetab.c
+++ b/tools/libxc/xc_pagetab.c
@@ -141,7 +141,7 @@ unsigned long xc_translate_foreign_address(int xc_handle, uint32_t dom,
/* Page Table */
- if (pde & 0x00000008) { /* 4M page (or 2M in PAE mode) */
+ if (pde & 0x00000080) { /* 4M page (or 2M in PAE mode) */
DPRINTF("Cannot currently cope with 2/4M pages\n");
exit(-1);
} else { /* 4k page */