All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Juergen Gross <jgross@suse.com>
Cc: andrew.cooper3@citrix.com, xen-devel@lists.xenproject.org
Subject: Re: [PATCH v4 4/7] xen/x86: use invpcid for flushing the TLB
Date: Wed, 28 Mar 2018 07:56:58 -0600	[thread overview]
Message-ID: <5ABBBB4A02000078001B6D42@prv1-mh.provo.novell.com> (raw)
In-Reply-To: <20180327090704.28646-5-jgross@suse.com>

>>> On 27.03.18 at 11:07, <jgross@suse.com> wrote:
> If possible use the INVPCID instruction for flushing the TLB instead of
> toggling cr4.pge for that purpose.
> 
> While at it remove the dependency on cr4.pge being required for mtrr
> loading, as this will be required later anyway.
> 
> Add a command line option "invpcid" for controlling the use of
> INVPCID (default to true).
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Jan Beulich <jbeulich@suse.com>
with one remarks (which could be addressed while committing):

> @@ -71,6 +72,25 @@ static void post_flush(u32 t)
>      this_cpu(tlbflush_time) = t;
>  }
>  
> +static void do_tlb_flush(void)
> +{
> +    u32 t;
> +
> +    t = pre_flush();

In the original code this was the initializer of the variable, and I'd
prefer if that stayed that way (unless later changes require the
split).

Jan


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

  reply	other threads:[~2018-03-28 13:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27  9:06 [PATCH v4 0/7] xen/x86: various XPTI speedups Juergen Gross
2018-03-27  9:06 ` [PATCH v4 1/7] x86/xpti: avoid copying L4 page table contents when possible Juergen Gross
2018-03-28 13:45   ` Jan Beulich
2018-03-27  9:06 ` [PATCH v4 2/7] x86/xpti: don't flush TLB twice when switching to 64-bit pv context Juergen Gross
2018-03-28 13:48   ` Jan Beulich
2018-03-27  9:07 ` [PATCH v4 3/7] xen/x86: support per-domain flag for xpti Juergen Gross
2018-03-27  9:07 ` [PATCH v4 4/7] xen/x86: use invpcid for flushing the TLB Juergen Gross
2018-03-28 13:56   ` Jan Beulich [this message]
2018-03-29 13:44   ` Jan Beulich
     [not found]   ` <5ABD09EC02000078001B737F@suse.com>
2018-03-29 14:29     ` Juergen Gross
2018-03-27  9:07 ` [PATCH v4 5/7] xen/x86: disable global pages for domains with XPTI active Juergen Gross
2018-03-29 13:12   ` Jan Beulich
2018-03-27  9:07 ` [PATCH v4 6/7] xen/x86: use flag byte for decision whether xen_cr3 is valid Juergen Gross
2018-03-27  9:07 ` [PATCH v4 7/7] xen/x86: use PCID feature Juergen Gross
2018-03-29 14:19   ` Jan Beulich
     [not found]   ` <5ABD122B02000078001B73A2@suse.com>
2018-03-29 15:15     ` Juergen Gross
2018-03-29 15:37       ` Jan Beulich
     [not found]       ` <5ABD245702000078001B745D@suse.com>
2018-04-03  7:14         ` Juergen Gross
2018-04-05  6:25           ` Juergen Gross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5ABBBB4A02000078001B6D42@prv1-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jgross@suse.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.