Skip to content

Commit 94b4a2f

Browse files
Lai Jiangshanbonzini
authored andcommitted
KVM: X86: Fix comments in update_permission_bitmask
The commit 09f037a ("KVM: MMU: speedup update_permission_bitmask") refactored the code of update_permission_bitmask() and change the comments. It added a condition into a list to match the new code, so the number/order for conditions in the comments should be updated too. Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com> Message-Id: <20220311070346.45023-3-jiangshanlai@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 5b22bbe commit 94b4a2f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/kvm/mmu/mmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4594,8 +4594,8 @@ static void update_permission_bitmask(struct kvm_mmu *mmu, bool ept)
45944594
* - Page fault in kernel mode
45954595
* - if CPL = 3 or X86_EFLAGS_AC is clear
45964596
*
4597-
* Here, we cover the first three conditions.
4598-
* The fourth is computed dynamically in permission_fault();
4597+
* Here, we cover the first four conditions.
4598+
* The fifth is computed dynamically in permission_fault();
45994599
* PFERR_RSVD_MASK bit will be set in PFEC if the access is
46004600
* *not* subject to SMAP restrictions.
46014601
*/

0 commit comments

Comments
 (0)