From: Ian Jackson Subject: Re: [PATCH v2 1/2] libxl: Introduce functions to add and remove host USB devices to an HVM guest Date: Wed, 20 Mar 2013 16:52:25 +0000 Message-ID: <20809.59721.561353.891856@mariner.uk.xensource.com> References: <1363797697-27179-1-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1363797697-27179-1-git-send-email-george.dunlap@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: Roger Pau Monne , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("[PATCH v2 1/2] libxl: Introduce functions to add and remove host USB devices to an HVM guest"): > Devices must be removed by "id", an identifying string, which must be > specified when the device is created. The caller can either pass one > in to request; if none is passed in, then libxl will choose one and > pass it back to the caller. In the second case, it will return a > string containing the id used in the "id" field of the device struct. IMO we shouldn't expose these ids like this. Rather, we should do what we do with block, network, etc. and have functions for listing and removing devices by their virtual names ("device tree path" or whatever as the guest sees it). If QMP is deficient then this may mean keeping a separate list somewhere. Ian.