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

[Xen-changelog] Fix sync_lazy_execstate functions to correctly sync the local cpu.



ChangeSet 1.1628.1.1, 2005/06/01 16:50:02+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Fix sync_lazy_execstate functions to correctly sync the local cpu.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 domain.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)


diff -Nru a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     2005-06-02 05:02:49 -04:00
+++ b/xen/arch/x86/domain.c     2005-06-02 05:02:49 -04:00
@@ -819,12 +819,17 @@
 
 void sync_lazy_execstate_cpuset(unsigned long cpuset)
 {
-    flush_tlb_mask(cpuset);
+    if ( cpuset & (1 << smp_processor_id()) )
+        (void)__sync_lazy_execstate();
+    /* Other cpus call __sync_lazy_execstate from flush ipi handler. */
+    flush_tlb_mask(cpuset & ~(1 << smp_processor_id()));
 }
 
 void sync_lazy_execstate_all(void)
 {
-    flush_tlb_all();
+    __sync_lazy_execstate();
+    /* Other cpus call __sync_lazy_execstate from flush ipi handler. */
+    flush_tlb_mask(((1<<num_online_cpus())-1) & ~(1 << smp_processor_id()));
 }
 
 unsigned long __hypercall_create_continuation(

_______________________________________________
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®.