Skip to content

KVM: x86/mmu: Skip mmu_notifier changes when possible

David Stevens kvm kvm-ppc kvmarm linux-arm-kernel linux-mips lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 2 repliesApplied

Changes in v4 from the cover letter

- Fix bug by skipping prefetch during invalidation

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: x86/mmu: Skip mmu_notifier check when handling MMIO page faultarch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+2 -20 replies
2/2KVM: x86/mmu: Consider the hva in mmu_notifier retryarch/powerpc/kvm/book3s_64_mmu_hv.c arch/powerpc/kvm/book3s_64_mmu_radix.c arch/x86/kvm/mmu/mmu.c +3 more+72 -161 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/2] KVM: x86/mmu: Skip mmu_notifier changes when possible

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.

v3 -> v4:
- Fix bug by skipping prefetch during invalidation

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                 | 23 ++++++++++++++------
 arch/x86/kvm/mmu/paging_tmpl.h         |  7 ++++---
 include/linux/kvm_host.h               | 25 +++++++++++++++++++++-
 virt/kvm/kvm_main.c                    | 29 ++++++++++++++++++++++----
 6 files changed, 72 insertions(+), 16 deletions(-)
Signature · 1 line
2.30.0.617.g56c4b15f3c-goog