KVM: arm64: Fix resetting SME trap values on reset for (h)VHE
authorFuad Tabba <tabba@google.com>
Mon, 24 Jul 2023 12:38:29 +0000 (13:38 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 26 Jul 2023 17:08:30 +0000 (17:08 +0000)
commit375110ab51dec5dcd077b8fa95075b2c67499119
tree3797ade0287d37817cdf8550953f6eeb9d44aceb
parent7af0d5e50006614cbf313373df708df79d9f4657
KVM: arm64: Fix resetting SME trap values on reset for (h)VHE

Ensure that SME traps are disabled for (h)VHE when getting the
reset value for the architectural feature control register.

Fixes: 75c76ab5a641 ("KVM: arm64: Rework CPTR_EL2 programming for HVHE configuration")
Signed-off-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230724123829.2929609-9-tabba@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_emulate.h