mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] avoid unnecessary memslot rmap walks
@ 2020-06-02 20:07 Anthony Yznaga
  2020-06-02 20:07 ` [PATCH 1/3] KVM: x86: remove unnecessary rmap walk of read-only memslots Anthony Yznaga
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Anthony Yznaga @ 2020-06-02 20:07 UTC (permalink / raw)
  To: kvm, linux-kernel
  Cc: pbonzini, sean.j.christopherson, vkuznets, wanpengli, jmattson,
	joro, tglx, mingo, bp, x86, hpa, steven.sistare, anthony.yznaga

While investigating optimizing qemu start time for large memory guests
I found that kvm_mmu_slot_apply_flags() is walking rmaps to update
existing sptes when creating or moving a slot but that there won't be
any existing sptes to update and any sptes inserted once the new memslot
is visible won't need updating.  I can't find any reason for this not to
be the case, but I've taken a more cautious approach to fixing this by
dividing things into three patches.

Anthony Yznaga (3):
  KVM: x86: remove unnecessary rmap walk of read-only memslots
  KVM: x86: avoid unnecessary rmap walks when creating/moving slots
  KVM: x86: minor code refactor and comments fixup around dirty logging

 arch/x86/kvm/x86.c | 106 +++++++++++++++++++++++++----------------------------
 1 file changed, 49 insertions(+), 57 deletions(-)

-- 
2.13.3


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

end of thread, other threads:[~2020-06-04 18:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 20:07 [PATCH 0/3] avoid unnecessary memslot rmap walks Anthony Yznaga
2020-06-02 20:07 ` [PATCH 1/3] KVM: x86: remove unnecessary rmap walk of read-only memslots Anthony Yznaga
2020-06-02 20:07 ` [PATCH 2/3] KVM: x86: avoid unnecessary rmap walks when creating/moving slots Anthony Yznaga
2020-06-02 20:07 ` [PATCH 3/3] KVM: x86: minor code refactor and comments fixup around dirty logging Anthony Yznaga
2020-06-04 18:42 ` [PATCH 0/3] avoid unnecessary memslot rmap walks Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®