ia64/xen-unstable
changeset 17565:a353dd2ab944
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>
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>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Fri May 02 13:46:16 2008 +0100 (2008-05-02) |
parents | 64f790e90d3d |
children | 1f24743354ea |
files | tools/libxc/xc_pagetab.c |
line diff
1.1 --- a/tools/libxc/xc_pagetab.c Thu May 01 16:38:56 2008 +0100 1.2 +++ b/tools/libxc/xc_pagetab.c Fri May 02 13:46:16 2008 +0100 1.3 @@ -141,7 +141,7 @@ unsigned long xc_translate_foreign_addre 1.4 1.5 /* Page Table */ 1.6 1.7 - if (pde & 0x00000008) { /* 4M page (or 2M in PAE mode) */ 1.8 + if (pde & 0x00000080) { /* 4M page (or 2M in PAE mode) */ 1.9 DPRINTF("Cannot currently cope with 2/4M pages\n"); 1.10 exit(-1); 1.11 } else { /* 4k page */