KVM: x86: Support write protecting only large pages
authorKeqian Zhu <zhukeqian1@huawei.com>
Thu, 29 Apr 2021 03:41:14 +0000 (11:41 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:25 +0000 (13:09 -0400)
commit3ad93562093d764bc22d6460e84ba60d0c57f7ab
tree320c7f3a4fc9cd6059848f824b8221f15eaa4a64
parentd8f5537a8816c8f00ea3103e74b65987963a56c6
KVM: x86: Support write protecting only large pages

Prepare for write protecting large page lazily during dirty log tracking,
for which we will only need to write protect gfns at large page
granularity.

No functional or performance change expected.

Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
Message-Id: <20210429034115.35560-2-zhukeqian1@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/mmu_internal.h
arch/x86/kvm/mmu/page_track.c
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/mmu/tdp_mmu.h