From patchwork Wed Jun 14 16:52:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 9786985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1F8AC60325 for ; Wed, 14 Jun 2017 16:55:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 112F31FF15 for ; Wed, 14 Jun 2017 16:55:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04AB12860B; Wed, 14 Jun 2017 16:55:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F3B8285E6 for ; Wed, 14 Jun 2017 16:55:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLBX3-0006Zg-T0; Wed, 14 Jun 2017 16:52:37 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLBX2-0006WR-81 for xen-devel@lists.xenproject.org; Wed, 14 Jun 2017 16:52:36 +0000 Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id 26/CB-19466-3D961495; Wed, 14 Jun 2017 16:52:35 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRWlGSWpSXmKPExsVysyfVTfdypmO kweolbBbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8aspQ3sBcu5K85Pr2hg/MHRxcjJISSwmVHi wwX9LkYuIHs5o8TEpbeYQBJsAroSO26+ZgaxRQRCJZ4u+M4MUsQscJ1R4vSO+WwgCWGBaIk70 y+xg9gsAqoSm3qvAzVzcPAKWEsc3JQFEpYQkJNoOH8fbA4nUHjq9slgJUICVhI3V+hPYORewM iwilGjOLWoLLVI19BQL6koMz2jJDcxM0fX0MBULze1uDgxPTUnMalYLzk/dxMj0LcMQLCDcWW 78yFGSQ4mJVHeqYKOkUJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkeIMygHKCRanpqRVpmTnAIINJ S3DwKInwbk0FSvMWFyTmFmemQ6ROMSpKifMGgvQJgCQySvPg2mCBfYlRVkqYlxHoECGegtSi3 MwSVPlXjOIcjErCvGXpQFN4MvNK4Ka/AlrMBLQ46IIDyOKSRISUVAOjrk8bv7rUlrbERk89pe WMv4MW1IZ69+eZnb/O/Ly+2EW9VXF+YBA715aj9je/PH/xxFihNaBUbXb75dLLh21evBVwffX 6SuyvfzJ2Eja35DwYRZbIHGSYLWLvp7qW7/f9s6tCjJuyd3+7FP/a3tglXqPv7IQT526cv8rf tudfWZDWko18c3cpsRRnJBpqMRcVJwIAtyZn6mcCAAA= X-Env-Sender: andre.przywara@arm.com X-Msg-Ref: server-3.tower-206.messagelabs.com!1497459154!99833471!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4854 invoked from network); 14 Jun 2017 16:52:34 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-3.tower-206.messagelabs.com with SMTP; 14 Jun 2017 16:52:34 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 528F115B2; Wed, 14 Jun 2017 09:52:34 -0700 (PDT) Received: from e104803-lin.lan (unknown [10.1.207.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0472F3F3E1; Wed, 14 Jun 2017 09:52:32 -0700 (PDT) From: Andre Przywara To: Julien Grall , Stefano Stabellini Date: Wed, 14 Jun 2017 17:52:02 +0100 Message-Id: <20170614165223.7543-14-andre.przywara@arm.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170614165223.7543-1-andre.przywara@arm.com> References: <20170614165223.7543-1-andre.przywara@arm.com> Cc: xen-devel@lists.xenproject.org, Vijaya Kumar K , Vijay Kilari , Shanker Donthineni , Manish Jaggi Subject: [Xen-devel] [PATCH v12 13/34] ARM: GIC: ITS: remove no longer needed VCPU ID in host LPI entry X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP To get easy access to the VCPU a forwarded LPI interrupt should be injected to, so far we stored the VCPU ID in the host LPI entry. However this creates a redundancy, since we keep the target VCPU in the struct pending_irq already, which we can easily look up given the domain and the virtual LPI number. Apart from removing the redundancy this avoids having to update this information later and keeping it in sync in a race-free fashion. Since this information has not been used that, this patch actually does not change anything, it just removes the declaration and initialization. Signed-off-by: Andre Przywara Acked-by: Julien Grall --- xen/arch/arm/gic-v3-lpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/arch/arm/gic-v3-lpi.c b/xen/arch/arm/gic-v3-lpi.c index 292f2d0..dbaf45a 100644 --- a/xen/arch/arm/gic-v3-lpi.c +++ b/xen/arch/arm/gic-v3-lpi.c @@ -47,7 +47,7 @@ union host_lpi { struct { uint32_t virt_lpi; uint16_t dom_id; - uint16_t vcpu_id; + uint16_t pad; }; }; @@ -417,7 +417,6 @@ int gicv3_allocate_host_lpi_block(struct domain *d, uint32_t *first_lpi) */ hlpi.virt_lpi = INVALID_LPI; hlpi.dom_id = d->domain_id; - hlpi.vcpu_id = INVALID_VCPU_ID; write_u64_atomic(&lpi_data.host_lpis[chunk][lpi_idx + i].data, hlpi.data);