KVM: arm64: Set SCTLR_EL2.DSSBS if SSBD is forcefully disabled and !vhe
authorWill Deacon <will.deacon@arm.com>
Thu, 24 Oct 2019 12:48:19 +0000 (14:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:17:24 +0000 (09:17 +0100)
commit5bed8225f130e7cab41b87f9baf5e5a5fba79211
tree39dbe067612c062731b8206b90769a6648278830
parent8a235006cd422ad1c8ad1e3c2cfde1281ac52e48
KVM: arm64: Set SCTLR_EL2.DSSBS if SSBD is forcefully disabled and !vhe

[ Upstream commit 7c36447ae5a090729e7b129f24705bb231a07e0b ]

When running without VHE, it is necessary to set SCTLR_EL2.DSSBS if SSBD
has been forcefully disabled on the kernel command-line.

Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/sysreg-sr.c