From patchwork Wed Oct 16 17:02:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 21074 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9F21925B8B for ; Wed, 16 Oct 2013 17:03:22 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id v10sf1636429pde.6 for ; Wed, 16 Oct 2013 10:03:21 -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=pIS9Ume039Mm1cOFItW0aLbool1cE8ztFdXmzmfnf/c=; b=OXmWDhVV+YzLX+4XGYa7yTSttqa/+MaRl4CYFeVTKV6p4f4P3FdivEl6ILmwUY6GCs cackPgzEBHYcMk/CiDmMweCwLJbDUqLkrC0gV+vFDND93FJL2GMwWgYKmhPm1Gy1Nw6v 5qkaIsQtstMrbzPmt0868Kwtztv3W81D00aN15bFYCQmRdB0HC442Jf1FrnASEAdgY4D rbhoKxKLwwTR7kSiMH42fU6K/cAewxIzVipJ5PIPsjx4CvTgJHyuEBHsRN1lr8gEfis/ 4q86ar+afM7O9i6b+vE3FW+ASHbcU+M+oRIeQuzsPSWRnsiFPTjMekEPjMWnNHIeZXyN 8kaQ== X-Received: by 10.68.234.165 with SMTP id uf5mr1322966pbc.0.1381943001786; Wed, 16 Oct 2013 10:03:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.163 with SMTP id q3ls600601qek.31.gmail; Wed, 16 Oct 2013 10:03:21 -0700 (PDT) X-Received: by 10.220.74.69 with SMTP id t5mr3113225vcj.18.1381943001645; Wed, 16 Oct 2013 10:03:21 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id sc5si24941130vdc.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 10:03:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id oz11so436911veb.22 for ; Wed, 16 Oct 2013 10:03:21 -0700 (PDT) X-Gm-Message-State: ALoCoQlas/4w0/j9PekhL/1OW+IhndLyh8Fh2mW153xhao/Q8x5aTJh/dt6K16nPT1i1rTJvFMDa X-Received: by 10.52.24.4 with SMTP id q4mr720650vdf.34.1381943001416; Wed, 16 Oct 2013 10:03:21 -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 u4csp54559vcz; Wed, 16 Oct 2013 10:03:20 -0700 (PDT) X-Received: by 10.68.209.161 with SMTP id mn1mr3850533pbc.173.1381943000423; Wed, 16 Oct 2013 10:03:20 -0700 (PDT) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id iw5si15483893pbd.272.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 10:03:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of anup.patel@linaro.org) client-ip=209.85.220.47; Received: by mail-pa0-f47.google.com with SMTP id kp14so1351914pab.6 for ; Wed, 16 Oct 2013 10:03:20 -0700 (PDT) X-Received: by 10.66.146.199 with SMTP id te7mr4697644pab.106.1381942999847; Wed, 16 Oct 2013 10:03:19 -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:18 -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 1/5] ARM/ARM64: KVM: Update user space API header for PSCI emulation Date: Wed, 16 Oct 2013 22:32:30 +0530 Message-Id: <1381942954-22388-2-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.128.177 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: , Update user space API interface headers for providing information to user space needed to emulate PSCI function calls in user space (i.e. QEMU or KVMTOOL). Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar --- include/uapi/linux/kvm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index e32e776..dae2664 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -171,6 +171,7 @@ struct kvm_pit_config { #define KVM_EXIT_WATCHDOG 21 #define KVM_EXIT_S390_TSCH 22 #define KVM_EXIT_EPR 23 +#define KVM_EXIT_PSCI 24 /* For KVM_EXIT_INTERNAL_ERROR */ /* Emulate instruction failed. */ @@ -301,6 +302,12 @@ struct kvm_run { struct { __u32 epr; } epr; + /* KVM_EXIT_PSCI */ + struct { + __u32 fn; + __u64 args[7]; + __u64 ret[4]; + } psci; /* Fix the size of the union. */ char padding[256]; };