From patchwork Thu Jan 30 10:41:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 3556221 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 788ABC02DC for ; Thu, 30 Jan 2014 10:42:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 757892018E for ; Thu, 30 Jan 2014 10:42:33 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8E71A20181 for ; Thu, 30 Jan 2014 10:42:32 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8p4j-000058-9C; Thu, 30 Jan 2014 10:42:25 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8p4g-0000p5-OO; Thu, 30 Jan 2014 10:42:22 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8p4d-0000oY-UC for linux-arm-kernel@lists.infradead.org; Thu, 30 Jan 2014 10:42:20 +0000 Received: by mail-pa0-f52.google.com with SMTP id bj1so2966296pad.39 for ; Thu, 30 Jan 2014 02:41:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WdYPcoVga1fGoX6V/wqqVa/WyimfCUS6hAakfgEXXX4=; b=EtxFxrDn/xfSo/0NYKMfQZg1TzwtUu2CEd+ODscAgyZMkiZSrObMWIuAWC/8s9ufG7 FFUYXl8Gsk/z4dwSonCWpvIpueIYowK1ZgRNsdjn1kxRR57NKPpJ2AGI9RUZvQPlR0/3 VrMlbiOl4bmLC3VspFx68xKBmOsKz3damF6cjGm9s5dhJRailP7hcEkaN+Y/9Om9M23a 1IrhIznv152T2mFx+NUjeg17yOZ/iARSkXrErxMFYLAgYLiv7B4POEYHWNwV8vFQoS2q M1cwgYLWiJJ9oINMAVoNbpjYmZ8QYCPZN83FicfRfdGwvyjN6eOuM0vcNpXqGcafPPh+ 5oPw== X-Gm-Message-State: ALoCoQnEtlm+4ULQ9KTlbBeUJ5wpbfIM7vO4FgY9IHzQfb7lIe3dltFDDRblaiY81oCXm54jI4d2 X-Received: by 10.68.171.4 with SMTP id aq4mr13662534pbc.150.1391078515831; Thu, 30 Jan 2014 02:41:55 -0800 (PST) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id pe3sm16114916pbc.23.2014.01.30.02.41.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Jan 2014 02:41:54 -0800 (PST) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: [PATCH v2 1/3] KVM: Add capability to advertise PSCI v0.2 support Date: Thu, 30 Jan 2014 16:11:17 +0530 Message-Id: <1391078479-7406-2-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391078479-7406-1-git-send-email-anup.patel@linaro.org> References: <1391078479-7406-1-git-send-email-anup.patel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140130_054220_054904_A6229A38 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: Mark Rutland , linaro-kernel@lists.linaro.org, Anup Patel , patches@linaro.org, Marc Zyngier , patches@apm.com, 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 902f124..d64349e 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -674,6 +674,7 @@ struct kvm_ppc_smmu_info { #define KVM_CAP_ARM_EL1_32BIT 93 #define KVM_CAP_SPAPR_MULTITCE 94 #define KVM_CAP_EXT_EMUL_CPUID 95 +#define KVM_CAP_ARM_PSCI_0_2 96 #ifdef KVM_CAP_IRQ_ROUTING