From: "Jan Beulich" Subject: Re: [PATCH 2/4] sysctl/libxl: Add interface for returning IO topology data Date: Fri, 05 Dec 2014 16:03:32 +0000 Message-ID: <5481E564020000780004D47B@mail.emea.novell.com> References: <1417556050-23364-1-git-send-email-boris.ostrovsky@oracle.com> <1417556050-23364-3-git-send-email-boris.ostrovsky@oracle.com> <5481E39B020000780004D450@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5481E39B020000780004D450@mail.emea.novell.com> 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: Boris Ostrovsky Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, dario.faggioli@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, ufimtseva@gmail.com, keir@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 05.12.14 at 16:55, wrote: >>>> On 02.12.14 at 22:34, wrote: >> +struct xen_sysctl_iotopo { >> + uint16_t seg; >> + uint8_t bus; >> + uint8_t devfn; >> + uint32_t node; >> +}; > > This is PCI-centric without expressing in the name or layout. Perhaps > the first part should be a union from the very beginning? And I wonder whether that supposed union part wouldn't be nicely done using struct physdev_pci_device. Additionally please add IN and OUT annotations. When I first saw this I assumed they would all be OUT (in which case the long running loop problem mentioned in the reply to one of the other patches wouldn't have been there), matching their CPU counterpart... Jan