Home
last modified time | relevance | path

Searched hist:"3328 dfe0eac38df388a0cded8e3f3cd307ca0be3" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/x86/kvm/mmu/
H A Dmmu_internal.hdiff 3328dfe0eac38df388a0cded8e3f3cd307ca0be3 Sat Jul 29 02:47:20 CEST 2023 Sean Christopherson <seanjc@google.com> KVM: x86/mmu: Use BUILD_BUG_ON_INVALID() for KVM_MMU_WARN_ON() stub

Use BUILD_BUG_ON_INVALID() instead of an empty do-while loop to stub out
KVM_MMU_WARN_ON() when CONFIG_KVM_PROVE_MMU=n, that way _some_ build
issues with the usage of KVM_MMU_WARN_ON() will be dected even if the
kernel is using the stubs, e.g. basic syntax errors will be detected.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/r/20230729004722.1056172-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>