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

[Xen-changelog] [xen-unstable] shadow: Fix TLB flushing in the second pass of sh_prealloc() in the



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1209126439 -3600
# Node ID 7689e311f3b5ee4a4d547405c73e40ab689875f0
# Parent  97da69831384f0819caeeb8b8bdff0f942b2d690
shadow: Fix TLB flushing in the second pass of sh_prealloc() in the
case where multiple vcpus use the same pagetables.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
---
 xen/arch/x86/mm/shadow/common.c |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)

diff -r 97da69831384 -r 7689e311f3b5 xen/arch/x86/mm/shadow/common.c
--- a/xen/arch/x86/mm/shadow/common.c   Thu Apr 24 14:33:42 2008 +0100
+++ b/xen/arch/x86/mm/shadow/common.c   Fri Apr 25 13:27:19 2008 +0100
@@ -781,7 +781,6 @@ static void _shadow_prealloc(
     struct vcpu *v, *v2;
     struct list_head *l, *t;
     struct shadow_page_info *sp;
-    cpumask_t flushmask = CPU_MASK_NONE;
     mfn_t smfn;
     int i;
 
@@ -819,12 +818,11 @@ static void _shadow_prealloc(
             {
                 shadow_unhook_mappings(v, 
                                pagetable_get_mfn(v2->arch.shadow_table[i]));
-                cpus_or(flushmask, v2->vcpu_dirty_cpumask, flushmask);
 
                 /* See if that freed up enough space */
                 if ( space_is_available(d, order, count) )
                 {
-                    flush_tlb_mask(flushmask);
+                    flush_tlb_mask(d->domain_dirty_cpumask);
                     return;
                 }
             }

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