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: 64869 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp811130lbc; Fri, 1 Apr 2016 08:51:02 -0700 (PDT) X-Received: by 10.66.90.226 with SMTP id bz2mr32304800pab.31.1459525851841; Fri, 01 Apr 2016 08:50:51 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gp8si18232527pac.23.2016.04.01.08.50.51; Fri, 01 Apr 2016 08:50:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759331AbcDAPut (ORCPT + 29 others); Fri, 1 Apr 2016 11:50:49 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:34312 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932435AbcDAPur (ORCPT ); Fri, 1 Apr 2016 11:50:47 -0400 Received: by mail-pa0-f46.google.com with SMTP id fe3so93901385pab.1 for ; Fri, 01 Apr 2016 08:50:47 -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=kdQZDAN8SMEh8pOQp0nAP4Ma+uGiWGvMy7AZXn4iPZS/BoGGHydBW2Xssn8savFQ+n YEEz2ZS5/U8OnP2mDKjbozIDlbzh00+wq4mvUkNz4ScNJ3Zjjw8Tg/GoapKongOgUc+Q z4LY3/EjLaDYZmX/l0XoMCcoqIm0SW6q1WcXGb9bz8GDCWqs4NkR6NVX0YKe202HG2rS xFJkfLsSag751ZZ9PbQW3Ms0LfwNrUjaXzJodVQV30BAg0+qCVbdVQBfzLwmlaKGKGDZ jYBRd1XLLdwIlIi2S8iDsAgRHkuWjNF7Ubx+PGbhmilkqEECMPxN7dDMdHYy1rBQLzm1 jCmw== X-Gm-Message-State: AD7BkJJx8PoW20ApthVNUlm9KKGGsdgdS+KFSyyoZslUhiiVyFFofoo4HBJ9csFhlxSJDGQ2 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 Cc: david.vrabel@citrix.com, devicetree@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, julien.grall@arm.com, peter.huangpeng@huawei.com, xen-devel@lists.xen.org, zhaoshenglong@huawei.com, shannon.zhao@linaro.org 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.1.4 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