[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-devel
Subject:    [Xen-devel] [PATCH] Use gfn_to_mfn_query() rather then gfn_to_mfn()
From:       Tim Deegan <Tim.Deegan () citrix ! com>
Date:       2010-06-30 11:02:12
Message-ID: 20100630110211.GH31695 () whitby ! uk ! xensource ! com
[Download RAW message or body]

Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing
P2M types since we do not really want to force a PoD allocation
as a side effect.

Signed-off-by: Paul Durrant <Paul.Durrant@citrix.com>

diff -r 74cefb50559e xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c	Fri Oct 30 15:52:02 2009 +0000
+++ b/xen/arch/x86/mm/p2m.c	Fri Oct 30 16:47:29 2009 +0000
@@ -2557,7 +2557,7 @@
 
     p2m_lock(d->arch.p2m);
 
-    mfn = gfn_to_mfn(d, gfn, &pt);
+    mfn = gfn_to_mfn_query(d, gfn, &pt);
     if ( pt == ot )
         set_p2m_entry(d, gfn, mfn, 0, nt);


["p2m_change_type_use_query" (text/plain)]

Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing
P2M types since we do not really want to force a PoD allocation
as a side effect.

Signed-off-by: Paul Durrant <Paul.Durrant@citrix.com>

diff -r 74cefb50559e xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c	Fri Oct 30 15:52:02 2009 +0000
+++ b/xen/arch/x86/mm/p2m.c	Fri Oct 30 16:47:29 2009 +0000
@@ -2557,7 +2557,7 @@
 
     p2m_lock(d->arch.p2m);
 
-    mfn = gfn_to_mfn(d, gfn, &pt);
+    mfn = gfn_to_mfn_query(d, gfn, &pt);
     if ( pt == ot )
         set_p2m_entry(d, gfn, mfn, 0, nt);



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic