[xen master] x86: suppress sync when XPTI is disabled for a domain

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] x86: suppress sync when XPTI is disabled for a domain

patchbot
commit b7eb9d8bd61ecdc399e8fc41ea4bbff35cbe0755
Author:     Jan Beulich <[hidden email]>
AuthorDate: Tue May 29 12:38:09 2018 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Tue May 29 12:38:09 2018 +0200

    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 <[hidden email]>
    Reviewed-by: Andrew Cooper <[hidden email]>
    Release-acked-by: Juergen Gross <[hidden email]>
---
 xen/arch/x86/mm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog