All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7 -v2] KVM: Alleviate mmu_lock hold time when we start dirty logging
@ 2013-01-08 10:42 Takuya Yoshikawa
  2013-01-08 10:43 ` [PATCH 1/7] KVM: Write protect the updated slot only when dirty logging is enabled Takuya Yoshikawa
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Takuya Yoshikawa @ 2013-01-08 10:42 UTC (permalink / raw)
  To: mtosatti, gleb; +Cc: kvm, linux-kernel

Changelog v1->v2:
  The condition in patch 1 was changed like this:
    npages && (mem->flags & KVM_MEM_LOG_DIRTY_PAGES)

This patch set makes kvm_mmu_slot_remove_write_access() rmap based and
adds conditional rescheduling to it.

The motivation for this change is of course to reduce the mmu_lock hold
time when we start dirty logging for a large memory slot.  You may not
see the problem if you just give 8GB or less of the memory to the guest
with THP enabled on the host -- this is for the worst case.

Takuya Yoshikawa (7):
  KVM: Write protect the updated slot only when dirty logging is enabled
  KVM: MMU: Remove unused parameter level from __rmap_write_protect()
  KVM: MMU: Make kvm_mmu_slot_remove_write_access() rmap based
  KVM: Remove unused slot_bitmap from kvm_mmu_page
  KVM: Make kvm_mmu_change_mmu_pages() take mmu_lock by itself
  KVM: Make kvm_mmu_slot_remove_write_access() take mmu_lock by itself
  KVM: MMU: Conditionally reschedule when kvm_mmu_slot_remove_write_access() takes a long time

 Documentation/virtual/kvm/mmu.txt |    7 ----
 arch/x86/include/asm/kvm_host.h   |    5 ---
 arch/x86/kvm/mmu.c                |   56 +++++++++++++++++++-----------------
 arch/x86/kvm/x86.c                |   12 ++++---
 virt/kvm/kvm_main.c               |    1 -
 5 files changed, 37 insertions(+), 44 deletions(-)

-- 
1.7.5.4


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

end of thread, other threads:[~2013-01-14  9:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-08 10:42 [PATCH 0/7 -v2] KVM: Alleviate mmu_lock hold time when we start dirty logging Takuya Yoshikawa
2013-01-08 10:43 ` [PATCH 1/7] KVM: Write protect the updated slot only when dirty logging is enabled Takuya Yoshikawa
2013-01-08 10:44 ` [PATCH 2/7] KVM: MMU: Remove unused parameter level from __rmap_write_protect() Takuya Yoshikawa
2013-01-08 10:44 ` [PATCH 3/7] KVM: MMU: Make kvm_mmu_slot_remove_write_access() rmap based Takuya Yoshikawa
2013-01-08 10:45 ` [PATCH 4/7] KVM: Remove unused slot_bitmap from kvm_mmu_page Takuya Yoshikawa
2013-01-08 10:46 ` [PATCH 5/7] KVM: Make kvm_mmu_change_mmu_pages() take mmu_lock by itself Takuya Yoshikawa
2013-01-08 10:46 ` [PATCH 6/7] KVM: Make kvm_mmu_slot_remove_write_access() " Takuya Yoshikawa
2013-01-08 10:47 ` [PATCH 7/7] KVM: MMU: Conditionally reschedule when kvm_mmu_slot_remove_write_access() takes a long time Takuya Yoshikawa
2013-01-10 17:49 ` [PATCH 0/7 -v2] KVM: Alleviate mmu_lock hold time when we start dirty logging Marcelo Tosatti
2013-01-14  9:15 ` Gleb Natapov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.