mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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 <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
849cc9ac56
commit
b7eb9d8bd6
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
|
||||