WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [RFC PATCH] libxl: basic virtio disk / nic configuration

To: Wei Liu <liuw@xxxxxxxxx>
Subject: [Xen-devel] Re: [RFC PATCH] libxl: basic virtio disk / nic configuration support.
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Mon, 1 Aug 2011 09:51:00 +0100
Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Mon, 01 Aug 2011 01:45:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110730024023.GC2303@limbo>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1311818929.1800.21.camel@limbo> <alpine.DEB.2.00.1107281258100.12963@kaball-desktop> <20110730024023.GC2303@limbo>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Sat, 30 Jul 2011, Wei Liu wrote:
> On Thu, Jul 28, 2011 at 02:05:08PM +0100, Stefano Stabellini wrote:
> > 
> > I think you need to add a new field in libxl_device_disk to specify the
> > protocol, something like libxl_disk_protocol, that can be:
> > 
> > LIBXL_DISK_PROTOCOL_XENVBD
> > LIBXL_DISK_PROTOCOL_VIRTIO
> > 
> > then parse_disk_config can be modified to distinguish xen disks from
> > virtio disks and set the field accordingly.
> 
> Hmm... wait...
> 
> Adding this field is easy. But I don't know if I fully understand your
> idea.
> 
> I am just about to modify the parser. But looking back your replay,
> you are not suggesting adding configuration syntax support in config
> file (sort of `disk=["...,protocol=virito"]`).
> 
> So essentially the new patch will be of no difference to the original
> one. But one advantage is that your plan seems cleaner (not exposing
> hacks to other functions).
> 
> Do I get your point?
 
Yes, that was my main point.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: [RFC PATCH] libxl: basic virtio disk / nic configuration support., Stefano Stabellini <=