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

Re: [Xen-devel] PV drivers on HVM using Xen 4.1.1

To: Alex Bligh <alex@xxxxxxxxxxx>
Subject: Re: [Xen-devel] PV drivers on HVM using Xen 4.1.1
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Thu, 27 Oct 2011 14:54:48 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 27 Oct 2011 06:55:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A853EEFF3A385ED3FA09E5F0@xxxxxxxxxxxx>
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: <A853EEFF3A385ED3FA09E5F0@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Thu, 27 Oct 2011, Alex Bligh wrote:
> I think I've found one reason why we can't get PV block drivers on HVM
> domUs working on Xen 4.1.1 - whether we use a pvops or a xenlinux
> domU kernel.
> 
> We are using a line like:
> 
>   disk = [ "tap:aio:/tmp/centos-pvd.img,xvda,w" ]

If this is an HVM guest, you should use hda here because you want to
make sure that an emulated IDE disk is created for you as well.
Also if /tmp/centos-pvd.img is a raw file, you might as well use file:
rather than tap:aio.


> We are using effectively a standard 3.0 kernel. Config options including
> the word XEN are below.
> 
> We do not see blktapctrl starting in Xen 4.1.1 dom0, but it does
> start in Xen3. In fact as far as I can tell the Ubuntu Xen4 package
> does not contain blktapctrl at all (which would explain why it doesn't
> start). Do we need this?
> 
> It has been suggested that we don't need this, but we do need a kernel
> module that provides blktap.
> 
>   http://www.vr.org/knowledgebase/1112/Xen-Paravirt-Ops.html
> 
> suggests these might be queued for the non-existent "2.6.40", but
> it's suggested these aren't in 3.0.
> 
>   http://wiki.xensource.com/xenwiki/XAPI_on_debian
> 
> suggests there are dmks modules available, but that blktap is currenly
> only 32 bit. Can that be correct?
> 
> Isn't this what blkback does?

blkback only works with block devices. You can still use blkback if you
configure a loop device:

losetup /dev/loop0 /tmp/centos-pvd.img

and then:

disk = [ "phy:/dev/loop0,hda,w" ]

However is not going to be very fast unfortunately.

As an alternative you could download and configure upstream qemu with
linux aio and then use it as device model or just block backend but
unfortunately it needs some hacking on 4.1 (on 4.2 is semi automated
now).

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