]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Keep mdcr_el2's value as set by __init_el2_debug
authorFuad Tabba <tabba@google.com>
Tue, 17 Aug 2021 08:11:26 +0000 (09:11 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Aug 2021 10:12:17 +0000 (11:12 +0100)
commit83aff483901752160dba5101f11155cfe87d3748
tree6f3b0b6effa1e0d13f896bab535478a2c83f0399
parent7c7198b2b4b47b480773ef2251d5af8fd79e1f37
KVM: arm64: Keep mdcr_el2's value as set by __init_el2_debug

__init_el2_debug configures mdcr_el2 at initialization based on,
among other things, available hardware support. Trap deactivation
doesn't check that, so keep the initial value.

No functional change intended.

Signed-off-by: Fuad Tabba <tabba@google.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210817081134.2918285-8-tabba@google.com
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/vhe/switch.c