# Commit c82fbfe6ec8be597218eb943641d1f7a81c4c01e # Date 2014-04-14 15:14:47 +0200 # Author Jan Beulich # Committer Jan Beulich x86/HAP: also flush TLB when altering a present 1G or intermediate entry Signed-off-by: Jan Beulich Acked-by: Tim Deegan --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -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);