From patchwork Thu Mar 24 14:44:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 8661701 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C1CDCC0553 for ; Thu, 24 Mar 2016 14:49:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EC911203B6 for ; Thu, 24 Mar 2016 14:49:55 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0116D203A0 for ; Thu, 24 Mar 2016 14:49:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj6Xq-0003CJ-Oe; Thu, 24 Mar 2016 14:47:30 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj6Xp-0003Bo-Cx for xen-devel@lists.xen.org; Thu, 24 Mar 2016 14:47:29 +0000 Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id F3/46-04065-00EF3F65; Thu, 24 Mar 2016 14:47:28 +0000 X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-8.tower-27.messagelabs.com!1458830845!29877162!1 X-Originating-IP: [209.85.192.175] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.11; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18326 invoked from network); 24 Mar 2016 14:47:27 -0000 Received: from mail-pf0-f175.google.com (HELO mail-pf0-f175.google.com) (209.85.192.175) by server-8.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 24 Mar 2016 14:47:27 -0000 Received: by mail-pf0-f175.google.com with SMTP id x3so59439647pfb.1 for ; Thu, 24 Mar 2016 07:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=t9yrjONGwHdIEja3PsNvhHPTUFNEvXBDqm6v36n8sRg=; b=Cghm+cAjzwdnGM35+UD0QKs5v8JDg5eK5+HiNBmn+X/Lw9gKt1NOhMCGfT+P0/QpN5 dTIwzvclcV37yT++5yK8wSQMtwmSPSUQrYFhnyIvB+Jw6j/bnSxws/L4lCFo/WG3Rn82 v0H5//JYKuWCE29AkNbOGg7GPS8x3rhcGw7sY= 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=t9yrjONGwHdIEja3PsNvhHPTUFNEvXBDqm6v36n8sRg=; b=UkD1SmoYj9iqEqd4m1AhOlUiWH1G9xVAPMFPj9j/pM43PvmaZYdp/jbkBnrcdVAzI9 2llzmyRueB8tUbDcSTdEiGeGtlnq/5eUqW5ZzKBmry13xkTrteIZ0eor1JVt5BA5AJNY 7EiEJmL6d9rsMkHLo1Ot5x2i4S0yX/zpjXtgQKNBuwvpckCPA2oofqOuuvloUkplHYzo MJnhyWd9N0NxRZ2MQ3akbBbXMyp7sxvpeglVKHl6HkDRjorNoZbpiCDxvHRZZeETY3pv 9gFl0fEf4aSqhw4Kx0g7cjz6xh3ptisT246OqQNgOH7B1mDxfJNbKmsewg4fxyxj9mn6 l5jQ== X-Gm-Message-State: AD7BkJJNnt/xxAnzcNUY7LWSLr8Qvyo5tWp8OUga6CJJHUBm1ZqYeHgG4lnKbvx2yAWlMbMY X-Received: by 10.98.15.145 with SMTP id 17mr13204110pfp.19.1458830844670; Thu, 24 Mar 2016 07:47:24 -0700 (PDT) Received: from localhost.localdomain ([104.238.45.135]) by smtp.gmail.com with ESMTPSA id lq10sm10780673pab.36.2016.03.24.07.47.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Mar 2016 07:47:23 -0700 (PDT) From: Shannon Zhao To: linux-arm-kernel@lists.infradead.org, stefano.stabellini@citrix.com, david.vrabel@citrix.com Date: Thu, 24 Mar 2016 22:44:27 +0800 Message-Id: <1458830676-27075-9-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458830676-27075-1-git-send-email-shannon.zhao@linaro.org> References: <1458830676-27075-1-git-send-email-shannon.zhao@linaro.org> Cc: devicetree@vger.kernel.org, linux-efi@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, peter.huangpeng@huawei.com, julien.grall@arm.com, shannon.zhao@linaro.org, zhaoshenglong@huawei.com, xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH v7 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, 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 Sync the changes of HVM_PARAM_CALLBACK_VIA ABI introduced by Xen commit (public/hvm: export the HVM_PARAM_CALLBACK_VIA ABI in the API). Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- include/xen/interface/hvm/params.h | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/include/xen/interface/hvm/params.h b/include/xen/interface/hvm/params.h index a6c7991..70ad208 100644 --- a/include/xen/interface/hvm/params.h +++ b/include/xen/interface/hvm/params.h @@ -27,16 +27,31 @@ * Parameter space for HVMOP_{set,get}_param. */ +#define HVM_PARAM_CALLBACK_IRQ 0 /* * How should CPU0 event-channel notifications be delivered? - * val[63:56] == 0: val[55:0] is a delivery GSI (Global System Interrupt). - * val[63:56] == 1: val[55:0] is a delivery PCI INTx line, as follows: - * Domain = val[47:32], Bus = val[31:16], - * DevFn = val[15: 8], IntX = val[ 1: 0] - * val[63:56] == 2: val[7:0] is a vector number. + * * If val == 0 then CPU0 event-channel notifications are not delivered. + * If val != 0, val[63:56] encodes the type, as follows: + */ + +#define HVM_PARAM_CALLBACK_TYPE_GSI 0 +/* + * val[55:0] is a delivery GSI. GSI 0 cannot be used, as it aliases val == 0, + * and disables all notifications. + */ + +#define HVM_PARAM_CALLBACK_TYPE_PCI_INTX 1 +/* + * val[55:0] is a delivery PCI INTx line: + * Domain = val[47:32], Bus = val[31:16] DevFn = val[15:8], IntX = val[1:0] + */ + +#define HVM_PARAM_CALLBACK_TYPE_VECTOR 2 +/* + * val[7:0] is a vector number. Check for XENFEAT_hvm_callback_vector to know + * if this delivery method is available. */ -#define HVM_PARAM_CALLBACK_IRQ 0 #define HVM_PARAM_STORE_PFN 1 #define HVM_PARAM_STORE_EVTCHN 2