All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] KVM: x86: Enable dirty logging lazily for huge pages
@ 2021-04-29  3:41 Keqian Zhu
  2021-04-29  3:41 ` [PATCH v3 1/2] KVM: x86: Support write protect gfn with min_level Keqian Zhu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Keqian Zhu @ 2021-04-29  3:41 UTC (permalink / raw)
  To: linux-kernel, kvm, Paolo Bonzini, Sean Christopherson, Ben Gardon
  Cc: wanghaibin.wang

Hi,

Currently during start dirty logging, if we're with init-all-set,
we write protect huge pages and leave normal pages untouched, for
that we can enable dirty logging for these pages lazily.

Actually enable dirty logging lazily for huge pages is feasible
too, which not only reduces the time of start dirty logging, also
greatly reduces side-effect on guest when there is high dirty rate.

Thanks,
Keqian

Changelog:

v3:
 - Discussed with Ben and delete RFC comments. Thanks.

Keqian Zhu (2):
  KVM: x86: Support write protect gfn with min_level
  KVM: x86: Not wr-protect huge page with init_all_set dirty log

 arch/x86/kvm/mmu/mmu.c          | 38 ++++++++++++++++++++++++++-------
 arch/x86/kvm/mmu/mmu_internal.h |  3 ++-
 arch/x86/kvm/mmu/page_track.c   |  2 +-
 arch/x86/kvm/mmu/tdp_mmu.c      | 16 ++++++++++----
 arch/x86/kvm/mmu/tdp_mmu.h      |  3 ++-
 arch/x86/kvm/x86.c              | 37 +++++++++-----------------------
 6 files changed, 57 insertions(+), 42 deletions(-)

-- 
2.23.0


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

end of thread, other threads:[~2021-05-24 12:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29  3:41 [PATCH v3 0/2] KVM: x86: Enable dirty logging lazily for huge pages Keqian Zhu
2021-04-29  3:41 ` [PATCH v3 1/2] KVM: x86: Support write protect gfn with min_level Keqian Zhu
2021-04-29  3:41 ` [PATCH v3 2/2] KVM: x86: Not wr-protect huge page with init_all_set dirty log Keqian Zhu
2021-05-24 12:12   ` Paolo Bonzini
2021-05-11  6:49 ` [PATCH v3 0/2] KVM: x86: Enable dirty logging lazily for huge pages Keqian Zhu

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.