From: Ian Jackson Subject: Re: [PATCH 3 of 3] blktap3/libxl: Handles blktap3 device in libxl Date: Tue, 12 Feb 2013 18:01:51 +0000 Message-ID: <20762.33679.974580.589786@mariner.uk.xensource.com> References: <6b54db4abe1276e1003d.1360344254@makatos-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6b54db4abe1276e1003d.1360344254@makatos-desktop> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Thanos Makatos Cc: xen-devel@lists.xensource.com, andrei.lifchits@citrix.com List-Id: xen-devel@lists.xenproject.org Thanos Makatos writes ("[Xen-devel] [PATCH 3 of 3] blktap3/libxl: Handles blktap3 device in libxl"): > Handling of blktap3 devices is similar to blktap2, except that libxl doesn't > spawn the tapdisk and doesn't create the physical device in dom0. ... > + case LIBXL_DISK_BACKEND_TAP3: > + flexarray_append(back, "params"); > + flexarray_append(back, libxl__sprintf(gc, "%s:%s", > + libxl__device_disk_string_of_format(disk->format), > + disk->pdev_path)); > + break; > case LIBXL_DISK_BACKEND_QDISK: > flexarray_append(back, "params"); > flexarray_append(back, libxl__sprintf(gc, "%s:%s", This seems to duplicate much of the entry for LIBXL_DISK_BACKEND_QDISK. I think this could be profitably reorganised to avoid clone-and-hack. > diff -r dd63f2992e71 -r 6b54db4abe12 tools/libxl/libxl_device.c > --- a/tools/libxl/libxl_device.c Fri Feb 08 17:23:25 2013 +0000 > +++ b/tools/libxl/libxl_device.c Fri Feb 08 17:23:26 2013 +0000 > @@ -190,6 +190,23 @@ static int disk_try_backend(disk_try_bac > } > return backend; > > + case LIBXL_DISK_BACKEND_TAP3: > + /* TODO What's that script thing? */ > + if (a->disk->script) goto bad_script; Is this series supposed to be an RFC ? It still has the odd TODO and FIXME in it. A disk script is an external script which arranges to provision a block device for use by guests (and dom0). It's an alternative to TAP3 so I think you can just delete the comment. Ian.