From patchwork Tue Apr 29 05:54:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 29284 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5A71F20B8D for ; Tue, 29 Apr 2014 05:57:04 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id i57sf5503701yha.10 for ; Mon, 28 Apr 2014 22:57:04 -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=cEM1+mFLFDbE5am8DmsbiuhCsBSRc0pQUqGlHhpajdLCyXqoISG/hMjIBnC0wg1GGH +SjwPbe4yXOCP16PuYizLZ3toO7tfZgKoNdXuuLRFQ9CJp2IQaUut7gX/L6mQ8uOi9Fs GKn6B655CsUxl2o4AOaC27xCViGx0FEudS6yDvTYLw77NTTts0ipOHZL9vbtQHf5Tj3q upJa1r8NvwE8BTaa+kWAIc9vE+sDn+BJhoNJP2cPCG+Pc6s8QooDDU3eHgT3pSInNu2n WQID/UfbB32zqnBHew7ZcTK85e6JgWTzzY2woaDVngbdJzyhMz1zY2V6m2wDJKO+bcgI jpFQ== X-Gm-Message-State: ALoCoQkdMaDE5RX5VcuDyxELXZV4qvifWDDSApHC/ucn96AZUXX2mTDXfhcCSNQt0V9F86G3epiw X-Received: by 10.58.41.39 with SMTP id c7mr15650971vel.25.1398751024121; Mon, 28 Apr 2014 22:57:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.103.118 with SMTP id x109ls2322216qge.74.gmail; Mon, 28 Apr 2014 22:57:04 -0700 (PDT) X-Received: by 10.221.55.133 with SMTP id vy5mr27820631vcb.17.1398751024023; Mon, 28 Apr 2014 22:57:04 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id sq9si4270070vdc.53.2014.04.28.22.57.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 22:57:04 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so323940vcb.22 for ; Mon, 28 Apr 2014 22:57:03 -0700 (PDT) X-Received: by 10.52.164.237 with SMTP id yt13mr23988355vdb.18.1398751023924; Mon, 28 Apr 2014 22:57:03 -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 ib8csp170755vcb; Mon, 28 Apr 2014 22:57:03 -0700 (PDT) X-Received: by 10.224.20.196 with SMTP id g4mr39141707qab.66.1398751021730; Mon, 28 Apr 2014 22:57:01 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id q61si9087834qga.1.2014.04.28.22.57.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Apr 2014 22:57:01 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) 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 1Wf10m-0002dT-58; Tue, 29 Apr 2014 05:55:24 +0000 Received: from mail-pd0-f173.google.com ([209.85.192.173]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wf10d-0001Xv-Kz for linux-arm-kernel@lists.infradead.org; Tue, 29 Apr 2014 05:55:16 +0000 Received: by mail-pd0-f173.google.com with SMTP id p10so6243318pdj.18 for ; Mon, 28 Apr 2014 22:54:54 -0700 (PDT) X-Received: by 10.68.181.165 with SMTP id dx5mr34151273pbc.38.1398750894621; Mon, 28 Apr 2014 22:54:54 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id xg4sm39106507pbb.47.2014.04.28.22.54.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 22:54:52 -0700 (PDT) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: [PATCH v11 01/12] KVM: Add capability to advertise PSCI v0.2 support Date: Tue, 29 Apr 2014 11:24:14 +0530 Message-Id: <1398750865-10892-2-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398750865-10892-1-git-send-email-anup.patel@linaro.org> References: <1398750865-10892-1-git-send-email-anup.patel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140428_225515_704311_C1EF1650 X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.173 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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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