All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <liuw@liuw.name>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [RFC PATCH] libxl: basic virtio disk / nic configuration support.
Date: Sat, 30 Jul 2011 10:40:23 +0800	[thread overview]
Message-ID: <20110730024023.GC2303@limbo> (raw)
In-Reply-To: <alpine.DEB.2.00.1107281258100.12963@kaball-desktop>

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?

Wei.

  parent reply	other threads:[~2011-07-30  2:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-28  2:08 [RFC PATCH] libxl: basic virtio disk / nic configuration support Wei Liu
2011-07-28 13:05 ` Stefano Stabellini
2011-07-29  6:35   ` Wei Liu
2011-07-30  2:40   ` Wei Liu [this message]
2011-08-01  8:51     ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110730024023.GC2303@limbo \
    --to=liuw@liuw.name \
    --cc=Ian.Campbell@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.