linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] KVM: x86/mmu: Skip mmu_notifier changes when possible
@ 2021-01-28  6:05 David Stevens
  2021-01-28  6:05 ` [PATCH v3 1/2] KVM: x86/mmu: Skip mmu_notifier check when handling MMIO page fault David Stevens
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Stevens @ 2021-01-28  6:05 UTC (permalink / raw)
  To: Sean Christopherson
  Cc: Paolo Bonzini, Vitaly Kuznetsov, Wanpeng Li, Jim Mattson,
	Joerg Roedel, kvm, linux-kernel, Marc Zyngier, James Morse,
	Julien Thierry, Suzuki K Poulose, linux-arm-kernel, kvmarm,
	Huacai Chen, Aleksandar Markovic, linux-mips, Paul Mackerras,
	kvm-ppc, Christian Borntraeger, Janosch Frank, David Hildenbrand,
	Cornelia Huck, Claudio Imbrenda, David Stevens

These patches reduce how often mmu_notifier updates block guest page
faults. The primary benefit of this is the reduction in the likelihood
of extreme latency when handling a page fault due to another thread
having been preempted while modifying host virtual addresses.

v2 -> v3:
 - Added patch to skip check for MMIO page faults
 - Style changes

David Stevens (1):
  KVM: x86/mmu: Consider the hva in mmu_notifier retry

Sean Christopherson (1):
  KVM: x86/mmu: Skip mmu_notifier check when handling MMIO page fault

 arch/powerpc/kvm/book3s_64_mmu_hv.c    |  2 +-
 arch/powerpc/kvm/book3s_64_mmu_radix.c |  2 +-
 arch/x86/kvm/mmu/mmu.c                 | 16 ++++++++------
 arch/x86/kvm/mmu/paging_tmpl.h         |  7 ++++---
 include/linux/kvm_host.h               | 25 +++++++++++++++++++++-
 virt/kvm/kvm_main.c                    | 29 ++++++++++++++++++++++----
 6 files changed, 65 insertions(+), 16 deletions(-)

-- 
2.30.0.280.ga3ce27912f-goog


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

end of thread, other threads:[~2021-02-05  5:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28  6:05 [PATCH v3 0/2] KVM: x86/mmu: Skip mmu_notifier changes when possible David Stevens
2021-01-28  6:05 ` [PATCH v3 1/2] KVM: x86/mmu: Skip mmu_notifier check when handling MMIO page fault David Stevens
2021-01-28  6:05 ` [PATCH v3 2/2] KVM: x86/mmu: Consider the hva in mmu_notifier retry David Stevens
2021-01-28 12:48 ` [PATCH v3 0/2] KVM: x86/mmu: Skip mmu_notifier changes when possible Paolo Bonzini
2021-02-05  5:58   ` David Stevens

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