[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.2-testing] libxc foreign address translation bug
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1210687871 -3600 # Node ID 50790bbfa97aa4667358e97a725070dcfde041b9 # Parent 9733f681d5c5b81f003acb4a75d90aa5028361fb 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@xxxxxxxxxxxx> xen-unstable changeset: 17558:a353dd2ab9445036351c5da5c14555b82bc85ae6 xen-unstable date: Fri May 02 13:46:16 2008 +0100 --- tools/libxc/xc_pagetab.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 9733f681d5c5 -r 50790bbfa97a tools/libxc/xc_pagetab.c --- a/tools/libxc/xc_pagetab.c Fri May 02 14:23:07 2008 +0100 +++ b/tools/libxc/xc_pagetab.c Tue May 13 15:11:11 2008 +0100 @@ -141,7 +141,7 @@ unsigned long xc_translate_foreign_addre /* 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 */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |