lkml.org 
[lkml]   [2021]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH v2 0/2] KVM: x86: Enable dirty logging lazily for huge pages
Date
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

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 | 57 ++++++++++++++++++++++++++++-----
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, 76 insertions(+), 42 deletions(-)

--
2.23.0

\
 
 \ /
  Last update: 2021-04-16 10:27    [W:0.049 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site