From patchwork Sun May 25 18:18:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 30897 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C69FF20C88 for ; Sun, 25 May 2014 18:21:46 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id uo5sf32220906pbc.0 for ; Sun, 25 May 2014 11:21:45 -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=mQwF3Wt59VN7m0NlsFGIhUzPoFGG6U1i1GSRTzn7/8k=; b=SgE45upcIsFCPRdnZrKMNhLPKdSHSUK9wRGU0yi0o54NZqsGMg+3+TMdwN4a4/m0i7 tj7zZhrHQMkkbjIqH3K2k3pYcTp3Gh7hbT13m48N6KAD3wdsVbqQVnJ9g6KM95cE0h5W Eh2pKWww7Y562DaMAZs0OyWyIDbV+DNi/Vwzch9Shtk9uBa1Vrcl/KFVj6APExqwtMV0 6oh8JIRH6XDkmQAUH2ov3UaLd97M2vpfQTeXLjdfDaWaRd6BAdRVWlziGjaTXGafdExn PvrOcS9pteDjDmUzo9qHHJjiLyxpNRnSpDfv4uKOhaxlPqA8VbGCFrxKh9Q3IvLeqnuh 0e+w== X-Gm-Message-State: ALoCoQlvK9RLTyeYDqFQ+8a7k0NGa4c5I8H36kNQSXC6SO98ljWwvxJu2PC++wl5fjSSRzYqjb8K X-Received: by 10.66.217.170 with SMTP id oz10mr8790215pac.9.1401042105661; Sun, 25 May 2014 11:21:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.203 with SMTP id m69ls2460047qga.84.gmail; Sun, 25 May 2014 11:21:45 -0700 (PDT) X-Received: by 10.58.209.233 with SMTP id mp9mr7907635vec.30.1401042105527; Sun, 25 May 2014 11:21:45 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id na9si4399144vcb.64.2014.05.25.11.21.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 25 May 2014 11:21:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id db11so8483623veb.1 for ; Sun, 25 May 2014 11:21:45 -0700 (PDT) X-Received: by 10.221.29.137 with SMTP id ry9mr16578082vcb.6.1401042105204; Sun, 25 May 2014 11:21:45 -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 ib8csp52457vcb; Sun, 25 May 2014 11:21:44 -0700 (PDT) X-Received: by 10.140.47.167 with SMTP id m36mr24412142qga.21.1401042104550; Sun, 25 May 2014 11:21:44 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id a3si10915425qar.54.2014.05.25.11.21.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 May 2014 11:21:44 -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 1Wod1J-0004rg-OO; Sun, 25 May 2014 18:19:41 +0000 Received: from mail-lb0-f176.google.com ([209.85.217.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wod1D-0004nT-0i for linux-arm-kernel@lists.infradead.org; Sun, 25 May 2014 18:19:35 +0000 Received: by mail-lb0-f176.google.com with SMTP id p9so3722378lbv.21 for ; Sun, 25 May 2014 11:19:11 -0700 (PDT) X-Received: by 10.152.87.20 with SMTP id t20mr1767867laz.79.1401041950419; Sun, 25 May 2014 11:19:10 -0700 (PDT) Received: from localhost.localdomain (x1-6-b8-c7-5d-cb-5a-ca.cpe.webspeed.dk. [2.104.6.253]) by mx.google.com with ESMTPSA id o1sm9683895lbw.27.2014.05.25.11.19.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 25 May 2014 11:19:09 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , Gleb Natapov Subject: [PATCH 01/16] KVM: Add capability to advertise PSCI v0.2 support Date: Sun, 25 May 2014 20:18:47 +0200 Message-Id: <1401041942-23471-2-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1401041942-23471-1-git-send-email-christoffer.dall@linaro.org> References: <1401041942-23471-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140525_111935_250520_8AE3DB8A X-CRM114-Status: GOOD ( 10.07 ) 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.217.176 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Cc: Peter Maydell , Anup Patel , kvm@vger.kernel.org, Marc Zyngier , Ashwin Chaugule , Christoffer Dall , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, 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: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) 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 From: Anup Patel 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 Signed-off-by: Christoffer Dall --- 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 836e15b..f3252b1 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -746,6 +746,7 @@ struct kvm_ppc_smmu_info { #define KVM_CAP_S390_IRQCHIP 99 #define KVM_CAP_IOEVENTFD_NO_LENGTH 100 #define KVM_CAP_VM_ATTRIBUTES 101 +#define KVM_CAP_ARM_PSCI_0_2 102 #ifdef KVM_CAP_IRQ_ROUTING