]> git.karo-electronics.de Git - karo-tx-linux.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)
commit24a7f675752e06729589d40a5256970998a21502
treede2a098ec207e1cec5f138470de79ff765370984
parent5ae7f87a56fab10b8f9b135a8377c144397293ca
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