From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH v2] libxl: Introduce a template for devices with a controller Date: Tue, 1 Dec 2015 17:25:28 +0000 Message-ID: <20151201172528.GA21588@citrix.com> References: <1448971798-3498-1-git-send-email-george.dunlap@eu.citrix.com> <20151201155855.GX21588@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Juergen Gross , Olaf Hering , Wei Liu , Ian Campbell , George Dunlap , "xen-devel@lists.xen.org" , Ian Jackson , Chun Yan Liu List-Id: xen-devel@lists.xenproject.org On Tue, Dec 01, 2015 at 05:03:28PM +0000, George Dunlap wrote: > On Tue, Dec 1, 2015 at 3:58 PM, Wei Liu wrote: > > On Tue, Dec 01, 2015 at 12:09:58PM +0000, George Dunlap wrote: > > [...] > >> diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h > >> index 6b73848..44e2951 100644 > >> --- a/tools/libxl/libxl.h > >> +++ b/tools/libxl/libxl.h > >> @@ -1396,6 +1396,71 @@ void libxl_vtpminfo_list_free(libxl_vtpminfo *, int nr_vtpms); > >> * > >> * This function does not interact with the guest and therefore > >> * cannot block on the guest. > >> + * > >> + * Controllers > >> + * ----------- > >> + * > >> + * Most devices are treated individually. Some classes of device, > >> + * however, like USB or SCSI, inherently have the need to have a > >> + * hierarchy of different levels, with lower-level devices "attached" > >> + * to higher-level ones. USB for instance has "controllers" at the > >> + * top, which have buses, on which are devices, which consist of > >> + * multiple interfaces. SCSI has "hosts" at the top, then buses, > >> + * targets, and LUNs. > >> + * > >> + * In that case, for each , there will be a set of functions > >> + * and types for each . For example, for =usb, there > >> + * may be ctrl (controller) and dev (device), with ctrl being > >> + * level 0. > >> + * > >> + * libxl_device__ will act more or > > > > Missed "level0" comment from Chunyan? > > The only comment of Chunyan's I could find that has in it is > actually correcting => . Did I > misunderstand, or did you? :-) Oops. I misread. Sorry about the noise. Wei. > > -George