arm/arm64: KVM: Advertise SMCCC v1.1
authorMark Rutland <mark.rutland@arm.com>
Thu, 12 Apr 2018 11:11:28 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Apr 2018 06:21:05 +0000 (08:21 +0200)
commit6681f3c44016f6997daf55e0389393b6fee89843
tree1fd68f548d47be526d362c21d60034c502bcddbe
parent4b1713f50d68de8f5cb4c98b6956d29d653e2c1b
arm/arm64: KVM: Advertise SMCCC v1.1

From: Marc Zyngier <marc.zyngier@arm.com>

commit 09e6be12effdb33bf7210c8867bbd213b66a499e upstream.

The new SMC Calling Convention (v1.1) allows for a reduced overhead
when calling into the firmware, and provides a new feature discovery
mechanism.

Make it visible to KVM guests.

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>
[v4.9: account for files moved to virt/ upstream]
Signed-off-by: Mark Rutland <mark.rutland@arm.com> [v4.9 backport]
Tested-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kvm/handle_exit.c
arch/arm/kvm/psci.c
arch/arm64/kvm/handle_exit.c
include/kvm/arm_psci.h
include/linux/arm-smccc.h