From: Anup Patel Date: Tue, 29 Apr 2014 05:54:23 +0000 (+0530) Subject: ARM/ARM64: KVM: Fix CPU_ON emulation for PSCI v0.2 X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~8^2~28^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8aeefe5e567637bbec7d7a3031cc057e3af303;p=pandora-kernel.git ARM/ARM64: KVM: Fix CPU_ON emulation for PSCI v0.2 As-per PSCI v0.2, the source CPU provides physical address of "entry point" and "context id" for starting a target CPU. Also, if target CPU is already running then we should return ALREADY_ON. Current emulation of CPU_ON function does not consider physical address of "context id" and returns INVALID_PARAMETERS if target CPU is already running. This patch updates kvm_psci_vcpu_on() such that it works for both PSCI v0.1 and PSCI v0.2. Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar Reviewed-by: Christoffer Dall Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed