From: "Jan Beulich" Subject: Re: [RFC PATCH 5/5] ioreq-server: bring the PCI hotplug controller implementation into Xen Date: Thu, 30 Jan 2014 16:38:39 +0000 Message-ID: <52EA8E1F0200007800118430@nat28.tlf.novell.com> References: <1391091590-5454-1-git-send-email-paul.durrant@citrix.com> <1391091590-5454-6-git-send-email-paul.durrant@citrix.com> <52EA760E.4010400@citrix.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0217A88@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0217A88@AMSPEX01CL01.citrite.net> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , Paul Durrant Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 30.01.14 at 17:06, Paul Durrant wrote: >> From: Andrew Cooper [mailto:andrew.cooper3@citrix.com] >> > +struct xen_hvm_pci_hotplug { >> > + domid_t domid; /* IN - domain to be serviced */ >> > + uint8_t enable; /* IN - enable or disable? */ >> > + uint32_t slot; /* IN - slot to enable/disable */ >> >> Reordering these two will make the structure smaller. >> > > It will indeed. Now I'm confused: domid_t being 16 bits, afaict re-ordering would make it larger (from 8 to 12 bytes) rather than smaller. What I'd certainly recommend is filling the 1 byte that's currently unused (either by widening "enabled" or with a padding field) such that eventual future extensions (flags?) could be added (i.e. the field would need to be checked to be zero). Jan