Skip to contentSkip to conversation

Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types

PATCH New Tim Deegan 1 participant 1 message Jun 30, 2010

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types

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.

xen/arch/x86/mm/p2m.c +1 -1
diff -r 74cefb50559e xen/arch/x86/mm/p2m.c
@@ -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);
 

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.

xen/arch/x86/mm/p2m.c +1 -1
diff -r 74cefb50559e xen/arch/x86/mm/p2m.c
@@ -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
[email protected]
http://lists.xensource.com/xen-devel