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: 8726291 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D7A86C0553 for ; Fri, 1 Apr 2016 15:55:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0E0FD201FA for ; Fri, 1 Apr 2016 15:55:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3716120145 for ; Fri, 1 Apr 2016 15:55:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1am1OZ-0006LV-Ay; Fri, 01 Apr 2016 15:53:59 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1am1Lt-0003Ty-1Y for linux-arm-kernel@bombadil.infradead.org; Fri, 01 Apr 2016 15:51:13 +0000 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]) by casper.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1am1Lp-0005YY-Au for linux-arm-kernel@lists.infradead.org; Fri, 01 Apr 2016 15:51:11 +0000 Received: by mail-pa0-x230.google.com with SMTP id tt10so93791091pab.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=UBJIgk1GbB+K5yIx7/C9LfyFqfTtIbNb5xpOq1KVfFqItuCA3w3gOKeLjWlPb9rI2K a8xuU16yVlhNjPKhrasUVUfYk419fCYUB2nL4/FJpj5nCLYFp9sFsybdYpNYh1aEY2mA X6e/pGjhcjUCSWSMJd+WB1BmlUZbl23oRgxGumqqSjYvYJfz8AH7xDeNjhY4ncQq8WW6 PTD7ZlqBVMeEabjG8YnDM3CTTDFeMEsoxTVvPbzJD8lekDPDqgGhiS9Wo5lIciL5rK6z iU3PWiLobIcpwFbJj4d6lrC5Wa4vHyTJjKk8u7lLlT0p3YRJrDIyqwp9y7fZK87OKqKn lO5g== X-Gm-Message-State: AD7BkJJJBNjKnkOwRMFdBeA5xpqVxVqh3w3mXUZyGAKbxW/nG03svf4uIqT++2qwiJbrRMgm 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 Subject: [PATCH v10 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160401_165109_570422_F5154C4F X-CRM114-Status: GOOD ( 12.93 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 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=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,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