xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH v6 0/6] x86: improve assisted tlb flush and use it in guest mode
@ 2020-03-03 17:20 Roger Pau Monne
  2020-03-03 17:20 ` [Xen-devel] [PATCH v6 1/6] x86/hvm: allow ASID flush when v != current Roger Pau Monne
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Roger Pau Monne @ 2020-03-03 17:20 UTC (permalink / raw)
  To: xen-devel
  Cc: Wei Liu, Andrew Cooper, Paul Durrant, Tim Deegan, George Dunlap,
	Jan Beulich, Roger Pau Monne

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).

All patches have at least one Reviewed-by or Acked-by tag, the only code
change vs v4 is a fix to extract the order from the flags field in patch
#7.

Thanks, Roger.

Roger Pau Monne (6):
  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
  x86/tlb: use Xen L0 assisted TLB flush when available

 xen/arch/x86/flushtlb.c                | 24 ++++++---
 xen/arch/x86/guest/hypervisor.c        | 14 +++++
 xen/arch/x86/guest/xen/xen.c           |  6 +++
 xen/arch/x86/hvm/asid.c                |  6 +--
 xen/arch/x86/hvm/hvm.c                 | 56 +-------------------
 xen/arch/x86/hvm/viridian/viridian.c   |  2 +-
 xen/arch/x86/mm/hap/hap.c              | 50 ++++++++++++++++++
 xen/arch/x86/mm/shadow/common.c        | 71 +++++++++++++++++++++++---
 xen/arch/x86/mm/shadow/hvm.c           |  2 +-
 xen/arch/x86/mm/shadow/multi.c         | 17 +++---
 xen/arch/x86/mm/shadow/private.h       |  4 ++
 xen/arch/x86/smp.c                     |  7 +++
 xen/include/asm-x86/flushtlb.h         | 23 ++++++++-
 xen/include/asm-x86/guest/hypervisor.h | 17 ++++++
 xen/include/asm-x86/hvm/hvm.h          |  3 --
 xen/include/asm-x86/paging.h           | 10 ++++
 16 files changed, 224 insertions(+), 88 deletions(-)

-- 
2.25.0


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

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

end of thread, other threads:[~2020-03-19 15:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 17:20 [Xen-devel] [PATCH v6 0/6] x86: improve assisted tlb flush and use it in guest mode Roger Pau Monne
2020-03-03 17:20 ` [Xen-devel] [PATCH v6 1/6] x86/hvm: allow ASID flush when v != current Roger Pau Monne
2020-03-03 17:20 ` [Xen-devel] [PATCH v6 2/6] x86/paging: add TLB flush hooks Roger Pau Monne
2020-03-03 17:26   ` Durrant, Paul
2020-03-05 15:37   ` Jan Beulich
2020-03-03 17:20 ` [Xen-devel] [PATCH v6 3/6] x86/hap: improve hypervisor assisted guest TLB flush Roger Pau Monne
2020-03-05 15:38   ` Jan Beulich
2020-03-03 17:20 ` [Xen-devel] [PATCH v6 4/6] x86/tlb: introduce a flush guests TLB flag Roger Pau Monne
2020-03-06  9:28   ` Jan Beulich
2020-03-03 17:20 ` [Xen-devel] [PATCH v6 5/6] x86/tlb: allow disabling the TLB clock Roger Pau Monne
2020-03-03 17:20 ` [Xen-devel] [PATCH v6 6/6] x86/tlb: use Xen L0 assisted TLB flush when available Roger Pau Monne
2020-03-06  9:32   ` Jan Beulich
2020-03-19 15:40     ` Roger Pau Monné

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).