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:24:02 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 13 May 2010 09:25:51 -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=DVjcMJKyXmUhKCCIDYa8sRxMJPey/Nvvu8TAxy3L9M8=; b=cJNaSO/2n2nQVfvmEbodlOJPApUD4A80caCGg0qOS12NwOxYsDFQtwU9SUC+1CtfFV woT4PcBMJGZaX4aSN7a8UIZGPKfL/zb0ZQlSaATVRDgujf2UJLcpOgRIqolFnmoHWd25 8eBWOtbpfUYfH2hgKZ1HyLYVrFE+y1HuihYik=
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=A/Mdjt7d2k2dW1x7Gf03stsDgtEpNbKae8sT9jG+evXP18pb88bMY71Kg8dsq58Hkz 6jTV3NN0aa3E8UF/n2Zey6Jzn1lL8+AztqTWgIDpKHq8Z/wXdEDc5sLo7zVjuS0XhHo+ kYTk7m6LH8+QDqqKaPuB5uvo+UTaifPW+nb7k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100513161724.GY17817@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> <AANLkTinf82gaovXKWJ_KDZ_gfL3esvJ7TQEmixhxgmkz@xxxxxxxxxxxxxx> <20100513161724.GY17817@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Fri, May 14, 2010 at 12:17 AM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
On Fri, May 14, 2010 at 12:10:28AM +0800, lei yang wrote:
>    On Thu, May 13, 2010 at 11:53 PM, Pasi Kärkkäinen <[1]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][2]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][3]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 [4]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
>

The exact same built binary *image* can be used for dom0 and domU.

When booting the same image as domU it won't have access to any of the
privileged (dom0) things, so having the CONFIG_XEN_DOM0 enabled doesn't matter.

 
 
It seems the patch for dom0 doesn't affect domU boot when use dom0 kernel for domU.
domU doesn't need that patch.
 
Lei
 
 
-- Pasi

>    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][5]kernel.org, which kernel config need to be opened for
>      >     pvops Xen domU,
>      >
>
>      You don't need a special config for upstream/[6]kernel.org pvops based
>      domU kernel.
>      You just need to enable the pvops Xen domU related options.
>      See: [7]http://wiki.xensource.com/xenwiki/XenParavirtOps
>
>      >
>      >    d.which kernel version is the latest one for dom0 kernel support, I
>      go to
>      >    [4][8]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][9]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.
>      See [10]http://wiki.xensource.com/xenwiki/XenParavirtOps for more
>      information.
>
>      >
>      >    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][11]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:[12]pasik@xxxxxx
>      >    2.
>      [13]http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.33-1.tar.bz2
>      >    3. [14]http://kernel.org/
>      >    4. [15]http://code.google.com/p/gentoo-xen-kernel/updates/list
>      >    5. [16]http://kernel.org/
>      >    6. [17]http://kernel.org/
>
>    --
>    "We learn from failure, not from success!"
>
> References
>
>    Visible links
>    1. mailto:pasik@xxxxxx
>    2. mailto:pasik@xxxxxx
>    3. http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.33-1.tar.bz2
>    4. http://wiki.xensource.com/xenwiki/XenDom0Kernels
>    7. http://wiki.xensource.com/xenwiki/XenParavirtOps
>    8. http://code.google.com/p/gentoo-xen-kernel/updates/list
>    9. http://kernel.org/
>   10. http://wiki.xensource.com/xenwiki/XenParavirtOps
>   11. http://kernel.org/
>   12. mailto:pasik@xxxxxx
>   13. http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.33-1.tar.bz2
>   14. http://kernel.org/
>   15. http://code.google.com/p/gentoo-xen-kernel/updates/list
>   16. http://kernel.org/
>   17. http://kernel.org/



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