From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoffer Dall Subject: Re: [PATCH v10 05/12] ARM/ARM64: KVM: Make kvm_psci_call() return convention more flexible Date: Mon, 28 Apr 2014 07:17:43 -0700 Message-ID: <20140428141743.GG2868@lvm> References: <1398085206-30555-1-git-send-email-anup.patel@linaro.org> <1398085206-30555-6-git-send-email-anup.patel@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@apm.com, Marc Zyngier , Rob Herring , Pranavkumar Sawargaonkar , Ashwin Chaugule To: Anup Patel Return-path: Received: from mail-lb0-f175.google.com ([209.85.217.175]:62011 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752131AbaD1ORq (ORCPT ); Mon, 28 Apr 2014 10:17:46 -0400 Received: by mail-lb0-f175.google.com with SMTP id p9so2074714lbv.20 for ; Mon, 28 Apr 2014 07:17:45 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1398085206-30555-6-git-send-email-anup.patel@linaro.org> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Apr 21, 2014 at 06:29:59PM +0530, Anup Patel wrote: > Currently, the kvm_psci_call() returns 'true' or 'false' based on whether > the PSCI function call was handled successfully or not. This does not help > us emulate system-level PSCI functions where the actual emulation work will > be done by user space (QEMU or KVMTOOL). Examples of such system-level PSCI > functions are: PSCI v0.2 SYSTEM_OFF and SYSTEM_RESET. > > This patch updates kvm_psci_call() to return three types of values: > 1) > 0 (success) > 2) = 0 (success but exit to user space) > 3) < 0 (errors) > > Signed-off-by: Anup Patel > Signed-off-by: Pranavkumar Sawargaonkar > Reviewed-by: Christoffer Dall Marc, do you still have comments on this one? -Christoffer