]> git.baikalelectronics.ru Git - kernel.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)
commitd1b67ec6bcceaebcf97b60bb072c19cdcdd7dcf9
treed0d7039ad9b14dd45e38275b2d6486b2d5cdf6b0
parent50a4053fb4d6d0af21f9d974a6b683c067f9014a
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