xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] p2m: no need to send IPIs within p2m_alloc_table()
@ 2011-08-22 11:54 Christoph Egger
  2011-08-22 13:43 ` Tim Deegan
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Egger @ 2011-08-22 11:54 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com, Tim Deegan

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]


There is no need to send IPIs within p2m_alloc_table() via
set_p2m_entry().

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

-- 
---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

[-- Attachment #2: xen_nh_ipi.diff --]
[-- Type: text/plain, Size: 758 bytes --]

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);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] p2m: no need to send IPIs within p2m_alloc_table()
  2011-08-22 11:54 [PATCH] p2m: no need to send IPIs within p2m_alloc_table() Christoph Egger
@ 2011-08-22 13:43 ` Tim Deegan
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Deegan @ 2011-08-22 13:43 UTC (permalink / raw)
  To: Christoph Egger; +Cc: xen-devel@lists.xensource.com, Tim Deegan

At 13:54 +0200 on 22 Aug (1314021256), Christoph Egger wrote:
> There is no need to send IPIs within p2m_alloc_table() via
> set_p2m_entry().
> 
> Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

Applied, thanks.

Tim.

-- 
Tim Deegan <tim@xen.org>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-22 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-22 11:54 [PATCH] p2m: no need to send IPIs within p2m_alloc_table() Christoph Egger
2011-08-22 13:43 ` Tim Deegan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).