KVM: X86: Handle implicit supervisor access with SMAP
[sfrench/cifs-2.6.git] / arch / x86 / kvm / mmu / mmu.c
index 9088c50cc6dd5b97b473a88ce56057a97bb3c68c..e6ce39a798b8fd0d3eb0dc4103e9b2aa98685a8e 100644 (file)
@@ -4591,8 +4591,8 @@ static void update_permission_bitmask(struct kvm_mmu *mmu, bool ept)
                         *   - X86_CR4_SMAP is set in CR4
                         *   - A user page is accessed
                         *   - The access is not a fetch
-                        *   - Page fault in kernel mode
-                        *   - if CPL = 3 or X86_EFLAGS_AC is clear
+                        *   - The access is supervisor mode
+                        *   - If implicit supervisor access or X86_EFLAGS_AC is clear
                         *
                         * Here, we cover the first four conditions.
                         * The fifth is computed dynamically in permission_fault();