]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: KVM: Don't handle PSCI calls via SMC
authorDave P Martin <Dave.Martin@arm.com>
Wed, 1 May 2013 16:49:28 +0000 (17:49 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 26 Jun 2013 17:50:02 +0000 (10:50 -0700)
commit1fb97017a34bf34715542fac70a466820a9b9498
treede2a098ec207e1cec5f138470de79ff765370984
parent41d5e3a912fc7e6f81ca17f4df524df976668838
ARM: KVM: Don't handle PSCI calls via SMC

Currently, kvmtool unconditionally declares that HVC should be used
to call PSCI, so the function numbers in the DT tell the guest
nothing about the function ID namespace or calling convention for
SMC.

We already assume that the guest will examine and honour the DT,
since there is no way it could possibly guess the KVM-specific PSCI
function IDs otherwise.  So let's not encourage guests to violate
what's specified in the DT by using SMC to make the call.

[ Modified to apply to top of kvm/arm tree - Christoffer ]

Signed-off-by: Dave P Martin <Dave.Martin@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
arch/arm/kvm/handle_exit.c
arch/arm/kvm/psci.c