arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Feb 2018 17:56:15 +0000 (17:56 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:32 +0000 (18:46 +0800)
commit2d056524c686917b7dc51e87819d9930e9f947eb
treedfa0250082176692d13c8847185d919ab83dd895
parent9d7ea762c59151d658be61f0222114190d795c11
arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling

commit f72af90c3783 upstream.

We want SMCCC_ARCH_WORKAROUND_1 to be fast. As fast as possible.
So let's intercept it as early as we can by testing for the
function call number as soon as we've identified a HVC call
coming from the guest.

Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/kvm/hyp/hyp-entry.S