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] [linux-2.6.18-xen] i386: Fix xen_l1_entry_update() for h

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] i386: Fix xen_l1_entry_update() for highptes.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Oct 2007 14:30:21 -0700
Delivery-date: Thu, 11 Oct 2007 14:31:20 -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@xxxxxxxxxxxxx>
# Date 1192114936 -3600
# Node ID e797297402885cc19e0799c7bcaf3e1acb427523
# Parent  48a6d8bc31b8717c4218fc5e3c5bc9d848703db4
i386: Fix xen_l1_entry_update() for highptes.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 arch/i386/mm/hypervisor.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -r 48a6d8bc31b8 -r e79729740288 arch/i386/mm/hypervisor.c
--- a/arch/i386/mm/hypervisor.c Wed Oct 10 11:32:15 2007 +0100
+++ b/arch/i386/mm/hypervisor.c Thu Oct 11 16:02:16 2007 +0100
@@ -47,7 +47,12 @@ void xen_l1_entry_update(pte_t *ptr, pte
 void xen_l1_entry_update(pte_t *ptr, pte_t val)
 {
        mmu_update_t u;
+#ifdef CONFIG_HIGHPTE
+       u.ptr = ((unsigned long)ptr >= (unsigned long)high_memory) ?
+               arbitrary_virt_to_machine(ptr) : virt_to_machine(ptr);
+#else
        u.ptr = virt_to_machine(ptr);
+#endif
        u.val = __pte_val(val);
        BUG_ON(HYPERVISOR_mmu_update(&u, 1, NULL, DOMID_SELF) < 0);
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] i386: Fix xen_l1_entry_update() for highptes., Xen patchbot-linux-2.6.18-xen <=