KVM: arm64: Warn when PENDING_EXCEPTION and INCREMENT_PC are set together
authorMarc Zyngier <maz@kernel.org>
Sat, 28 May 2022 11:38:25 +0000 (12:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 29 Jun 2022 09:23:37 +0000 (10:23 +0100)
commite19f2c6cd14668c0d5b1cef280632b7ca5893118
tree0d951945ab0cea275819a6678458fde5a4832be1
parent30b6ab45f81334e83dcb440451b6a4c4a753a118
KVM: arm64: Warn when PENDING_EXCEPTION and INCREMENT_PC are set together

We really don't want PENDING_EXCEPTION and INCREMENT_PC to ever be
set at the same time, as they are mutually exclusive. Add checks
that will generate a warning should this ever happen.

Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_emulate.h