kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Unlocked TLB flush
@ 2012-05-03 11:22 Avi Kivity
  2012-05-03 11:22 ` [PATCH 1/4] KVM: Add APIs for unlocked " Avi Kivity
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Avi Kivity @ 2012-05-03 11:22 UTC (permalink / raw)
  To: kvm, Marcelo Tosatti, Xiao Guangrong, takuya.yoshikawa

This patchset implements unlocked TLB flushing for KVM.  An operation that
generates stale TLB entries can mark the TLB as dirty instead of flushing
immediately, and then flush after releasing mmu_lock but before returning
to the guest or the caller.  A few call sites are converted too.

Note not all call sites are easily convertible; as an example, sync_page()
must flush before reading the guest page table.

Avi Kivity (4):
  KVM: Add APIs for unlocked TLB flush
  KVM: Flush TLB in mmu notifier without holding mmu_lock
  KVM: Flush TLB in FNAME(invlpg) without holding mmu_lock
  KVM: Flush TLB in change_pte mmu notifier without holding mmu_lock

 Documentation/virtual/kvm/locking.txt |   14 ++++++++++++
 arch/x86/kvm/mmu.c                    |   15 +++++--------
 arch/x86/kvm/paging_tmpl.h            |    9 ++++----
 include/linux/kvm_host.h              |   22 ++++++++++++++++++-
 virt/kvm/kvm_main.c                   |   39 +++++++++++++++++++++++----------
 5 files changed, 72 insertions(+), 27 deletions(-)

-- 
1.7.10


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

end of thread, other threads:[~2012-05-21 14:46 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 11:22 [PATCH 0/4] Unlocked TLB flush Avi Kivity
2012-05-03 11:22 ` [PATCH 1/4] KVM: Add APIs for unlocked " Avi Kivity
2012-05-03 13:23   ` Xiao Guangrong
2012-05-03 14:11     ` Avi Kivity
2012-05-07  7:06       ` Xiao Guangrong
2012-05-07  7:59         ` Avi Kivity
2012-05-08  1:55           ` Marcelo Tosatti
2012-05-08  9:09             ` Avi Kivity
2012-05-08 13:50               ` Marcelo Tosatti
2012-05-08  9:09             ` Avi Kivity
2012-05-08  2:25       ` Marcelo Tosatti
2012-05-08 12:39         ` Avi Kivity
2012-05-09 21:03           ` Marcelo Tosatti
2012-05-21 14:45             ` Avi Kivity
2012-05-03 11:23 ` [PATCH 2/4] KVM: Flush TLB in mmu notifier without holding mmu_lock Avi Kivity
2012-05-03 11:23 ` [PATCH 3/4] KVM: Flush TLB in FNAME(invlpg) " Avi Kivity
2012-05-03 11:23 ` [PATCH 4/4] KVM: Flush TLB in change_pte mmu notifier " Avi Kivity
2012-05-08  1:25 ` [PATCH 0/4] Unlocked TLB flush Marcelo Tosatti
2012-05-08  1:27   ` Marcelo Tosatti
2012-05-08 10:51     ` Avi Kivity

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