From: Ian Campbell Subject: Re: [PATCH v4 04/10] libxl: convert libxl_device_disk_add to an asyn op Date: Tue, 29 May 2012 15:40:22 +0100 Message-ID: <1338302422.14158.117.camel@zakaz.uk.xensource.com> References: <1337855045-10428-1-git-send-email-roger.pau@citrix.com> <1337855045-10428-5-git-send-email-roger.pau@citrix.com> <20420.56452.218138.886468@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20420.56452.218138.886468@mariner.uk.xensource.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: Ian Jackson Cc: "xen-devel@lists.xen.org" , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Tue, 2012-05-29 at 15:26 +0100, Ian Jackson wrote: > > > @@ -1859,11 +1883,13 @@ int libxl_cdrom_insert(libxl_ctx *ctx, > uint32_t domid, libxl_device_disk *disk) > > ret = 0; > > > > libxl_device_disk_remove(ctx, domid, disks + i, 0); > > - libxl_device_disk_add(ctx, domid, disk); > > + /* fixme-ao */ > > We need to fix this in the API, at least by making libxl_cdrom_insert > take an ao_how at some point. But not in this patch, indeed. In yesterday's TODO I said: * libxl_cdrom_insert. Should be easy once disk_{add,remove} done. Nobody is looking at this? This is basically a helper function and its functionality can be implemented in terms of the libxl_disk_* interfaces. We could therefore consider marking this function as substandard and subject to change in the future. We could also consider simply moving it into xl as a helper function and revisting for 4.3. I'm quite interested in thoughts on that ;-) Ian.