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-users

Re: [Xen-users] PV Drivers in Linux HVM DomU?

To: "Pasi Kärkkäinen" <pasik@xxxxxx>
Subject: Re: [Xen-users] PV Drivers in Linux HVM DomU?
From: "Emre Erenoglu" <erenoglu@xxxxxxxxx>
Date: Mon, 26 Nov 2007 18:48:12 +0100
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 26 Nov 2007 09:49:11 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=pzkSYXO+vUHX0gjA45SrxG1uEv0eBvV4hUyUy1mxQzU=; b=VqGQ1SeK7iPU54HFmexK+fm4uG66uQRUHrP3d44ijbZ9bf2yopSyiVscSSh8WOeZfYmoRo3sor60sazhYnTqDzAMzY8OWYJFWjlSFTgZAT5zq5Wxnqet40L7OmebCBChFPU8xemvU76z/nhu76+j/zpHxVe6S2Fm5/HZ7OZ4Sng=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=M7vncmTsBI2tBpjrdk24BTZGVUiIjXegv10ufwI8R3aagNF3yqbd8L45RNGYh1YVAZwBS0xxwSBy9Mi4QYGQXdXbHQwVoZX+O9H7YpGxYEnpeNbllJD/HRbeTA8i59yw7zu1w1tXEWoLyedv3mni/TesfL7EhE75y4SpViuHoLw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20071122143518.GC17677@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <fe9771a80711220447l11c4e824g27592fa3cc370378@xxxxxxxxxxxxxx> <20071122143518.GC17677@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Again,

I'm now running my domU as a HVM domU. I also downloaded the source of "unmodified drivers" from the xensource 3.1 repository.

However, I can't compile it, do you have an idea why? I'm attaching the output below (note that kernel itself compiles just fine). Some of t

voyager linux-2.6 # pwd
/d/xen/xen-3.1-testing.hg/unmodified_drivers/linux-2.6

voyager linux-2.6 # cat README
To build:

1. ./mkbuildtree
   NB. You can override paths to Xen sources and XenLinux sources via
       the XEN and XL environment variable.

2. make -C /path/to/kernel/source M=$PWD modules
   NB. The kernel sources here are your native kernel build tree, not
       the XenLinux sources referred to in step 1.

You get four modules, xen-platform-pci.ko, xenbus.ko, xen-vbd.ko, and
xen-vnif.ko.  Load xen-platform-pci first, then xenbus, and then
whichever of xen-vbd and xen-vnif you happen to need.

voyager linux-2.6 # make -C /usr/src/linux-2.6.18.8-86/ M=$PWD modules
make: `/usr/src/linux-2.6.18.8-86' entering directory
make[2]: *** Hedef `/d/xen/xen-3.1-testing.hg/unmodified_drivers/linux-2.6/balloon/balloon.o'  no rule to compile balloon.o, `/d/xen/xen-3.1-testing.hg/unmodified_drivers/linux-2.6/balloon/xen-balloon.o' is needed. stop.
make[1]: *** [/d/xen/xen-3.1-testing.hg/unmodified_drivers/linux-2.6/balloon] Error 2
make: *** [_module_/d/xen/xen- 3.1-testing.hg/unmodified_drivers/linux-2.6] Error 2
make: `/usr/src/linux-2.6.18.8-86' leaving directory
voyager linux-2.6 #

I translated some of the error messages from Turkish to English but I guess you'll get the point. What am I doing wrong? Should I first run the 1st step or not? As I'm in a HVM DomU, I don't see a reason to run the first step. If so, which sources shall I use for Xen, the sources in my dom0?

Didn't get it fully I guess...

Thanks a lot,

Emre


On Nov 22, 2007 3:35 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
On Thu, Nov 22, 2007 at 01:47:06PM +0100, Emre Erenoglu wrote:
> Hi,
>
> Is it possible to use HVM (full virtualization) for Linux guests but use PV
> drivers instead inside the DomU for extra performance?
>

Yes.

> What shall I do to be able to do it? Where can I download these drivers for
> several standard kernels? (HVM domU = standard distribution kernel,
> not-xen-aware)
>

You can download xen source tree and compile "unmodified drivers" from
there, or you can use the ones distributed with your distribution, if
available.

> Or, does the recent introduction of VMI into the linux kernel make this
> automatic for us? i.e. if I use any recent kernel, such as Ubuntu's
> 2.6.22-14-generic, will paravirtualized disk/network drivers be
> automatically activated?
>

VMI is VMware's interface to run paravirtual Linux on VMware. It doesn't
work or help at all with Xen.

If you're running paravirtual linux on xen, you already have paravirtualized
("full speed") drivers in use.

If you're using HVM domU on Xen, then you need to install Xen PV drivers on
domU.

-- Pasi



--
Emre Erenoglu
erenoglu@xxxxxxxxx
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users