]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Rename variable smap to not_smap in permission_fault()
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Fri, 11 Mar 2022 07:03:43 +0000 (15:03 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 2 Apr 2022 09:34:43 +0000 (05:34 -0400)
commit65ea442721428582d6fb6ac27e53e01dd37ee708
treea87c7509fe827f13836e7db8fe3ec9326dbdad90
parent5a7deef697486c2bda42d4b20c4f5b28731aa51e
KVM: X86: Rename variable smap to not_smap in permission_fault()

Comments above the variable says the bit is set when SMAP is overridden
or the same meaning in update_permission_bitmask(): it is not subjected
to SMAP restriction.

Renaming it to reflect the negative implication and make the code better
readability.

Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Message-Id: <20220311070346.45023-4-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.h