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

[Xen-changelog] [xen-unstable] [IA64] don't change NaTPAGE into WB



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID dc26ac2f77180521d9523e917a19d974d2459b89
# Parent  d7a511069a3268163461b48ddade672698bab157
[IA64] don't change NaTPAGE into WB

Xen/IA64 changes memory attributes of tlb into WB to prevent domU from
uncachable access.  But NaTPage attribute need not to be changed to WB.
Linux uses NaTPage attributes.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
`
---
 xen/arch/ia64/xen/mm.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r d7a511069a32 -r dc26ac2f7718 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Mon Jul 10 14:12:47 2006 -0600
+++ b/xen/arch/ia64/xen/mm.c    Mon Jul 10 14:14:11 2006 -0600
@@ -475,8 +475,11 @@ u64 translate_domain_pte(u64 pteval, u64
         * Don't let non-dom0 domains map uncached addresses.  This can
         * happen when domU tries to touch i/o port space.  Also prevents
         * possible address aliasing issues.
+        * WB => WB
+        * UC, UCE, WC => WB
+        * NaTPage => NaTPage
         */
-       if (d != dom0)
+       if (d != dom0 && (pteval2 & _PAGE_MA_MASK) != _PAGE_MA_NAT)
                pteval2 &= ~_PAGE_MA_MASK;
 
        return pteval2;

_______________________________________________
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®.