linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: chenhuacai@kernel.org, aleksandar.qemu.devel@gmail.com,
	seanjc@google.com, linux-mips@vger.kernel.org
Subject: [PATCH 0/4] KVM: MIPS: cleanup TLB flushing callbacks
Date: Fri,  2 Apr 2021 17:58:03 +0200	[thread overview]
Message-ID: <20210402155807.49976-1-pbonzini@redhat.com> (raw)

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

-- 
2.30.1


             reply	other threads:[~2021-04-02 15:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-02 15:58 Paolo Bonzini [this message]
2021-04-02 15:58 ` [PATCH 1/4] KVM: constify kvm_arch_flush_remote_tlbs_memslot Paolo Bonzini
2021-04-03  2:28   ` Huacai Chen
2021-04-02 15:58 ` [PATCH 2/4] KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flush Paolo Bonzini
2021-04-03  2:31   ` Huacai Chen
2021-04-03  7:08     ` Paolo Bonzini
2021-04-03 10:43     ` Paolo Bonzini
2021-04-06  1:36       ` Huacai Chen
2021-04-06  6:05         ` Paolo Bonzini
2021-04-06 11:39           ` Thomas Bogendoerfer
2021-04-06 11:55             ` Paolo Bonzini
2021-04-02 15:58 ` [PATCH 3/4] KVM: MIPS: let generic code call prepare_flush_shadow Paolo Bonzini
2021-04-02 15:58 ` [PATCH 4/4] KVM: MIPS: defer flush to generic MMU notifier code Paolo Bonzini

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=20210402155807.49976-1-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=aleksandar.qemu.devel@gmail.com \
    --cc=chenhuacai@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=seanjc@google.com \
    /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).