From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751358AbcGPBH3 (ORCPT ); Fri, 15 Jul 2016 21:07:29 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40801 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751080AbcGPBH1 (ORCPT ); Fri, 15 Jul 2016 21:07:27 -0400 Subject: Re: [PATCH V9 7/9] vfio, platform: make reset driver a requirement by default To: Alex Williamson References: <1468461995-32676-1-git-send-email-okaya@codeaurora.org> <1468461995-32676-8-git-send-email-okaya@codeaurora.org> <20160714162454.4b05813c@t450s.home> Cc: kvm@vger.kernel.org, timur@codeaurora.org, cov@codeaurora.org, jcm@redhat.com, eric.auger@redhat.com, linux-acpi@vger.kernel.org, agross@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Baptiste Reynal , linux-kernel@vger.kernel.org From: Sinan Kaya Message-ID: <46aea353-ced9-bd6b-199f-9a785d1d8758@codeaurora.org> Date: Fri, 15 Jul 2016 21:07:23 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160714162454.4b05813c@t450s.home> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/14/2016 6:24 PM, Alex Williamson wrote: >> struct vfio_platform_device { >> > + bool reset_required; >> > struct vfio_platform_region *regions; >> > u32 num_regions; >> > struct vfio_platform_irq *irqs; > Either you have 64bit bools or you're not paying any attention to > to the alignment of this structure. If we only care about 64bit > systems we could tuck this into the gap after num_regions, otherwise > append it to the end of the structure, we certainly don't care about > keeping a reset flag within cache line boundaries. Thanks, OK, I moved it to the end of the structure. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.