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] How to build a PV domU kernel

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-users] How to build a PV domU kernel
From: lei yang <yanglei.fage@xxxxxxxxx>
Date: Fri, 14 May 2010 00:10:28 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 13 May 2010 09:12:01 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=vLFnfTccYf25K7lH73XPjSOda608Sq1ThmC6J4Ps72Y=; b=Q/tyG9i8qF94ycegLbiW3/ionm34PYZbeAo/lMWBFqArdi+gO+1voLZhmt+mP2N+Q1 tAMyd6tzSbQUF02QCBN1ekYZownBgLuDGKKDpsc8d1A7ICKxHuYNTwkWbLpNoqG1b1nx W4VWDObIYNMFIbRgmzM2NwhOGZyAALLGybnWA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Spm3M11TFR2t+gWRHENFcZyZVeIU368BDU/swHcWUcSjJlxXXyQ8bUhHdLr3fxls/o jBBzZm7z9JcfBnVj8lj7BAnb5xXzvXV6PBKktNLjvi8qMMkhjDHQOl5ZiL9qY8K7uoYS cxZkNm4EGbTGQx6IJep7+4TgVEQIKBzyZOiHg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100513155319.GW17817@xxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTilMkCHWq7x3zN_DEZgFlVhlKCor4FmK_zT1-exF@xxxxxxxxxxxxxx> <20100513123338.GD17817@xxxxxxxxxxx> <AANLkTikLv5ZFUviF8nuzeuZwsB1mcIxGE_BSRk6qRFL8@xxxxxxxxxxxxxx> <20100513155319.GW17817@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Thu, May 13, 2010 at 11:53 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
On Thu, May 13, 2010 at 11:47:03PM +0800, lei yang wrote:
>    On Thu, May 13, 2010 at 8:33 PM, Pasi Kärkkäinen <[1]pasik@xxxxxx> wrote:
>
>      On Thu, May 13, 2010 at 11:13:00AM +0800, lei yang wrote:
>      >    Hi All,
>      >
>      >    I download a xen 4.0.0, after I run "make world" I got a 2.6.33.1
>      kernel,
>      >    it should be a kernel for Dom0, my question is " how to get a domU
>      kernel
>      >    for 2.6.33.1"
>      >
>
>      The same kernel can be used also for domU.
>
>
>    a.I'm confused by this in the readme of xen4.0.0, I saw we can get domU
>    with "   KERNELS="linux-2.6-xen0 linux-2.6-xenU"" when run "make", and I
>    got two kernel one is for dom0, anther is domU, the size of dom0 is bigger
>    than domU, do you mean we can ignor this(KERNELS="linux-2.6-xen0
>    linux-2.6-xenU), just use one dom0 kernel for domU?
>

Those options are required for building the linux-2.6.18-xen based "old" xenlinux kernels.
If you don't specify KERNELS= at all, and only use "make world", it'll build you a pvops kernel.

>    b. if I saw some document, they tell "the dom0 need the patch for xen "
>    eg:wget
>    [2]http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.33-1.tar.bz2
>    , my question is "does domU kernel need this patch?
>

If you want to build a Xenlinux based domU kernel, then you need that patch.
pvops kernels don't require that patch.

See http://wiki.xensource.com/xenwiki/XenDom0Kernels for more information.
That says Dom0Kernels, but it also applies for domU kernels.

 
do you mean the Dom0 kernel *image* can be used for DomU? one quick quesion here"
dom0 enabled CONFIG_XEN_DOM0=y , if we use dom0 kernel image for domU, do we need to disable this CONFIG_XEN_DOM0
 
Thanks
Lei
 
 
You can see the two different types described there (Xenlinux and pvops).

>
>    c.if domU does not use that patch, and I download a kernel from
>    [3]kernel.org, which kernel config need to be opened for
>     pvops Xen domU,
>

You don't need a special config for upstream/kernel.org pvops based domU kernel.
You just need to enable the pvops Xen domU related options.
>    d.which kernel version is the latest one for dom0 kernel support, I go to
>    [4]http://code.google.com/p/gentoo-xen-kernel/updates/list , I find the
>    latest patch for dom0 is xen-patches-2.6.33-1.tar.bz2, does it mean the
>    *official* latest one is 2.6.33? and how about domU,which is the
>    latest kernel version for domU, I think it may be the latest one in
>    [5]kernel.org(2.6.43-r6)
>

The latest Xenlinux patches are for 2.6.33, yes.
I'd recommend using 2.6.32 instead, since that's the long term supported kernel,
and it's picked up by multiple Linux distros.

Also the latest recommended pvops based dom0 kernel is 2.6.32,
it's available in Jeremy's xen.git xen/stable-2.6.32.x branch.
>    Sorry to ask for so many quesion, I'm new to xen
>

No problems.

-- Pasi

>    Thanks
>    Lei
>
>
>
>
>
>      Or then you can grab a kernel from [6]kernel.org and build it with pvops
>      Xen domU support
>      enabled.
>
>      Or you can get any of the other xenlinux source trees.
>      -- Pasi
>
>    --
>    "We learn from failure, not from success!"
>
> References
>
>    Visible links
>    1. mailto:pasik@xxxxxx
>    2. http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.33-1.tar.bz2
>    3. http://kernel.org/
>    4. http://code.google.com/p/gentoo-xen-kernel/updates/list
>    5. http://kernel.org/
>    6. http://kernel.org/



--
"We learn from failure, not from success!"
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users