From patchwork Wed Oct 16 17:02:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 21076 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 52A0725B8B for ; Wed, 16 Oct 2013 17:03:37 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id n12sf2788918oag.4 for ; Wed, 16 Oct 2013 10:03:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=o/G71zmubvN0p7TZGCmg5B6x6EdwSGESdBYw5isjY+U=; b=Uy9EA1ndsuJQBaN9rxC7Ir8AAvHOsTJbmCFhscA6/JbgFgja1xuEFFF6t4CfZ93t2Z 9To3Nmrb2j7HApEooSpJDBDlxcSKWp7mcQGxpVR96FlqBsI5+cAiW0L9s+A7CbcZDMGg 54TwuaU++nu3K0BMGW8En9SIBuB8/IzAiIlW9Nwtyo+Zb3YakBcASxi4yZISsRInGGVz amyS3WyWxXpQO0nNs9mTft6RoHvj6trLxsSej+IkSN3aGKP1c8uv8NUZ4ZZL2Wc6dKeG neZ6waIOGR+uXMeKXYuut43B0PmFVgCUfhljuxAX0l/NNR+nA5eYlyf/e6SukDtnEs5Y BL9w== X-Received: by 10.182.66.137 with SMTP id f9mr1335507obt.3.1381943016842; Wed, 16 Oct 2013 10:03:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.4.196 with SMTP id m4ls658762qem.27.gmail; Wed, 16 Oct 2013 10:03:36 -0700 (PDT) X-Received: by 10.220.169.203 with SMTP id a11mr1231345vcz.26.1381943016702; Wed, 16 Oct 2013 10:03:36 -0700 (PDT) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id cp3si24965811vcb.58.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 10:03:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.52; Received: by mail-vb0-f52.google.com with SMTP id f12so515682vbg.11 for ; Wed, 16 Oct 2013 10:03:36 -0700 (PDT) X-Gm-Message-State: ALoCoQlGvwwAFU02LKNVZjqD8XGXjc8mhzbktk3dWZID2HnmpEEBkefVTtD90ARwtKqYFoUR39SJ X-Received: by 10.52.103.35 with SMTP id ft3mr2646430vdb.5.1381943016625; Wed, 16 Oct 2013 10:03:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp54580vcz; Wed, 16 Oct 2013 10:03:36 -0700 (PDT) X-Received: by 10.68.196.227 with SMTP id ip3mr3832078pbc.163.1381943015673; Wed, 16 Oct 2013 10:03:35 -0700 (PDT) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by mx.google.com with ESMTPS id a1si9984546paf.208.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 10:03:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of anup.patel@linaro.org) client-ip=209.85.160.43; Received: by mail-pb0-f43.google.com with SMTP id md4so1079207pbc.30 for ; Wed, 16 Oct 2013 10:03:34 -0700 (PDT) X-Received: by 10.66.25.133 with SMTP id c5mr4637933pag.4.1381943014736; Wed, 16 Oct 2013 10:03:34 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id hz10sm92298689pbc.36.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 10:03:33 -0700 (PDT) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Cc: linux-arm-kernel@lists.infradead.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Pranavkumar Sawargaonkar , Christoffer Dall , Marc Zyngier , Catalin Marinas , Will Deacon , Mark Rutland , Russell King , Anup Patel Subject: [RFC PATCH 3/5] KVM: Add documentation for KVM_EXIT_PSCI exit reason Date: Wed, 16 Oct 2013 22:32:32 +0530 Message-Id: <1381942954-22388-4-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1381942954-22388-1-git-send-email-anup.patel@linaro.org> References: <1381942954-22388-1-git-send-email-anup.patel@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anup.patel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds documentation for KVM_EXIT_PSCI exit reason and PSCI call info in KVM run structure. We use exit reason KVM_EXIT_PSCI to forward PSCI calls such as SYSTEM_OFF and SYSTEM_RESET to user space (i.e. QEMU or KVMTOOL) Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar --- Documentation/virtual/kvm/api.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 076b849..215774d 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt @@ -2655,6 +2655,19 @@ It gets triggered whenever both KVM_CAP_PPC_EPR are enabled and an external interrupt has just been delivered into the guest. User space should put the acknowledged interrupt vector into the 'epr' field. + /* KVM_EXIT_PSCI */ + struct { + __u32 fn; + __u64 args[7]; + __u64 ret[4]; + } psci; + +ARM/ARM64 specific. The KVM ARM/ARM64 emulates Power State and Coordination +Interface (PSCI) for the Guest. This exit occurs when Guest issues a PSCI +function call to KVM ARM/ARM64 which is not emulated by in-kernel PSCI +emulation and needs to be emulated in user space (i.e. QEMU or KVMTOOL). +Examples of such PSCI functions are SYSTEM_OFF and SYSTEM_RESET. + /* Fix the size of the union. */ char padding[256]; };