From: Tim Deegan Subject: [PATCH] Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types Date: Wed, 30 Jun 2010 12:02:12 +0100 Message-ID: <20100630110211.GH31695@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nmemrqcdn5VTmUEE" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --nmemrqcdn5VTmUEE Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline 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 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); --nmemrqcdn5VTmUEE Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: attachment; filename="p2m_change_type_use_query" 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 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); --nmemrqcdn5VTmUEE Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --nmemrqcdn5VTmUEE--