Skip to content

Commit bedd919

Browse files
dmatlackbonzini
authored andcommitted
KVM: x86/mmu: Fix comment mentioning skip_4k
This comment was left over from a previous version of the patch that introduced wrprot_gfn_range, when skip_4k was passed in instead of min_level. Signed-off-by: David Matlack <[email protected]> Message-Id: <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent a248602 commit bedd919

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/kvm/mmu/tdp_mmu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,9 +1192,9 @@ bool kvm_tdp_mmu_set_spte_gfn(struct kvm *kvm, struct kvm_gfn_range *range)
11921192
}
11931193

11941194
/*
1195-
* Remove write access from all the SPTEs mapping GFNs [start, end). If
1196-
* skip_4k is set, SPTEs that map 4k pages, will not be write-protected.
1197-
* Returns true if an SPTE has been changed and the TLBs need to be flushed.
1195+
* Remove write access from all SPTEs at or above min_level that map GFNs
1196+
* [start, end). Returns true if an SPTE has been changed and the TLBs need to
1197+
* be flushed.
11981198
*/
11991199
static bool wrprot_gfn_range(struct kvm *kvm, struct kvm_mmu_page *root,
12001200
gfn_t start, gfn_t end, int min_level)

0 commit comments

Comments
 (0)