[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxc foreign address translation bug



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1209732376 -3600
# Node ID a353dd2ab9445036351c5da5c14555b82bc85ae6
# Parent  64f790e90d3d4797e298cc5abdfc54cb943687f3
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>
---
 tools/libxc/xc_pagetab.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 64f790e90d3d -r a353dd2ab944 tools/libxc/xc_pagetab.c
--- a/tools/libxc/xc_pagetab.c  Thu May 01 16:38:56 2008 +0100
+++ b/tools/libxc/xc_pagetab.c  Fri May 02 13:46:16 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.