All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: suppress sync when XPTI is disabled for a domain
@ 2018-05-23 14:24 Jan Beulich
  2018-05-23 15:41 ` Andrew Cooper
  2018-05-24  6:04 ` Jan Beulich
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Beulich @ 2018-05-23 14:24 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, Andrew Cooper

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>

--- a/xen/arch/x86/mm.c
+++ b/xen/arch/x86/mm.c
@@ -3765,7 +3765,7 @@
                         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 && v->domain->arch.pv_domain.xpti )
                     {
                         bool local_in_use = false;
 



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86: suppress sync when XPTI is disabled for a domain
  2018-05-23 14:24 [PATCH] x86: suppress sync when XPTI is disabled for a domain Jan Beulich
@ 2018-05-23 15:41 ` Andrew Cooper
  2018-05-24  6:04 ` Jan Beulich
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Cooper @ 2018-05-23 15:41 UTC (permalink / raw)
  To: Jan Beulich, xen-devel; +Cc: Juergen Gross

On 23/05/18 15:24, Jan Beulich wrote:
> 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>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86: suppress sync when XPTI is disabled for a domain
  2018-05-23 14:24 [PATCH] x86: suppress sync when XPTI is disabled for a domain Jan Beulich
  2018-05-23 15:41 ` Andrew Cooper
@ 2018-05-24  6:04 ` Jan Beulich
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2018-05-24  6:04 UTC (permalink / raw)
  To: Andrew Cooper; +Cc: Juergen Gross, xen-devel

>>> On 23.05.18 at 16:24, <JBeulich@suse.com> wrote:
> 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>
> 
> --- a/xen/arch/x86/mm.c
> +++ b/xen/arch/x86/mm.c
> @@ -3765,7 +3765,7 @@
>                          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 && v->domain->arch.pv_domain.xpti )

I've meanwhile realized that instead of v->domain this would better be
pt_dom - I take it that this doesn't invalidate your R-b.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86: suppress sync when XPTI is disabled for a domain
       [not found] <5B0579AF02000078001C51CB@suse.com>
@ 2018-05-29 10:16 ` Juergen Gross
  0 siblings, 0 replies; 4+ messages in thread
From: Juergen Gross @ 2018-05-29 10:16 UTC (permalink / raw)
  To: Jan Beulich, xen-devel; +Cc: Andrew Cooper

On 23/05/18 16:24, Jan Beulich wrote:
> 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>

Release-acked-by: Juergen Gross <jgross@suse.com>


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-29 10:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-23 14:24 [PATCH] x86: suppress sync when XPTI is disabled for a domain Jan Beulich
2018-05-23 15:41 ` Andrew Cooper
2018-05-24  6:04 ` Jan Beulich
     [not found] <5B0579AF02000078001C51CB@suse.com>
2018-05-29 10:16 ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.