]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Feb 2018 22:54:07 +0000 (22:54 +0000)
commitf72af90c3783d924337624659b43e2d36f1b36b4
treed0d7039ad9b14dd45e38275b2d6486b2d5cdf6b0
parent6167ec5c9145cdf493722dfd80a5d48bafc4a18a
arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling

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>
arch/arm64/kvm/hyp/hyp-entry.S