arm/arm64: KVM: Fix PSCI affinity info return value for non valid cores
authorAlexander Spyridakis <a.spyridakis@virtualopensystems.com>
Fri, 4 Sep 2015 15:06:24 +0000 (17:06 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 4 Sep 2015 16:02:48 +0000 (17:02 +0100)
commit0c0672922dcc70ffba11d96385e98e42fb3ae08d
treed9eaca6ea9b7eccc926a21117e3df8f2072b2d1b
parent857d1a973077245f03b351e2539529c86267bfe4
arm/arm64: KVM: Fix PSCI affinity info return value for non valid cores

If a guest requests the affinity info for a non-existing vCPU we need to
properly return an error, instead of erroneously reporting an off state.

Signed-off-by: Alexander Spyridakis <a.spyridakis@virtualopensystems.com>
Signed-off-by: Alvise Rigo <a.rigo@virtualopensystems.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/psci.c