diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2018-12-06 20:31:23 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-12-10 14:59:07 +0300 |
commit | 8b2cca9ade2c0f1d2ba94e39781e7306c918e544 (patch) | |
tree | e5072b0bc997f0f2a58a55997c7734fba38abbbe /arch/arm64/include/asm/kvm_host.h | |
parent | 793d5d9213c701fcef8823e053ecd6919d1e4c21 (diff) | |
download | linux-8b2cca9ade2c0f1d2ba94e39781e7306c918e544.tar.xz |
arm64: KVM: Force VHE for systems affected by erratum 1165522
In order to easily mitigate ARM erratum 1165522, we need to force
affected CPUs to run in VHE mode if using KVM.
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/kvm_host.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index d6d9aa76a943..9217759afa6b 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -432,6 +432,10 @@ static inline bool kvm_arch_requires_vhe(void) if (system_supports_sve()) return true; + /* Some implementations have defects that confine them to VHE */ + if (cpus_have_cap(ARM64_WORKAROUND_1165522)) + return true; + return false; } |