Skip to contentSkip to conversation

p2m: no need to send IPIs within p2m_alloc_table()

PATCH Applied Christoph Egger 2 participants 2 messages Aug 22, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 p2m: no need to send IPIs within p2m_alloc_table()

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

Signature · 6 lines
---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
xen/arch/x86/mm/p2m.c +2 -0
diff -r 3f660d0e12f7 xen/arch/x86/mm/p2m.c
@@ -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);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 4 lines · Christoph Egger

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

Applied, thanks.

Tim.

Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)