Skip to content

KVM: MIPS: cleanup TLB flushing callbacks

Paolo Bonzini kvm linux-mips lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: constify kvm_arch_flush_remote_tlbs_memslotarch/arm64/kvm/arm.c arch/mips/kvm/mips.c arch/x86/kvm/mmu/mmu.c +1 more+4 -41 reply
2/4KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flusharch/mips/include/asm/kvm_host.h arch/mips/kvm/mips.c arch/mips/kvm/mmu.c +2 more+19 -437 replies
3/4KVM: MIPS: let generic code call prepare_flush_shadowarch/mips/include/asm/kvm_host.h arch/mips/kvm/mips.c arch/mips/kvm/mmu.c+10 -100 replies
4/4KVM: MIPS: defer flush to generic MMU notifier codearch/mips/kvm/mmu.c+2 -90 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchHuacai Chen
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] KVM: MIPS: cleanup TLB flushing callbacks

This series cleans up the flush_shadow_all and flush_shadow_memslot callbacks, turning them into a single function that can be called from kvm_arch_flush_remote_tlb. This lets MIPS use the generic TLB flushing code in the MMU notifiers. With the upcoming refactoring of generic MMU notifier code, without this patch MIPS would not be able to coalesce TLB flushes anymore across multiple memslots.

Patch 1 is an unrelated cleanup that is needed for the rest to compile (due to a call to kvm_arch_flush_remote_tlbs_memslot with a const argument).

Paolo

Paolo Bonzini (4):
KVM: constify kvm_arch_flush_remote_tlbs_memslot
KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the
flush
KVM: MIPS: let generic code call prepare_flush_shadow
KVM: MIPS: defer flush to generic MMU notifier code

 arch/arm64/kvm/arm.c             |  2 +-
 arch/mips/include/asm/kvm_host.h | 12 ++++--------
 arch/mips/kvm/mips.c             | 21 +++++++++++----------
 arch/mips/kvm/mmu.c              | 12 ++----------
 arch/mips/kvm/trap_emul.c        | 13 ++-----------
 arch/mips/kvm/vz.c               | 19 ++++---------------
 arch/x86/kvm/mmu/mmu.c           |  2 +-
 include/linux/kvm_host.h         |  2 +-
 8 files changed, 26 insertions(+), 57 deletions(-)
Signature · 1 line
2.30.1