WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.2-testing] libxc foreign address translation bug

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.2-testing] libxc foreign address translation bug
From: "Xen patchbot-3.2-testing" <patchbot-3.2-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 May 2008 08:31:10 -0700
Delivery-date: Tue, 13 May 2008 08:31:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.2-testing] libxc foreign address translation bug, Xen patchbot-3.2-testing <=