]> xenbits.xensource.com Git - xen.git/commitdiff
x86/HAP: also flush TLB when altering a present 1G or intermediate entry
authorJan Beulich <jbeulich@suse.com>
Mon, 14 Apr 2014 13:14:47 +0000 (15:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Apr 2014 13:14:47 +0000 (15:14 +0200)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/hap/hap.c

index b8c5422a146d63a3238d0dc5fe2260b235351095..71227ef94baa821fc9478f1ef3ea3f6d043f58c2 100644 (file)
@@ -711,9 +711,8 @@ hap_write_p2m_entry(struct vcpu *v, unsigned long gfn, l1_pgentry_t *p,
     }
 
     safe_write_pte(p, new);
-    if ( (old_flags & _PAGE_PRESENT)
-         && (level == 1 || (level == 2 && (old_flags & _PAGE_PSE))) )
-             flush_tlb_mask(d->domain_dirty_cpumask);
+    if ( old_flags & _PAGE_PRESENT )
+        flush_tlb_mask(d->domain_dirty_cpumask);
 
     paging_unlock(d);