From patchwork Mon May 12 12:37:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PranavkumarSawargaonkar X-Patchwork-Id: 29979 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DBA12238EB for ; Mon, 12 May 2014 12:54:41 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id hn18sf13009463igb.8 for ; Mon, 12 May 2014 05:54:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=Jd7DREBZZkuQyPDpQrgm2JeXB48NOU5NxUelzcHiGsw=; b=AVMb44Xb9zQ7LRD60J998++C2tlQrzy4c7CzwbzES1QO9b1WWnW8cz+WDvTC+5IA7T L127f8QKVLiHoMBnoXhVmciZaPZnXWNe/pmBFmGtHZ83McQydzu8ogOUoCqKIXsJNKI7 kX9mJRCdPvGXAppYadYgu0+pWpwWYR2zo4WCXU0Ua60exxurhcraHiqDLZRTbG9PJTvy 2qmO3xf0mNSqmjgpSvm1jxhD1Q+aHIN/BSYuPMbZ46MWXzh7YflcCdLDoS1PHQ9WDy9L 2uY4At94hngC99SJOygvFfJ9yZS5wcGeGGZc5wbMvsuNTVAtPt4fbAMtt5i55vvDGngv SsPQ== X-Gm-Message-State: ALoCoQmLs5rceYd/VBwoMHyaYIppivlSbCyGUpZsQynEc+Z7qCDloODyFo3vadldCsL3eIjj4j2q X-Received: by 10.50.35.229 with SMTP id l5mr10797648igj.0.1399899281389; Mon, 12 May 2014 05:54:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.103.118 with SMTP id x109ls1253155qge.74.gmail; Mon, 12 May 2014 05:54:41 -0700 (PDT) X-Received: by 10.58.18.198 with SMTP id y6mr1205884ved.31.1399899281217; Mon, 12 May 2014 05:54:41 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id ui2si2044381vdc.208.2014.05.12.05.54.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 May 2014 05:54:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.177 as permitted sender) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id db11so8555000veb.8 for ; Mon, 12 May 2014 05:54:41 -0700 (PDT) X-Received: by 10.220.7.131 with SMTP id d3mr553824vcd.45.1399899281145; Mon, 12 May 2014 05:54:41 -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 ib8csp66547vcb; Mon, 12 May 2014 05:54:40 -0700 (PDT) X-Received: by 10.140.94.179 with SMTP id g48mr35944421qge.58.1399899280706; Mon, 12 May 2014 05:54:40 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id i98si5973077qge.93.2014.05.12.05.54.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 12 May 2014 05:54:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Received: from localhost ([::1]:37447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjpVy-0002Kc-Du for patch@linaro.org; Mon, 12 May 2014 08:39:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjpUq-0000y6-9p for qemu-devel@nongnu.org; Mon, 12 May 2014 08:38:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjpUk-0002Kv-By for qemu-devel@nongnu.org; Mon, 12 May 2014 08:38:20 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjpUk-0002Ko-6w for qemu-devel@nongnu.org; Mon, 12 May 2014 08:38:14 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb1so8474884pad.23 for ; Mon, 12 May 2014 05:38:13 -0700 (PDT) X-Received: by 10.67.23.234 with SMTP id id10mr30780321pad.54.1399898293538; Mon, 12 May 2014 05:38:13 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id ek2sm22718531pbd.30.2014.05.12.05.38.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 May 2014 05:38:12 -0700 (PDT) From: Pranavkumar Sawargaonkar To: qemu-devel@nongnu.org Date: Mon, 12 May 2014 18:07:22 +0530 Message-Id: <1399898246-4831-5-git-send-email-pranavkumar@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1399898246-4831-1-git-send-email-pranavkumar@linaro.org> References: <1399898246-4831-1-git-send-email-pranavkumar@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.50 Cc: peter.maydell@linaro.org, Anup Patel , patches@apm.com, robherring2@gmail.com, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, Pranavkumar Sawargaonkar Subject: [Qemu-devel] [RFC PATCH V5 4/8] target-arm/kvm-const.h: Add QEMU_KVM_CAP_ARM_PSCI_0_2 define X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pranavkumar@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.177 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 We require to check whether PSCI v0.2 capability is available or not in hw/arm/virt.c such that it compiles for both KVM and TCG QEMU. This patch adds PSCI v0.2 capability #define in target-arm/kvm-const.h so that it is available for both KVM and TCG QEMU. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- target-arm/kvm-consts.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-arm/kvm-consts.h b/target-arm/kvm-consts.h index 6009a33..b5f9a20 100644 --- a/target-arm/kvm-consts.h +++ b/target-arm/kvm-consts.h @@ -110,6 +110,11 @@ MISMATCH_CHECK(CP_REG_ARM64_SYSREG_OP2_MASK, KVM_REG_ARM64_SYSREG_OP2_MASK) MISMATCH_CHECK(CP_REG_ARM64_SYSREG_OP2_SHIFT, KVM_REG_ARM64_SYSREG_OP2_SHIFT) #endif +/* KVM ARM/ARM64 specific capabilities */ +#define QEMU_KVM_CAP_ARM_PSCI_0_2 102 + +MISMATCH_CHECK(QEMU_KVM_CAP_ARM_PSCI_0_2, KVM_CAP_ARM_PSCI_0_2) + #undef MISMATCH_CHECK #endif