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/include/asm/kvm_host.h | |
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/include/asm/kvm_host.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 347781f99b6a..4d2d974c1522 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -289,7 +289,7 @@ struct kvm_vcpu_arch { /* HYP configuration */ u64 hcr_el2; - u32 mdcr_el2; + u64 mdcr_el2; /* Exception Information */ struct kvm_vcpu_fault_info fault; |