From patchwork Tue Nov 17 09:40:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 56756 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1828166lbb; Tue, 17 Nov 2015 01:50:36 -0800 (PST) X-Received: by 10.31.167.130 with SMTP id q124mr2644239vke.144.1447753835679; Tue, 17 Nov 2015 01:50:35 -0800 (PST) Return-Path: Received: from lists.xen.org (lists.xenproject.org. [50.57.142.19]) by mx.google.com with ESMTPS id 71si2034517vkd.6.2015.11.17.01.50.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Nov 2015 01:50:35 -0800 (PST) Received-SPF: neutral (google.com: 50.57.142.19 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=50.57.142.19; Authentication-Results: mx.google.com; spf=neutral (google.com: 50.57.142.19 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZyctA-0000Bs-Il; Tue, 17 Nov 2015 09:49:24 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zyct8-00008v-LG for xen-devel@lists.xen.org; Tue, 17 Nov 2015 09:49:22 +0000 Received: from [193.109.254.147] by server-9.bemta-14.messagelabs.com id 78/A2-26043-F18FA465; Tue, 17 Nov 2015 09:49:19 +0000 X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-2.tower-27.messagelabs.com!1447753758!3768833!1 X-Originating-IP: [74.125.82.53] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.19.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 40218 invoked from network); 17 Nov 2015 09:49:18 -0000 Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by server-2.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 17 Nov 2015 09:49:18 -0000 Received: by wmvv187 with SMTP id v187so218010406wmv.1 for ; Tue, 17 Nov 2015 01:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Y6sXVlKVQvFHMzDiKJWiTOL8h8RhRmwF/Y9loafqO9w=; b=0lUxWDtSB66rSWpsVnGsEOYJ5TTDAkyASbKN0ucHsqQSsKtj1WtzNzWVNSzn8UP8Nf GRQJoOLzvcGmMD6rb9wQf6CNNGadl18mx/qRI6MMG9NR0XdCo5+fSz4eC/2uPNV6vavP 2BI8sZc88Xj+NENj2SHDDU19Fzrm3iIMWrYEvLJ8VKPt2DxYsbz7fF1kqzzaSdm18I4A wDNJ61OW8qTlcTXP6c2IDtjwVHF91j57ItPaK/mtfOjKy7P/497omYYe1zmKtDBnAIBb 9Kc7z8IbHn17r4WvwaLudrEON0cPSrQB6/pgRxoq/yb62z2mXdyXelHZ9Q58yrysj9k+ KxCA== 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=Y6sXVlKVQvFHMzDiKJWiTOL8h8RhRmwF/Y9loafqO9w=; b=RFRRttlh5u+8D7Y/o1i+SyJGwRgk3X+Z64b2kzlO7Ik+ziHCVfffgqwjoBAhca5PcS 4JFGK8IKnOcIL2eFK/imTlYfuEnxM8UOmjyDNkaCYhuPcLS9D820ceAno8ZNgVmVbpDy p4NGYXGigcL7+40UvCW69vCn5K4DOzb9eyAq5OyJW851gfA2NU6P7tCgC0LNHd1/lV0U Kve2AJZcaXLaS0hxsx/aCj21xxpc5g17eT9xgX6HR8t96t6oGhmajMs2tEY02ZVZTNyN pfhduOq2ZHLt2tZgHnFWkbp/1ezsbBglgqjkEnSDp/05dTU5FJuw5VsLipcqmMyVD8GV mtIQ== X-Gm-Message-State: ALoCoQn2Llu8/3FWQql0DZOyLv2G3iMb0Iu4gP56eNIZbnVEoCGqZtakgbX3mVN3NdUqfcZuzvj1 X-Received: by 10.28.63.22 with SMTP id m22mr1565557wma.58.1447753758270; Tue, 17 Nov 2015 01:49:18 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id m135sm28276133wmb.0.2015.11.17.01.49.16 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:49:17 -0800 (PST) From: shannon.zhao@linaro.org To: ian.campbell@citrix.com, stefano.stabellini@citrix.com, keir@xen.org, jbeulich@suse.com, andrew.cooper3@citrix.com, julien.grall@citrix.com, xen-devel@lists.xen.org Date: Tue, 17 Nov 2015 17:40:56 +0800 Message-Id: <1447753261-7552-58-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> References: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> Cc: mark.rutland@arm.com, hangaohuai@huawei.com, ard.biesheuvel@linaro.org, shannon.zhao@linaro.org, christoffer.dall@linaro.org, peter.huangpeng@huawei.com, david.vrabel@citrix.com, zhaoshenglong@huawei.com, linux-arm-kernel@lists.infradead.org, roger.pau@citrix.com Subject: [Xen-devel] [PATCH v3 57/62] hvm/params: Add a new dilivery type for event-channel in HVM_PARAM_CALLBACK_IRQ X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org From: Shannon Zhao Add a new dilivery type: val[63:56] == 3: val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 0 stands the interrupt mode is edge(1) or level(0) and bit 1 stands the interrupt polarity is active low(1) or high(0). Signed-off-by: Shannon Zhao --- xen/include/public/hvm/params.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel diff --git a/xen/include/public/hvm/params.h b/xen/include/public/hvm/params.h index 356dfd3..5aa2aba 100644 --- a/xen/include/public/hvm/params.h +++ b/xen/include/public/hvm/params.h @@ -38,6 +38,11 @@ * val[63:56] == 2: val[7:0] is a vector number, check for * XENFEAT_hvm_callback_vector to know if this delivery * method is available. + * val[63:56] == 3: val[15:8] is flag of event-channel interrupt: + * bit 0: interrupt is edge(1) or level(0) triggered + * bit 1: interrupt is active low(1) or high(0) + * val[7:0] is PPI number used by event-channel. + * This is only used by ARM/ARM64. * If val == 0 then CPU0 event-channel notifications are not delivered. */ #define HVM_PARAM_CALLBACK_IRQ 0