diff options
author | Fuad Tabba <tabba@google.com> | 2021-08-17 09:11:22 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-08-20 11:12:17 +0100 |
commit | d6c850dd6ce9ce4b410142a600d8c34dc041d860 (patch) | |
tree | 06d088de53e1a24ec9a36d9c137a74d2a74027ae /arch/arm64/kvm/hyp/nvhe/debug-sr.c | |
parent | e6bc555c96990046d680ff92c8e2e7b6b43b509f (diff) | |
download | linux-stable-d6c850dd6ce9ce4b410142a600d8c34dc041d860.tar.gz linux-stable-d6c850dd6ce9ce4b410142a600d8c34dc041d860.tar.bz2 linux-stable-d6c850dd6ce9ce4b410142a600d8c34dc041d860.zip |
KVM: arm64: MDCR_EL2 is a 64-bit register
Fix the places in KVM that treat MDCR_EL2 as a 32-bit register.
More recent features (e.g., FEAT_SPEv1p2) use bits above 31.
No functional change intended.
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210817081134.2918285-4-tabba@google.com
Diffstat (limited to 'arch/arm64/kvm/hyp/nvhe/debug-sr.c')
-rw-r--r-- | arch/arm64/kvm/hyp/nvhe/debug-sr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/debug-sr.c b/arch/arm64/kvm/hyp/nvhe/debug-sr.c index 7d3f25868cae..df361d839902 100644 --- a/arch/arm64/kvm/hyp/nvhe/debug-sr.c +++ b/arch/arm64/kvm/hyp/nvhe/debug-sr.c @@ -109,7 +109,7 @@ void __debug_switch_to_host(struct kvm_vcpu *vcpu) __debug_switch_to_host_common(vcpu); } -u32 __kvm_get_mdcr_el2(void) +u64 __kvm_get_mdcr_el2(void) { return read_sysreg(mdcr_el2); } |