From patchwork Mon Apr 21 12:59:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 28695 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7079320341 for ; Mon, 21 Apr 2014 13:03:23 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id jy13sf21239772veb.2 for ; Mon, 21 Apr 2014 06:03:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=3DL1qUg7IISLaBM95DJmzjC3J2Ktw9Usi3TrtnBk6nk=; b=W+0/AkaVxZn6ivFYn4AVilOS1ClU4fc3ZLj6hxnxduN5XgnXjZvGlElZtbZnC4WMAD xxKN1nNwbRv1gOqE7EeYTYdSVs48ZowMxy61XTA7LhbFWUwOMVXXwDB8IbhMXz6RldmL wDAZnju4RRaOSgL4WBGM+ZzPmbhENwCeBXjH6AFk27uZmlHL9M2pVe8IkNtCjdvezosZ I+PloTQkTupZAt/QStqBowOTG0OQSNAU2cOR6pzSKFizeCSeNJHaftLrrOtObjq4wweC kCg370sn8l78FD0QTsRLQFOurtIVACgYVKrknFQ2QWCy7k5UCs332QVPCsJE3tvFzWq2 XwqA== X-Gm-Message-State: ALoCoQkdri1NLbw9DfsQtiFQ2UpV6uu6OYmd9XBn1qtgk8U4igFfFlx1A38tUs2jf6IF7YQSLBzS X-Received: by 10.236.92.15 with SMTP id i15mr16589378yhf.8.1398085403203; Mon, 21 Apr 2014 06:03:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.119 with SMTP id 110ls2237911qgu.20.gmail; Mon, 21 Apr 2014 06:03:23 -0700 (PDT) X-Received: by 10.220.147.16 with SMTP id j16mr31112267vcv.14.1398085403020; Mon, 21 Apr 2014 06:03:23 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id kj3si5629543vdb.96.2014.04.21.06.03.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 06:03:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so934094vcb.19 for ; Mon, 21 Apr 2014 06:03:22 -0700 (PDT) X-Received: by 10.221.4.66 with SMTP id ob2mr594277vcb.28.1398085402928; Mon, 21 Apr 2014 06:03:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp289823vcb; Mon, 21 Apr 2014 06:03:22 -0700 (PDT) X-Received: by 10.224.126.9 with SMTP id a9mr34757464qas.39.1398085401600; Mon, 21 Apr 2014 06:03:21 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id c8si8886742qab.190.2014.04.21.06.03.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Apr 2014 06:03:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WcDqP-0007LE-F9; Mon, 21 Apr 2014 13:01:09 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WcDqM-00079Z-5J for linux-arm-kernel@lists.infradead.org; Mon, 21 Apr 2014 13:01:07 +0000 Received: by mail-pa0-f41.google.com with SMTP id fa1so3744557pad.0 for ; Mon, 21 Apr 2014 06:00:42 -0700 (PDT) X-Received: by 10.66.249.165 with SMTP id yv5mr37772060pac.79.1398085242465; Mon, 21 Apr 2014 06:00:42 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id iq10sm78049235pbc.14.2014.04.21.06.00.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 06:00:41 -0700 (PDT) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: [PATCH v10 01/12] KVM: Add capability to advertise PSCI v0.2 support Date: Mon, 21 Apr 2014 18:29:55 +0530 Message-Id: <1398085206-30555-2-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398085206-30555-1-git-send-email-anup.patel@linaro.org> References: <1398085206-30555-1-git-send-email-anup.patel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140421_060106_255459_009E944F X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.41 listed in list.dnswl.org] Cc: Rob Herring , linaro-kernel@lists.linaro.org, Anup Patel , kvm@vger.kernel.org, Marc Zyngier , patches@apm.com, Ashwin Chaugule , linux-arm-kernel@lists.infradead.org, Christoffer Dall , Pranavkumar Sawargaonkar X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.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.220.174 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 User space (i.e. QEMU or KVMTOOL) should be able to check whether KVM ARM/ARM64 supports in-kernel PSCI v0.2 emulation. For this purpose, we define KVM_CAP_ARM_PSCI_0_2 in KVM user space interface header. Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar Acked-by: Christoffer Dall Acked-by: Marc Zyngier --- include/uapi/linux/kvm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index a8f4ee5..01c5624 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -743,6 +743,7 @@ struct kvm_ppc_smmu_info { #define KVM_CAP_IOAPIC_POLARITY_IGNORED 97 #define KVM_CAP_ENABLE_CAP_VM 98 #define KVM_CAP_S390_IRQCHIP 99 +#define KVM_CAP_ARM_PSCI_0_2 100 #ifdef KVM_CAP_IRQ_ROUTING