Message ID | 1454318798-31913-21-git-send-email-vijayak@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6DC7A9FBE9 for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 1 Feb 2016 09:33:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9409020414 for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 1 Feb 2016 09:33:25 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7A27E2041A for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 1 Feb 2016 09:33:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1aQAoZ-0006uC-B5; Mon, 01 Feb 2016 09:30:31 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <Vijaya.Kumar@caviumnetworks.com>) id 1aQAnX-0006kw-Ol for xen-devel@lists.xen.org; Mon, 01 Feb 2016 09:29:27 +0000 Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id C1/F3-03066-6752FA65; Mon, 01 Feb 2016 09:29:26 +0000 X-Env-Sender: Vijaya.Kumar@caviumnetworks.com X-Msg-Ref: server-11.tower-31.messagelabs.com!1454318964!18849083!1 X-Originating-IP: [207.46.100.97] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 15762 invoked from network); 1 Feb 2016 09:29:26 -0000 Received: from mail-by2on0097.outbound.protection.outlook.com (HELO na01-by2-obe.outbound.protection.outlook.com) (207.46.100.97) by server-11.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 1 Feb 2016 09:29:26 -0000 Received: from cavium-Vostro-2520.caveonetworks.com (111.93.218.67) by BN3PR0701MB1688.namprd07.prod.outlook.com (10.163.39.154) with Microsoft SMTP Server (TLS) id 15.1.396.15; Mon, 1 Feb 2016 09:29:19 +0000 From: <vijayak@caviumnetworks.com> To: <Ian.Campbell@citrix.com>, <julien.grall@citrix.com>, <stefano.stabellini@eu.citrix.com>, <stefano.stabellini@citrix.com>, <tim@xen.org>, <xen-devel@lists.xen.org> Date: Mon, 1 Feb 2016 14:56:30 +0530 Message-ID: <1454318798-31913-21-git-send-email-vijayak@caviumnetworks.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1454318798-31913-1-git-send-email-vijayak@caviumnetworks.com> References: <1454318798-31913-1-git-send-email-vijayak@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0026.INDPRD01.PROD.OUTLOOK.COM (25.163.198.161) To BN3PR0701MB1688.namprd07.prod.outlook.com (25.163.39.154) X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1688; 2:Ectzc3tzjlTh9Pc1UvOR45IHhPvwInHGK7eazUg4zLQUBAagO8d6yr7TqWzh34w4DjtUUGJK/M9zonEm0b8FstSNiU1zNJGVg+ZIL4BuBr5SnsquGYTe1lZdwcrMRjCgn5eNQX/PO7d76B7qZxrJ8g==; 3:mCZj4A+jIXJPgTXNINClg79OQsDVOOdNTPIK1GALnPjAWEaVwELZ80gD/7ROrJnWi4+B5pp/fmrhjyWpje2JDxa16EQhnMYf9jxEmRPvmkdbdLdaxyKYI1D1O+IrYX5/; 25:/WVxF7iYuiXujGYnDMWRMatJ1yy1crVxClPXiHuVjJOyij0N7nNai9xc9Bo5y24Ux1jsbcOPO2hhZIE3zyoXxsZCznNDiGF3at31iZiLGVb5A1DltuXqFtv03dbCgh4E5erQghdpPU3bmVcCchzP7Cq7w9ThM836U9gO8VHmv4mr8AgsuCUqyZ3e2wmux6qjPEkJUVJgbTCVim/OJdzGVbgyHuCmuUXsQrssFctLaKhOdrTcWEB3872mWiNq9Y9q X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1688; X-MS-Office365-Filtering-Correlation-Id: 69b47042-8bb3-4ce1-882a-08d32aea2bb4 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1688; 20:mT3IBGW01zeZzc7YBUxSB8ivBKSTxDG+2B6FAiwpWBoVslj8SPU+1YmNhzHr/hduDWHLNLK0InFArni6b5fUOnx88hRKTCqHeuchngZgGCz2ZJ9GMKoAKdPXiw6k75PwAO+C5BrUVXznuweA8lPlCcRqcapVt0H9HqwbHAwnokmcR5IHTpQH7QS06FRjj3AldWS5nFlSIjLjSae+BchCWmMsh5UwWKoMVAHxaxIl+zxK7kVaVk9i2wGuQkLASvm6oja6Q24rpWj4NyDZlDhaMR36rKaZOtalhuJWzjMkGFWyeYzjH+wAnhgGywSXdhd7GR8GpyHvx9zKL/Yy7QvQ2uNqppO9JbRcXTNPfxw2AyaYbJHvqYNmPHU5HZ4P3KoOosoq29wmbirIXlPxMNWMpHYxdyNeaiGrqNuw7FiQuB6ru7za+koGNp3U5BulZA8YzsQmlNkd/y/7QgnBt6mudEYpEZcnx8DYPAuOTeBMiE9UOrgned5fg/clMWQ0H+Sn1yfune36z2cK/u2iU8ASWs9GyPNGHsQAfXdrwQrkZAESu/GWkG+JD5JwGtMd89KypLenKochj/G1zf0U2s9vy0RJSpgGGygwGRNya6gLRQE= X-Microsoft-Antispam-PRVS: <BN3PR0701MB1688808BC3B1FA4B795C4E38FFDE0@BN3PR0701MB1688.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BN3PR0701MB1688; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1688; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1688; 4:xEtzHtW3dc+3EgjLXUVlD5n3XeUbGNJUWFjPlJ9WEiawiRw91jyeGGtNAbdOFcBXLwjVnPgttdc10coqKJq2luCJEx8nR9J2dEKB8UdDcjQWfkE7zIYSzaNX/8Zfyg0csDDDMQl6N+E1TDCzk9oVjVj1qkI7iJ2L9wp9lhsI/MUMVDGvrF9cKOKak0a9PCBlWDNxRJTZ3NSlaYec1U+RJis5hPTaVrEcAIv+e1iXIcxe2p1YLgcSNfTgJME0v5OMzDpNjAArgMbPGz9Z9mjldvoERAifAOfIl0LZEPCdbyxwRIioVtgAAITKMHqw6pfr+cyPDl6my4eNqFAdXPqL5KD/7cwQAbQyHH9cuQ/NZn3puOyeYO91fnJnO5/y5gCf X-Forefront-PRVS: 0839D067E7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(3846002)(5009440100003)(4001430100002)(586003)(1096002)(76176999)(50986999)(36756003)(189998001)(92566002)(5004730100002)(2950100001)(229853001)(50226001)(87976001)(86152002)(107886002)(2201001)(5001960100002)(77096005)(53416004)(48376002)(19580395003)(19580405001)(5003940100001)(5001770100001)(42186005)(33646002)(66066001)(47776003)(2906002)(2876002)(4326007)(122386002)(3470700001)(5008740100001)(50466002)(40100003)(7099028)(7059030)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1688; H:cavium-Vostro-2520.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1688; 23:NMwHxHi6BxdeWurw0Y0UxDMux1P+cPKdH4qNqoe?= =?us-ascii?Q?PYE5XCBbmuesIRCAyYKOny7HVtDaS7oxWkoc/OeYrSPJF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q?9i9oJkHrtZ3L2ul2hS6xO8CqQk1NVutALKNokDApYqS3SKYk5gGf0YU7TOWL?= =?us-ascii?Q?WNnbgw1MEKprdLn7aiSj4rd9sx5NnEiEHzdbVpViFjSrO2pA5mRPdcAlkoHN?= =?us-ascii?Q?u8U9W7pO1dy5lLKMfFccNGnoPRevMm3qqjBX27yH478FIexYv4O5pYHKVFwx?= =?us-ascii?Q?5d6G/2uAQ2ki371ZFtU485Y4rYHwpZkKu?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1688; 5:vSRzZCC8N0TTR2ol/5ydAOvmIY8RCwSRmQwmaUd+9SX4MJANRZc8Lad3uwo6jSx9lb2CZmxPoCEgYhisydrWoiLPSrKfasEBIaTABlsQt/fBHMAaG1kgwLRFgVmGfyYSifibJWM+LEENpbxsLbxEjQ==; 24:dsNRxDzEyzUbqxvywLeceJiP2eT9gLePWrx72mazNvtQlOuKe8MxS7x0iXroCRctwpPbAT0BDjw1G/HzOrIYAc6rQM+tQaIXfpQq96H0vOQ= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2016 09:29:19.4704 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1688 X-Mailman-Approved-At: Mon, 01 Feb 2016 09:30:20 +0000 Cc: Prasun.Kapoor@caviumnetworks.com, manish.jaggi@caviumnetworks.com, Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>, vijay.kilari@gmail.com Subject: [Xen-devel] [PATCH v8 20/28] xen/arm: ITS: Add virtual ITS availability check helper X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <http://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, 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 |
diff --git a/xen/arch/arm/vgic.c b/xen/arch/arm/vgic.c index f813931..2d89b7c 100644 --- a/xen/arch/arm/vgic.c +++ b/xen/arch/arm/vgic.c @@ -62,6 +62,11 @@ struct vgic_irq_rank *vgic_rank_irq(struct vcpu *v, unsigned int irq) return vgic_get_rank(v, rank); } +bool_t vgic_is_lpi_supported(struct domain *d) +{ + return (d->arch.vgic.nr_lpis != 0); +} + static void vgic_init_pending_irq(struct pending_irq *p, unsigned int virq) { INIT_LIST_HEAD(&p->inflight); diff --git a/xen/include/asm-arm/vgic.h b/xen/include/asm-arm/vgic.h index f13adfd..35d06b8 100644 --- a/xen/include/asm-arm/vgic.h +++ b/xen/include/asm-arm/vgic.h @@ -311,6 +311,7 @@ extern int vgic_emulate(struct cpu_user_regs *regs, union hsr hsr); extern void vgic_disable_irqs(struct vcpu *v, uint32_t r, int n); extern void vgic_enable_irqs(struct vcpu *v, uint32_t r, int n); extern void register_vgic_ops(struct domain *d, const struct vgic_ops *ops); +extern bool_t vgic_is_lpi_supported(struct domain *d); int vgic_v2_init(struct domain *d); int vgic_v3_init(struct domain *d);