[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] nested-p2m: suppress np2m flushes during p2m setup



# HG changeset patch
# User Christoph Egger <Christoph.Egger@xxxxxxx>
# Date 1314020249 -3600
# Node ID ab664a21ae45a8c86b5ffdb73f171c72c2ae5615
# Parent  2029263c501c315fa4d94845e5cfa6a9b0b395d5
nested-p2m: suppress np2m flushes during p2m setup

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

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Committed-by: Tim Deegan <tim@xxxxxxx>
---


diff -r 2029263c501c -r ab664a21ae45 xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c     Mon Aug 22 10:12:36 2011 +0100
+++ b/xen/arch/x86/mm/p2m.c     Mon Aug 22 14:37:29 2011 +0100
@@ -245,6 +245,7 @@
     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) )
         goto error;
@@ -272,6 +273,7 @@
         }
         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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.