From: Jim Fehlig <jfehlig@suse.com>
To: Marek Marczykowski <marmarek@invisiblethingslab.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
Dave Scott <Dave.Scott@eu.citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
xen-devel <xen-devel@lists.xen.org>
Subject: Re: libvirt, libxl and QDISKs
Date: Mon, 29 Apr 2013 15:00:16 -0600 [thread overview]
Message-ID: <517EDF60.7000204@suse.com> (raw)
In-Reply-To: <517A69FA.6080402@invisiblethingslab.com>
Marek Marczykowski wrote:
> On 26.04.2013 13:40, Ian Campbell wrote:
>
>> On Fri, 2013-04-26 at 12:31 +0100, Marek Marczykowski wrote:
>>
>>> What about old good loop+phy based backend for file disk images? I don't want
>>> whole qemu in dom0 for PV domains, only for handling simple disk backend.
>>> Additionally sparse images + loop + phy + mount -o discard in domU makes the
>>> images "auto shrinking". Don't know if qemu is able to do this.
>>>
>> IIRC the problem with loop+phy is that loop doesn't do O_DIRECT and
>> therefore your data isn't actually on the disk when you might think it
>> is, which can lead to filesystem corruption even if the f/s is doing
>> correct barriers.
>>
>>
>>> Attached patch, which I currently use for that. If it is close to something
>>> that would be accepted, I will send it in new thread.
>>>
>> I think you can use a block script for this (i.e. it does the loop
>> mount) and avoid patching libxl at all. That's what xend did at least...
>>
>
> This also was solution I've evaluated, but libvirt developers don't want to
> hear about disk->script setting in official libvirt, so I still need to patch
> some library.
Good old loop+phy is supported by the legacy libvirt xen driver without
libvirt needing <disk><script /></disk>, generally by using <driver
name='file' />.
> Choosing libxl seems to be more universal. Setting loop in libxl
> is also much faster than calling script for that.
> Perhaps I can rewrite this patch to allow the choice (LIBXL_DISK_BACKEND_LOOP)?
>
With such a patch, libvirt could set the backend to
LIBXL_DISK_BACKEND_LOOP when <driver name='file'>, preserving loop+phy
backend setup done by the old toolstack.
Regards,
Jim
next prev parent reply other threads:[~2013-04-29 21:00 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-24 14:22 libvirt, libxl and QDISKs David Scott
2013-04-24 15:55 ` Stefano Stabellini
2013-04-25 8:55 ` Ian Campbell
2013-04-25 10:36 ` George Dunlap
2013-04-25 11:33 ` Ian Campbell
2013-04-25 11:55 ` Stefano Stabellini
2013-04-25 11:57 ` Ian Campbell
2013-04-25 12:12 ` David Scott
2013-04-25 12:43 ` Ian Campbell
2013-04-25 13:22 ` David Scott
2013-04-25 13:56 ` Ian Campbell
2013-04-26 1:27 ` Jim Fehlig
2013-04-26 4:50 ` Jim Fehlig
2013-04-26 10:37 ` David Scott
2013-04-26 23:44 ` Jim Fehlig
[not found] ` <517B1170.4020300@suse.com>
2013-04-29 9:41 ` David Scott
2013-04-26 8:49 ` Ian Campbell
2013-04-26 10:10 ` Stefano Stabellini
2013-04-26 10:13 ` Ian Campbell
2013-04-26 10:28 ` Stefano Stabellini
2013-04-26 11:31 ` Marek Marczykowski
2013-04-26 11:40 ` Ian Campbell
2013-04-26 11:48 ` Stefano Stabellini
2013-04-26 13:27 ` Ian Campbell
2013-04-26 17:10 ` Stefano Stabellini
2013-04-29 8:23 ` Ian Campbell
2013-04-29 10:07 ` Stefano Stabellini
2013-04-26 11:50 ` Marek Marczykowski
2013-04-29 21:00 ` Jim Fehlig [this message]
2013-04-26 11:45 ` Stefano Stabellini
2013-04-26 14:36 ` Roger Pau Monné
2013-04-25 18:26 ` Sylvain Munaut
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=517EDF60.7000204@suse.com \
--to=jfehlig@suse.com \
--cc=Dave.Scott@eu.citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=marmarek@invisiblethingslab.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.