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: 64386 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp698789lbc; Thu, 24 Mar 2016 07:50:39 -0700 (PDT) X-Received: by 10.98.73.88 with SMTP id w85mr13659830pfa.82.1458831013060; Thu, 24 Mar 2016 07:50:13 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u27si12678518pfi.159.2016.03.24.07.50.12; Thu, 24 Mar 2016 07:50:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757558AbcCXOuL (ORCPT + 7 others); Thu, 24 Mar 2016 10:50:11 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:33941 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757457AbcCXOrZ (ORCPT ); Thu, 24 Mar 2016 10:47:25 -0400 Received: by mail-pf0-f173.google.com with SMTP id x3so59439645pfb.1 for ; Thu, 24 Mar 2016 07:47:25 -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=mPHULeM39bc7+3iYGZI08EtTLKbNRlVfpRUKL7IEVsNPW+O/nvsJGGcnWaKaswprQS IYDOIVKFIaEG8yLNmPaAf8WPshDAmz1G/Yi2KV7JgiaEmDleGP/i6MQI3k9HGh8grrFa n9sh4WSAFHluBqCWSjOeHaXxcQReEiPy4p6OMQt0STowvFltMI47l0yC8HtljBW0oT45 bxN/ioV9VFeveSTSEov6+tJjzpr/IDVfxpKmuo+5eUQxJIW1rV+Nfaop6NYMJerojgo4 3AcWDwUJqlJdV5x8EC1sFgR6g3cO+vKC/XJpRXCzeBBfWHQ5DNKmjvVhy8QstMS9eqpC SoYg== X-Gm-Message-State: AD7BkJLsoz+aXxqOqJcxfRhVkuZ+85pIeR4Py5oTM45DC80Y6B7h0dDwmrNgdersOnPoK62H 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 Cc: 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 v7 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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