From patchwork Fri Apr 1 15:49:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 8726081 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 DB989C0553 for ; Fri, 1 Apr 2016 15:52:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02A4F20108 for ; Fri, 1 Apr 2016 15:52:39 +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 1F17A203AB for ; Fri, 1 Apr 2016 15:52:37 +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 1am1LY-0004iC-1v; Fri, 01 Apr 2016 15:50:52 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1am1LW-0004gj-4R for xen-devel@lists.xen.org; Fri, 01 Apr 2016 15:50:50 +0000 Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id AE/83-03301-9D89EF65; Fri, 01 Apr 2016 15:50:49 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRWlGSWpSXmKPExsVyMfSOlu6NGf/ CDJ4strBY8nExiwOjx9Hdv5kCGKNYM/OS8isSWDMaepazFxzjq7j7eT9TA2MjTxcjF4eQwCRG idtfT7CBOCwC85gldr++D+ZICPSzStxp+snSxcgJ5MRILPs3nxHCrpBY3/iMHcQWElCTWHZ4I TPEqCeMEmsmNIEVsQnoSLyYtBNoEgeHiICHxJ6PtSA1zALLmCTmbZoEViMsEC9x8e42MJtFQF ViV/smJhCbV8Bd4tDUGcwQy+Qkzh//CWZzAs2Z/O8VC8Rid4mHs2axT2AUWMDIsIpRozi1qCy 1SNfQWC+pKDM9oyQ3MTNH19DQRC83tbg4MT01JzGpWC85P3cTIzC46hkYGHcw7trueYhRkoNJ SZTXcNq/MCG+pPyUyozE4oz4otKc1OJDjDIcHEoSvJumA+UEi1LTUyvSMnOAYQ6TluDgURLhr QVJ8xYXJOYWZ6ZDpE4xGnNs+X1tLRPHtqn31jIJseTl56VKifMeBCkVACnNKM2DGwSLv0uMsl LCvIwMDAxCPAWpRbmZJajyrxjFORiVhHnXgkzhycwrgdv3CugUJqBTOqTBTilJREhJNTDO3/b y1nfDyA2fTab98ZP86bCC1eDhZuGC3v9ptjG+zq/i/uzLWHRGjIetPPb1o7wJpzdXPJ3tpPTx 1odX1a8UerZ6PT7QGWV7UMAgnG3LpfxQ+01aC312/Xx4zO/20u1ShV0bXh4Tuf5dnpPx0oF3d Wtip+Uc9o6NkbzKolcZ6/HLI4I5I1VAiaU4I9FQi7moOBEAKUFzULoCAAA= X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-6.tower-27.messagelabs.com!1459525847!35143299!1 X-Originating-IP: [209.85.220.42] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 39590 invoked from network); 1 Apr 2016 15:50:48 -0000 Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by server-6.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 1 Apr 2016 15:50:48 -0000 Received: by mail-pa0-f42.google.com with SMTP id tt10so93791055pab.3 for ; Fri, 01 Apr 2016 08:50:48 -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=StkdjLai39ay7li4HJwebH0cRMt0EeSfZWeJAaDuNFxRJNL2QHUEETXcxHT+HrBIju DEQE62HyJ45PmFrLlbW0krjHPjWLs5ePlUOqk/figIDwbAWM0+REo5Ysk5Crei2qq63L YQJ+IvwRkdgHodtEvm7O3Fz+2Ui5/ATDinOqA= 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=Ie6YiMUali6uxfqDr6BewL99EJ0pNj0xcKOYopQo3rcg2elYLMGCrwHfVLtSJ0YD/Q tVJU8lmOYqG/DDjktTl7C6DW8LFi7/+6pRS7Z93nOw2GI3eaBNAxgC659YbrBKa+DSYE qa5RHyIR+Gxg4ulvZ5Qb7VhSIGJU54LnJuOBnYRn+bk5CbS+qv0P7kcwK3kAddU3BtgU pbpOf+Muwb3XlrEveRvoZcsJLwKSj1ipuZyerzc77JyTzptvOUwwDFlmYMh/JAX1Spd7 F6/nP0VZGDxjktmSJyR7WnJP2Esvkj4DKKSd2HFQExACxBGJXr15W3TAF4lFuS7LctgA 1bgQ== X-Gm-Message-State: AD7BkJJuZw4qEkkGtMHbVnrjEXLjfh4joBRO4GuSA6e2d/1/zhtbzJTT/xAGTkUGC37sqWgt X-Received: by 10.66.255.39 with SMTP id an7mr32132127pad.2.1459525846759; Fri, 01 Apr 2016 08:50:46 -0700 (PDT) Received: from localhost.localdomain ([167.160.116.218]) by smtp.gmail.com with ESMTPSA id yj1sm22536791pac.16.2016.04.01.08.50.39 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2016 08:50:45 -0700 (PDT) From: Shannon Zhao To: linux-arm-kernel@lists.infradead.org, stefano.stabellini@citrix.com Date: Fri, 1 Apr 2016 23:49:06 +0800 Message-Id: <1459525755-36968-9-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459525755-36968-1-git-send-email-shannon.zhao@linaro.org> References: <1459525755-36968-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, david.vrabel@citrix.com, zhaoshenglong@huawei.com, xen-devel@lists.xen.org, shannon.zhao@linaro.org Subject: [Xen-devel] [PATCH v10 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