aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 07bb22157338..d43867c33bc4 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -4481,9 +4481,11 @@ static bool kvm_mmu_zap_collapsible_spte(struct kvm *kvm,
4481 pfn = spte_to_pfn(*sptep); 4481 pfn = spte_to_pfn(*sptep);
4482 4482
4483 /* 4483 /*
4484 * Only EPT supported for now; otherwise, one would need to 4484 * We cannot do huge page mapping for indirect shadow pages,
4485 * find out efficiently whether the guest page tables are 4485 * which are found on the last rmap (level = 1) when not using
4486 * also using huge pages. 4486 * tdp; such shadow pages are synced with the page table in
4487 * the guest, and the guest page table is using 4K page size
4488 * mapping if the indirect sp has level = 1.
4487 */ 4489 */
4488 if (sp->role.direct && 4490 if (sp->role.direct &&
4489 !kvm_is_reserved_pfn(pfn) && 4491 !kvm_is_reserved_pfn(pfn) &&