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

On Fri, May 14, 2010 at 12:24:02AM +0800, lei yang wrote:
>    On Fri, May 14, 2010 at 12:17 AM, Pasi Kärkkäinen <[1]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][2]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][3]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][4]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][5]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.
> 

I'm not sure which patch you're talking about here..

Anyway, upstream kernel.org kernels run as Xen PV guests without any additional
patches, using the Linux pvops framework.

-- Pasi


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