From: Roger Pau Monne <roger.pau@citrix.com>
To: <xen-devel@lists.xenproject.org>
Cc: Wei Liu <wl@xen.org>, George Dunlap <george.dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Paul Durrant <pdurrant@amazon.com>, Tim Deegan <tim@xen.org>,
Jan Beulich <jbeulich@suse.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: [Xen-devel] [PATCH v4 0/7] x86: improve assisted tlb flush and use it in guest mode
Date: Mon, 10 Feb 2020 18:28:22 +0100 [thread overview]
Message-ID: <20200210172829.43604-1-roger.pau@citrix.com> (raw)
Hello,
The following series aims to improve the TLB flush times when running
nested Xen, and it's specially beneficial when running in shim mode.
Only the HAP guest TLB flush is improved, the shadow paging TLB flush is
left as-is, and can be improved later if there's interest.
For a reference on the performance improvement see patch #7, as it's a
huge increase which can benefit other guests using assisted TLB flushes,
and also the ones using the viridian TLB flush assist (ie: Windows).
Thanks, Roger.
Roger Pau Monne (7):
x86/hvm: allow ASID flush when v != current
x86/paging: add TLB flush hooks
x86/hap: improve hypervisor assisted guest TLB flush
x86/tlb: introduce a flush guests TLB flag
x86/tlb: allow disabling the TLB clock
xen/guest: prepare hypervisor ops to use alternative calls
x86/tlb: use Xen L0 assisted TLB flush when available
xen/arch/x86/flushtlb.c | 24 ++++++---
xen/arch/x86/guest/hyperv/hyperv.c | 2 +-
xen/arch/x86/guest/hypervisor.c | 51 ++++++++++--------
xen/arch/x86/guest/xen/xen.c | 8 ++-
xen/arch/x86/hvm/asid.c | 6 +--
xen/arch/x86/hvm/hvm.c | 51 ++----------------
xen/arch/x86/mm/hap/hap.c | 52 +++++++++++++++++++
xen/arch/x86/mm/shadow/common.c | 71 +++++++++++++++++++++++---
xen/arch/x86/mm/shadow/hvm.c | 2 +-
xen/arch/x86/mm/shadow/multi.c | 16 +++---
xen/arch/x86/smp.c | 11 ++++
xen/include/asm-x86/flushtlb.h | 19 ++++++-
xen/include/asm-x86/guest/hypervisor.h | 17 ++++++
xen/include/asm-x86/hap.h | 3 ++
xen/include/asm-x86/shadow.h | 12 +++++
15 files changed, 246 insertions(+), 99 deletions(-)
--
2.25.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next reply other threads:[~2020-02-10 17:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-10 17:28 Roger Pau Monne [this message]
2020-02-10 17:28 ` [Xen-devel] [PATCH v4 1/7] x86/hvm: allow ASID flush when v != current Roger Pau Monne
2020-02-10 17:28 ` [Xen-devel] [PATCH v4 2/7] x86/paging: add TLB flush hooks Roger Pau Monne
2020-02-13 9:02 ` Tim Deegan
2020-02-13 9:03 ` Tim Deegan
2020-02-10 17:28 ` [Xen-devel] [PATCH v4 3/7] x86/hap: improve hypervisor assisted guest TLB flush Roger Pau Monne
2020-02-10 17:28 ` [Xen-devel] [PATCH v4 4/7] x86/tlb: introduce a flush guests TLB flag Roger Pau Monne
2020-02-13 9:02 ` Tim Deegan
2020-02-10 17:28 ` [Xen-devel] [PATCH v4 5/7] x86/tlb: allow disabling the TLB clock Roger Pau Monne
2020-02-10 20:09 ` Wei Liu
2020-02-10 17:28 ` [Xen-devel] [PATCH v4 6/7] xen/guest: prepare hypervisor ops to use alternative calls Roger Pau Monne
2020-02-10 20:10 ` Wei Liu
2020-02-11 9:52 ` Durrant, Paul
2020-02-10 17:28 ` [Xen-devel] [PATCH v4 7/7] x86/tlb: use Xen L0 assisted TLB flush when available Roger Pau Monne
2020-02-10 20:16 ` Wei Liu
2020-02-11 10:34 ` Wei Liu
2020-02-11 14:06 ` Roger Pau Monné
2020-02-11 14:08 ` Wei Liu
2020-02-18 12:42 ` Roger Pau Monné
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=20200210172829.43604-1-roger.pau@citrix.com \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=pdurrant@amazon.com \
--cc=tim@xen.org \
--cc=wl@xen.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).