]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86/mmu: Rephrase comment about synthetic PFERR flags in #PF handler
authorSean Christopherson <seanjc@google.com>
Sat, 8 Jun 2024 00:11:08 +0000 (17:11 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Jun 2024 16:20:47 +0000 (09:20 -0700)
commitcaa727882937f0d5260a2a026eb7c27d77404066
tree4600db46f2fd080745203507f515ecef15dc9bf3
parent9ecc1c119b28d28869135a3745541c03965d52be
KVM: x86/mmu: Rephrase comment about synthetic PFERR flags in #PF handler

Reword the BUILD_BUG_ON() comment in the legacy #PF handler to explicitly
describe how asserting that synthetic PFERR flags are limited to bits 31:0
protects KVM against inadvertently passing a synthetic flag to the common
page fault handler.

No functional change intended.

Suggested-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20240608001108.3296879-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c