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

[Xen-changelog] [xen-unstable] [IA64] Only set nocache flag on dom0 ranges that do not support WB



# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1167978090 25200
# Node ID 90db0f68b1219cb7e78df2a92fa33aa1c85b52f9
# Parent  0f571adbd70044cd5640ce53eb202a0233db7ce2
[IA64] Only set nocache flag on dom0 ranges that do not support WB

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
 xen/arch/ia64/xen/dom_fw.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 0f571adbd700 -r 90db0f68b121 xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c        Thu Jan 04 16:25:14 2007 -0700
+++ b/xen/arch/ia64/xen/dom_fw.c        Thu Jan 04 23:21:30 2007 -0700
@@ -549,7 +549,8 @@ complete_dom0_memmap(struct domain *d,
                        flags = ASSIGN_writable;        /* dummy - zero */
                        if (md->attribute & EFI_MEMORY_WP)
                                flags |= ASSIGN_readonly;
-                       if (md->attribute & EFI_MEMORY_UC)
+                       if ((md->attribute & EFI_MEMORY_UC) &&
+                           !(md->attribute & EFI_MEMORY_WB))
                                flags |= ASSIGN_nocache;
 
                        assign_domain_mach_page(d, start, size, flags);

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