From: Jan Beulich Date: Tue, 29 May 2018 10:38:09 +0000 (+0200) Subject: x86: suppress sync when XPTI is disabled for a domain X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~76 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b7eb9d8bd61ecdc399e8fc41ea4bbff35cbe0755;p=xen.git x86: suppress sync when XPTI is disabled for a domain Now that we have a per-domain flag we can and should control sync-ing in a more fine grained manner: Only domains having XPTI enabled need the sync to occur. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper Release-acked-by: Juergen Gross --- diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 50b5343899..2b743921c3 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -3765,7 +3765,7 @@ long do_mmu_update( break; rc = mod_l4_entry(va, l4e_from_intpte(req.val), mfn, cmd == MMU_PT_UPDATE_PRESERVE_AD, v); - if ( !rc && !cpu_has_no_xpti ) + if ( !rc && pt_owner->arch.pv_domain.xpti ) { bool local_in_use = false;