From patchwork Tue Apr 15 06:14:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 28380 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DBD1920534 for ; Tue, 15 Apr 2014 06:17:21 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id to1sf50929133ieb.1 for ; Mon, 14 Apr 2014 23:17:21 -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=yDz7G92MnETqN3WB8OsDP0PmTEijqeACzBphB/a36vo=; b=TST8sqtV5iB+edwgK7Lx6/yo8Ps27qWGdHoFNoKC9pz8H51ByqyaFgWm7Xbo5zdUC1 YJUBHnSRh/nzRVeVWkqV9nqdWBe+tc4H1WGn2pT+16jvCpcDFER5L8BcrN87NoqBWw2K n2yBUE9hqUYEvNCplNKVA9P4vy28e5CyGEKOj17hPGpOP8yVCkIZqfNGaorB8hGcNBy2 kvdLisrngqmiAp7LQi7nA2e991//HkYOjfIr86uPhkN1BzYbSredTEOfMe+YTX7vPrzc 59SjeQYzB1tA7UgSi06ifg5BzlJAMmPOf7e2DgWZCwLrvt8Hecjkot7BJ6Rj4oEzrAdF ak6w== X-Gm-Message-State: ALoCoQnznvoHZQ2TY5bFrIbB+NIPYnK62LstI+rLrtP8xLw/2DZ9FSK7vfrk33iq2dA0ZUx2oeIT X-Received: by 10.182.33.161 with SMTP id s1mr5768obi.12.1397542641067; Mon, 14 Apr 2014 23:17:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.241 with SMTP id n104ls1063qgd.36.gmail; Mon, 14 Apr 2014 23:17:21 -0700 (PDT) X-Received: by 10.52.78.231 with SMTP id e7mr1774vdx.28.1397542640926; Mon, 14 Apr 2014 23:17:20 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id vd8si3209743vdc.196.2014.04.14.23.17.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 23:17:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so8470064vcb.2 for ; Mon, 14 Apr 2014 23:17:20 -0700 (PDT) X-Received: by 10.58.38.40 with SMTP id d8mr15415vek.61.1397542640851; Mon, 14 Apr 2014 23:17:20 -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 ib8csp205723vcb; Mon, 14 Apr 2014 23:17:20 -0700 (PDT) X-Received: by 10.224.156.212 with SMTP id y20mr25049802qaw.66.1397542639825; Mon, 14 Apr 2014 23:17:19 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id lu1si7696785qcb.60.2014.04.14.23.17.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Apr 2014 23:17:19 -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 1WZweG-0007QU-Gm; Tue, 15 Apr 2014 06:15:12 +0000 Received: from mail-pb0-f48.google.com ([209.85.160.48]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WZweB-0006Ap-2P for linux-arm-kernel@lists.infradead.org; Tue, 15 Apr 2014 06:15:07 +0000 Received: by mail-pb0-f48.google.com with SMTP id md12so9090403pbc.21 for ; Mon, 14 Apr 2014 23:14:46 -0700 (PDT) X-Received: by 10.68.193.166 with SMTP id hp6mr7426040pbc.144.1397542485975; Mon, 14 Apr 2014 23:14:45 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id oz7sm37870688pbc.41.2014.04.14.23.14.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 23:14:44 -0700 (PDT) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: [PATCH v9 01/12] KVM: Add capability to advertise PSCI v0.2 support Date: Tue, 15 Apr 2014 11:44:04 +0530 Message-Id: <1397542455-354-2-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397542455-354-1-git-send-email-anup.patel@linaro.org> References: <1397542455-354-1-git-send-email-anup.patel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140414_231507_137877_7CBE3003 X-CRM114-Status: GOOD ( 10.33 ) 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.160.48 listed in list.dnswl.org] Cc: Mark Rutland , Rob Herring , linaro-kernel@lists.linaro.org, Anup Patel , 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.171 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