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

[Xen-changelog] [xen-unstable] x86, hvm: Better MTRR type check.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1225972221 0
# Node ID 3450cb9706acc2a1aa55316cb3e1474b57172419
# Parent  6b6610c115fc4b0ae75fbbd768e3b01c81152c5f
x86, hvm: Better MTRR type check.
From: Disheng Su <disheng.su@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/hvm/mtrr.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 6b6610c115fc -r 3450cb9706ac xen/arch/x86/hvm/mtrr.c
--- a/xen/arch/x86/hvm/mtrr.c   Thu Nov 06 11:48:11 2008 +0000
+++ b/xen/arch/x86/hvm/mtrr.c   Thu Nov 06 11:50:21 2008 +0000
@@ -392,7 +392,10 @@ uint32_t get_pat_flags(struct vcpu *v,
      */
     if ( pat_entry_value == INVALID_MEM_TYPE )
     {
-        if (mfn_valid(paddr_to_pfn(spaddr)))
+        struct domain *d = v->domain;
+        p2m_type_t p2mt;
+        gfn_to_mfn(d, paddr_to_pfn(gpaddr), &p2mt);
+        if (p2m_is_ram(p2mt))
             gdprintk(XENLOG_WARNING,
                     "Conflict occurs for a given guest l1e flags:%x "
                     "at %"PRIx64" (the effective mm type:%d), "

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