From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] p2m: no need to send IPIs within p2m_alloc_table() Date: Mon, 22 Aug 2011 13:54:16 +0200 Message-ID: <4E524368.4010809@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070003080108090807020306" Return-path: 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" , Tim Deegan List-Id: xen-devel@lists.xenproject.org --------------070003080108090807020306 Content-Type: text/plain; charset="ISO-8859-15"; format=flowed Content-Transfer-Encoding: 7bit There is no need to send IPIs within p2m_alloc_table() via set_p2m_entry(). Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --------------070003080108090807020306 Content-Type: text/plain; name="xen_nh_ipi.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_nh_ipi.diff" Content-Description: xen_nh_ipi.diff diff -r 3f660d0e12f7 xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c Fri Aug 19 15:26:03 2011 +0200 +++ b/xen/arch/x86/mm/p2m.c Mon Aug 22 13:52:51 2011 +0200 @@ -247,6 +247,7 @@ int p2m_alloc_table(struct p2m_domain *p P2M_PRINTK("populating p2m table\n"); /* Initialise physmap tables for slot zero. Other code assumes this. */ + p2m->defer_nested_flush = 1; if ( !set_p2m_entry(p2m, 0, _mfn(INVALID_MFN), 0, p2m_invalid, p2m->default_access) ) { @@ -277,6 +278,7 @@ int p2m_alloc_table(struct p2m_domain *p } spin_unlock(&p2m->domain->page_alloc_lock); } + p2m->defer_nested_flush = 0; P2M_PRINTK("p2m table initialised (%u pages)\n", page_count); p2m_unlock(p2m); --------------070003080108090807020306 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 --------------070003080108090807020306--