From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: Proposed plan for libxl USB interface (was Re: [PATCH V4 3/7] libxl: add pvusb API) Date: Mon, 22 Jun 2015 15:22:57 +0100 Message-ID: <21896.6721.528004.191502@mariner.uk.xensource.com> References: <1433906441-3280-1-git-send-email-cyliu@suse.com> <1433906441-3280-4-git-send-email-cyliu@suse.com> <557EE03F.5040108@suse.com> <557F18E8.8050305@suse.com> <557FFFA9.2070002@suse.com> <5580064D.10600@suse.com> <21888.3129.360614.171879@mariner.uk.xensource.com> <1434540258.13744.332.camel@citrix.com> <5582B4BE.1070202@eu.citrix.com> <55880DCC.6070902@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55880DCC.6070902@eu.citrix.com> 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 , Wei Liu , Ian Campbell , Chunyan Liu , "xen-devel@lists.xen.org" , Jim Fehlig , Simon Cao List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("Proposed plan for libxl USB interface (was Re: [Xen-devel] [PATCH V4 3/7] libxl: add pvusb API)"): > With all that in mind, here is a proposal: FAOD, this all sounds good. I have one comment on this: > 4. We work on a set of helper functions that a toolstack can use to > translate other ways of specifying a device, much like the disk > specification helper functions that we provide. One of these should be > something which is reliably stable over reboots, such as the udev > ID_PATH specification. We should invent, similar to the disk specification, a specification for how to interpret a string referring to a usb device. That can be used by xl but also by libvirt and anyone else that wants to. If we don't know right away how this will work, then we should come up with a temporary arrangement which encodes bus.address in a region of the string syntax space which we are confident we won't need in the future for something else. Ian.