]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Introduce VHE-specific kvm_vcpu_run
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 3 Oct 2017 12:02:12 +0000 (14:02 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:13 +0000 (10:53 +0000)
commitbd9c3330dd36d226e5a98220ac68ea0f1e436b05
tree34680c327ab34cdfd8b097638e59a02f6f648319
parent7a2916ba567acdb64e15a364274aa307cf263b5b
KVM: arm64: Introduce VHE-specific kvm_vcpu_run

So far this is mostly (see below) a copy of the legacy non-VHE switch
function, but we will start reworking these functions in separate
directions to work on VHE and non-VHE in the most optimal way in later
patches.

The only difference after this patch between the VHE and non-VHE run
functions is that we omit the branch-predictor variant-2 hardening for
QC Falkor CPUs, because this workaround is specific to a series of
non-VHE ARMv8.0 CPUs.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_asm.h
arch/arm/kvm/hyp/switch.c
arch/arm64/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/switch.c
virt/kvm/arm/arm.c