From patchwork Wed May 31 07:06:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 9755973 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 8DDB460360 for ; Wed, 31 May 2017 07:08:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FEFF284AA for ; Wed, 31 May 2017 07:08:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73403284B1; Wed, 31 May 2017 07:08:37 +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 1466F284AA for ; Wed, 31 May 2017 07:08:36 +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 1dFxiD-00078e-8T; Wed, 31 May 2017 07:06:33 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFxiC-00078X-JG for xen-devel@lists.xenproject.org; Wed, 31 May 2017 07:06:32 +0000 Received: from [193.109.254.147] by server-6.bemta-6.messagelabs.com id 4C/38-03920-77B6E295; Wed, 31 May 2017 07:06:31 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNIsWRWlGSWpSXmKPExsXS6fjDS7c8Wy/ S4ORxfovvWyYzOTB6HP5whSWAMYo1My8pvyKBNePus8nsBat4Kn4sncDcwHiUq4uRk0NIIE/i /ayjzCA2r4CdxN29zWC2hIChxOmFN1lAbBYBVYnGfZ/ZQGw2AXWJtmfbWbsYOThEBAwkzh1NA jGZBfQltq0DqxYWcJT49PQFE0hYCGhiw29TEJNXQFDi7w5hkApmoOjiY/sZJzByz0LIzEKSgb C1JB7+usUCYWtLLFv4mnkW2CppieX/OCDC9hJz9ixlQlUCYntJLPm2kW0BI8cqRo3i1KKy1CJ dQzO9pKLM9IyS3MTMHF1DAzO93NTi4sT01JzEpGK95PzcTYzAgGQAgh2M9zcGHGKU5GBSEuWt sNGLFOJLyk+pzEgszogvKs1JLT7EqMHBIbBt1+oLjFIsefl5qUoSvKJZQHWCRanpqRVpmTnAm IEpleDgURLhbQBJ8xYXJOYWZ6ZDpE4xKkqJ84aCJARAEhmleXBtsDi9xCgrJczLCHSUEE9Bal FuZgmq/CtGcQ5GJWHeeJApPJl5JXDTXwEtZgJavGuHNsjikkSElFQD47Tn9muOBDe9k+57+ez 6fuE10/g9n0xY4LdB4/rzEmm99vY+pu2FEtF7/37l1zNapf/rxp3vmdZGX7Z6B57cY120/rtD 5B4JBi93b+7TFme3h9+bmloa3lo3ZVLHm2uv1jYnp3g4GPaeb7+86Y8KY2+D2vaZ6yfczxNex n+khEPCaXnum+VRmkosxRmJhlrMRcWJAJeLcEPOAgAA X-Env-Sender: JBeulich@suse.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1496214389!99777698!1 X-Originating-IP: [137.65.248.74] 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 13695 invoked from network); 31 May 2017 07:06:30 -0000 Received: from prv-mh.provo.novell.com (HELO prv-mh.provo.novell.com) (137.65.248.74) by server-5.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 31 May 2017 07:06:30 -0000 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Wed, 31 May 2017 01:06:28 -0600 Message-Id: <592E8794020000780015DF57@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.2 Date: Wed, 31 May 2017 01:06:28 -0600 From: "Jan Beulich" To: "xen-devel" References: <592E8794020000780015DF57@prv-mh.provo.novell.com> Mime-Version: 1.0 Cc: Andrew Cooper Subject: [Xen-devel] [PATCH] x86/MSI: improve memory usage in struct msi_desc 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: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP There's no reason to have both a 4-byte hole and 4 bytes of tail padding. Signed-off-by: Jan Beulich x86/MSI: improve memory usage in struct msi_desc There's no reason to have both a 4-byte hole and 4 bytes of tail padding. Signed-off-by: Jan Beulich --- a/xen/include/asm-x86/msi.h +++ b/xen/include/asm-x86/msi.h @@ -119,10 +119,9 @@ struct msi_desc { }; struct pci_dev *dev; int irq; + int remap_index; /* index in interrupt remapping table */ struct msi_msg msg; /* Last set MSI message */ - - int remap_index; /* index in interrupt remapping table */ }; /* Reviewed-by: Andrew Cooper --- a/xen/include/asm-x86/msi.h +++ b/xen/include/asm-x86/msi.h @@ -119,10 +119,9 @@ struct msi_desc { }; struct pci_dev *dev; int irq; + int remap_index; /* index in interrupt remapping table */ struct msi_msg msg; /* Last set MSI message */ - - int remap_index; /* index in interrupt remapping table */ }; /*