All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Fehlig <jfehlig@suse.com>
To: Ian Campbell <ian.campbell@citrix.com>, Wei Liu <wei.liu2@citrix.com>
Cc: xen-devel <xen-devel@lists.xen.org>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Ken Johnson <ken@suse.com>
Subject: Re: [RFC] support more qdisk types
Date: Wed, 03 Feb 2016 19:53:37 -0700	[thread overview]
Message-ID: <56B2BD31.3030909@suse.com> (raw)
In-Reply-To: <1454493390.25207.35.camel@citrix.com>

On 02/03/2016 02:56 AM, Ian Campbell wrote:
> On Tue, 2016-02-02 at 15:06 -0700, Jim Fehlig wrote:
>>> And extending
>>> the structure seems to be the right thing to do.
>> So what do you think of the approach in the RFC patch? It adds discrete knobs in
>> the disk config and extends the disk structure similarly. Before I can make
>> progress on this we need to agree on extending the config and libxl_device_disk
>> structure.
> My main concern is that this approach requires us to update libxl for each
> new possible backend type.

Yes, understood.

>
> The intention of the target= in the disk spec is that it consumes the rest
> of the line so it can be used to encode pretty much anything. Is it not
> possible (modulo bugs) to pass all the necessary information to qdisk in
> this form? I thought Dave S had made it possible to use qdisk in this way
> back in:
>
>     commit a8a1f236a2964506a22d1779648d8e1c8668cb1a
>     Author: David Scott <    dave.scott@eu.citrix.com    >
>     Date:   Tue Apr 23 10:59:26 2013 +0100
>
>         libxl: Only call stat() when adding a disk if we expect a device to exist.
>         
>         We consider calling stat() a helpful error check in the following
>         circumstances only:
>          1. the disk backend type must be PHYsical
>          2. the disk backend domain must be the same as the running libxl
>             code (ie LIBXL_TOOLSTACK_DOMID)
>          3. there must not be a hotplug script because this would imply that
>             the device won't be created until after the hotplug script has
>             run.
>         
>         With this fix, it is possible to use qemu's built-in block drivers
>         such as ceph/rbd, with a xl config disk spec like this:
>         
>         disk=[ 'backendtype=qdisk,format=raw,vdev=hda,access=rw,target=rbd:rbd/ubuntu1204.img' ]

I thought I tried disk config along those lines with no success. But I'll
certainly take a closer look at using target= to encode the config needed by
these qdisk block drivers. Thanks for the pointer.

Regards,
Jim

  reply	other threads:[~2016-02-04  2:53 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26  0:25 [RFC] support more qdisk types Jim Fehlig
2016-01-27 18:32 ` Konrad Rzeszutek Wilk
2016-01-27 20:25   ` Doug Goldstein
2016-01-27 21:09     ` Konrad Rzeszutek Wilk
2016-01-28  2:42       ` Jim Fehlig
2016-01-29 14:07         ` Konrad Rzeszutek Wilk
2016-01-29 17:18           ` Jim Fehlig
2016-01-29 17:59             ` Konrad Rzeszutek Wilk
2016-01-28  2:37     ` Jim Fehlig
2016-01-29 14:21       ` Doug Goldstein
2016-01-28  2:27   ` Jim Fehlig
2016-02-02 14:59 ` Wei Liu
2016-02-02 22:06   ` Jim Fehlig
2016-02-03  9:56     ` Ian Campbell
2016-02-04  2:53       ` Jim Fehlig [this message]
2016-02-04 10:16         ` Ian Campbell
2016-02-09  0:54         ` Jim Fehlig
2016-02-09  9:35           ` Ian Campbell
2016-02-09 10:58           ` Ian Jackson
2016-02-03 10:35     ` Wei Liu
2016-02-03 10:51       ` Ian Campbell
2016-02-03 10:55         ` Wei Liu
2016-02-03 11:05           ` Ian Campbell
2016-02-03 11:08             ` Wei Liu
2016-02-03 11:15             ` Roger Pau Monné

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=56B2BD31.3030909@suse.com \
    --to=jfehlig@suse.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ken@suse.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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.