Skip to contentSkip to conversation

x86/HAP: also flush TLB when altering a present 1G entry or intermediate levels

PATCH In review Jan Beulich 2 participants 2 messages Apr 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/HAP: also flush TLB when altering a present 1G entry or intermediate levels

---
v2: Flush on all changes of previously present entries.

xen/arch/x86/mm/hap/hap.c +2 -3
@@ -711,9 +711,8 @@ hap_write_p2m_entry(struct vcpu *v, unsi
     }
 
     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);
 

x86/HAP: also flush TLB when altering a present 1G entry or intermediate levels

---
v2: Flush on all changes of previously present entries.

xen/arch/x86/mm/hap/hap.c +2 -3
@@ -711,9 +711,8 @@ hap_write_p2m_entry(struct vcpu *v, unsi
     }
 
     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);
 

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