]> 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 <cdall@cs.columbia.edu>
Tue, 28 May 2013 02:36:01 +0000 (19:36 -0700)
commit5b02203c1b1af5c8ed9b97c041243cc7084fd984
tree8c711633c07a1f7cbb0e797098dc17536e6edd60
parent238f36761fea137da29656e1c798c9921a4d5f0e
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