]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
KVM: X86: Fix comments in update_permission_bitmask
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Fri, 11 Mar 2022 07:03:42 +0000 (15:03 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 2 Apr 2022 09:34:42 +0000 (05:34 -0400)
The commit 09f037aa48f3 ("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>
arch/x86/kvm/mmu/mmu.c

index 7efa916f93ce04710b342d3c54586f4c72ab057a..9088c50cc6dd5b97b473a88ce56057a97bb3c68c 100644 (file)
@@ -4594,8 +4594,8 @@ static void update_permission_bitmask(struct kvm_mmu *mmu, bool ept)
                         *   - Page fault in kernel mode
                         *   - if CPL = 3 or X86_EFLAGS_AC is clear
                         *
-                        * Here, we cover the first three conditions.
-                        * The fourth is computed dynamically in permission_fault();
+                        * Here, we cover the first four conditions.
+                        * The fifth is computed dynamically in permission_fault();
                         * PFERR_RSVD_MASK bit will be set in PFEC if the access is
                         * *not* subject to SMAP restrictions.
                         */