From: Jan Beulich Date: Mon, 14 Apr 2014 13:14:47 +0000 (+0200) Subject: x86/HAP: also flush TLB when altering a present 1G or intermediate entry X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5210 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c82fbfe6ec8be597218eb943641d1f7a81c4c01e;p=xen.git x86/HAP: also flush TLB when altering a present 1G or intermediate entry Signed-off-by: Jan Beulich Acked-by: Tim Deegan --- diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c index b8c5422a14..71227ef94b 100644 --- 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, 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);