From patchwork Tue Jan 21 13:01:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 3517871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B3F199F2D6 for ; Tue, 21 Jan 2014 13:03:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ACBB12015E for ; Tue, 21 Jan 2014 13:03:25 +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 7FE282015D for ; Tue, 21 Jan 2014 13:03:24 +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 1W5ayn-0003r0-OO; Tue, 21 Jan 2014 13:02:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5ayc-00051f-OH; Tue, 21 Jan 2014 13:02:46 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5ayI-0004zO-7U for linux-arm-kernel@lists.infradead.org; Tue, 21 Jan 2014 13:02:30 +0000 Received: by mail-pb0-f46.google.com with SMTP id um1so3322859pbc.19 for ; Tue, 21 Jan 2014 05:02:04 -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=i4SYYwe9QixRmHA9kYJWFqIxCeH5Yx9tu3u8jnEZjDQYJUkbwYlHSxs1M1MyyKlkM8 Q2vyYlW86A6MWqywUwz3sxC9Q3WaihK2smPwqFhMGK/lMN3fmuvKVaSN6Xsa2o5QZztJ /L6O2Siq60Nt0tRICr7Dz50j2JO4VJQlkDGxmsTeh06/c+Ff3kl2EONmLZzPuV+taIqv o1sNdkW6WylXVyhEaW+gelYyHTVY+2X9VCpKXHDE9Kkf/U86brmSKwr53MzApSCeAA0q sylu9IZcb66hGKDMMsBcocnG96XdgWFz7K66Cr7VZ+PaEHlLAXftjI0My96n8Pz0dFE2 kICg== X-Gm-Message-State: ALoCoQm45qQtMrY1LTc9hotilikSS4azyEEfwXQOsTuy66o2FR7GVTPrxQsATBXqM3oEeALmT44B X-Received: by 10.68.201.71 with SMTP id jy7mr24812454pbc.47.1390309323994; Tue, 21 Jan 2014 05:02:03 -0800 (PST) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id x5sm12286819pbw.26.2014.01.21.05.01.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Jan 2014 05:02:02 -0800 (PST) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: [RFC PATCH 1/3] KVM: Add capability to advertise PSCI v0.2 support Date: Tue, 21 Jan 2014 18:31:39 +0530 Message-Id: <1390309301-28424-2-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1390309301-28424-1-git-send-email-anup.patel@linaro.org> References: <1390309301-28424-1-git-send-email-anup.patel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140121_080226_351211_F1134107 X-CRM114-Status: UNSURE ( 9.34 ) 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.8 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 --- 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