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)
commit12849badc6d2456f15f8f2c93037628d5176810b
tree6f3b0b6effa1e0d13f896bab535478a2c83f0399
parent1460b4b25fde52cbee746c11a4b1d3185f2e2847
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