ARM: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 15 May 2018 16:04:10 +0000 (17:04 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 31 May 2018 10:09:03 +0000 (11:09 +0100)
commitb800acfc70d9fb81fbd6df70f2cf5e20f70023d0
tree41031cd094feab970a12814d9e603774e884dfd1
parent3c908e16396d130608e831b7fac4b167a2ede6ba
ARM: 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.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Boot-tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/hyp/hyp-entry.S