]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86: suppress sync when XPTI is disabled for a domain
authorJan Beulich <jbeulich@suse.com>
Tue, 29 May 2018 10:38:09 +0000 (12:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 May 2018 10:38:09 +0000 (12:38 +0200)
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 <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/mm.c

index 50b53438997436f3de5a6e5ff70a8d2130adf8b0..2b743921c3ac1dfb340146ac4563ecb571dfa07d 100644 (file)
@@ -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;