From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Citrix VHD implementation
Date: Mon, 2 Mar 2009 11:55:50 +0000 [thread overview]
Message-ID: <20090302115550.GF15108@redhat.com> (raw)
In-Reply-To: <49ABC5E5.3070107@eu.citrix.com>
On Mon, Mar 02, 2009 at 11:41:25AM +0000, Stefano Stabellini wrote:
> Philipp Schmid wrote:
>
> > Hi,
> >
> > as some of you might know, citrix has open sourced the library they
> > use to read and write to VHD disk images.
> >
> > I'm trying to implementing a block-vhd driver on top of libvhd, but my
> > C knowledge is very limited as I haven't written any code in C for a
> > long time.
> >
> > What I already have is a git repo with the libvhd code extracted from
> > the xen-unstable tree with the blocktap2 patches applied.
> > libvhd also comes with vhd-util, a utility to create and modify vhd
> > images.
> > I have only tried to compile it on ubuntu 8.10, so it might not work
> > on your system.
> >
> > The git repo is hosted on github: http://github.com/schmidp/libvhd/tree/master
> >
> > Are there any docs about how to implement a block driver for qemu?
> > As far as I have seen from the qemu code, block_int.h defines the
> > interface and you register your driver in block.c, but that is all
> > I've found out so far.
> >
> > I will try to implement a synchrones driver first as it seems more
> > simple...
>
> Why don't you just use blktap2 to create a raw device from the vhd file
> and then open the raw device in qemu?
There is no blktap unless you have Xen userspace and the Xen kernel
installed. Having a native vhd QEMU driver would avoid the need to
install Xen just to use VHD format images under non-Xen QEMU/KVM.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
next prev parent reply other threads:[~2009-03-02 11:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-28 18:56 [Qemu-devel] Citrix VHD implementation Philipp Schmid
2009-03-02 11:41 ` Stefano Stabellini
2009-03-02 11:55 ` Daniel P. Berrange [this message]
2009-03-02 14:18 ` Anthony Liguori
2009-03-02 17:41 ` Kevin Wolf
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=20090302115550.GF15108@redhat.com \
--to=berrange@redhat.com \
--cc=qemu-devel@nongnu.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.