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 19:27:34 +0100
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 26 Nov 2007 10:28:25 -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=REDRJsku2nKU7CU4EWvglk63O4rdnQ6n8ryBiaLoHBg=; b=cuspZH7molh/3SSdrUN7S/+UDAozQ3gJ177oUmug8tKso/IHzDN4svFBLeVgN4MYO6TR2Fr2rf/ItgzX+xEVccEeV0DrG7BQfoOC/ow0pyTyBh5W7/Qz6+SE8uPd3B1ruBuzLXWNLXNDnJh75W5tsuRGfRWh6Mm1bfqyyx70mAM=
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=ragmH0pRZMp6Wz8d0extwnJaZS/zdYUd7nOn87X1UT8o3eXaXi9fj5fBn3PHMmSyu+X6NFq/Luzezbrb2HLQ+RRUlXjcyjlh/5m56nhdmUWWAKSGCFFdkBt9v0/rdJ1tLxNRn1UObfwnWk1IPAsQvj1F+B+qh3fA52UC9xj7+xo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <fe9771a80711260948ya140ec1g298eaee209db423c@xxxxxxxxxxxxxx>
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> <fe9771a80711260948ya140ec1g298eaee209db423c@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I think I'm starting to get it. I have to do both steps. Now I'm trying to download the sources for Xen and XenLinux from my Ubuntu repositories.

However, I can't understand the difference between "Xen Sources" and "XenLinux Sources" mentioned in the README. What are they?

Xen Sources = Hypervisor source code?
XenLinux sources = xen dom0 kernel?

Can anybody comment?

Emre

On Nov 26, 2007 6:48 PM, Emre Erenoglu < erenoglu@xxxxxxxxx> wrote:
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



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