From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ritu kaur Subject: Re: domU guest for xcp 0.1.1 Date: Fri, 12 Mar 2010 17:51:20 -0800 Message-ID: <29b32d341003121751s517ea28qbdb78e8cc69243ac@mail.gmail.com> References: <29b32d341003120910l5340bc01tcada3ca2adbaf763@mail.gmail.com> <20100312175135.GK1878@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0092553442==" Return-path: In-Reply-To: <20100312175135.GK1878@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0092553442== Content-Type: multipart/alternative; boundary=00032556501a6e012b0481a4e2d3 --00032556501a6e012b0481a4e2d3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Pasi. I looked at http://wiki.xensource.com/xenwiki/XenParavirtOps(myforay into linux is via xen, so please pardon by silly questions) Using Xen/paravirt_ops Building with domU support 1. Get a current kernel. The latest kernel.org kernel is generally a goo= d choice. 2. Configure as normal; you can start with your current .config file 3. If building 32 bit kernel make sure you have CONFIG_X86_PAE enabled (which is set by selecting CONFIG_HIGHMEM64G) - non-PAE mode doesn't work in 2.6.25, and has been dropped altogethe= r from 2.6.26 and newer kernel versions. 4. Enable these core options: 1. CONFIG_PARAVIRT_GUEST 2. CONFIG_XEN 5. And Xen pv device support 1. CONFIG_HVC_DRIVER and CONFIG_HVC_XEN 2. CONFIG_XEN_BLKDEV_FRONTEND 3. CONFIG_XEN_NETDEV_FRONTEND 6. And build as usual Config doesn't have pcifront in it? don't I need it for pci passthrough? I have copied linux 2.6.33 source from kernel.org and started building kernel(irrespective of above questions), but what distribution is this kernel associated with i.e I thought I should first install linux from a distribution and rebuild kernel for any modification, but in this case I don't understand what distribution this is associated with. Inputs much appreciated. Thanks On Fri, Mar 12, 2010 at 9:51 AM, Pasi K=E4rkk=E4inen wrote: > On Fri, Mar 12, 2010 at 09:10:31AM -0800, Ritu kaur wrote: > > Hi, > > > > I am expanding my question to developers forum to get some quick hel= p > on > > pci passthrough. I am using xcp 0.1.1 as a dom0 and installed Debian > Lenny > > as a domU(as mentioned in > > [1]http://wiki.xensource.com/xenwiki/Command_Line_Interface). > > Unfortunately, Debian Lenny which the wiki points to doesn't come wi= th > PV > > drivers(I need pcifront driver). I looked up in [2] > wiki.debian.org/Xen and > > I found following snippets > > > > /***The default Lenny kernel is the newer paravirt_ops version > (2.6.26), > > which does not function as a dom0 (except for the -xen variants, whi= ch > > have dom0 support but also some issues running as domU (please > clarify?). > > It will also not support PCI passthrough in a domU. For PCI > passthrough, > > you have to run the 2.6.18 etch kernel as both dom0 and domU. ***/ > > > > I don't know if there are pre-packaged kernels for lenny with pcifront > driver. > > Links to kernel sources that have the pcifront driver: > > - http://xenbits.xen.org/linux-2.6.18-xen.hg > - pv_ops xen.git xen/stable 2.6.32.9 and xen/master 2.6.31.6 > (See: http://wiki.xensource.com/xenwiki/XenParavirtOps) > - Kernels with the forward-ported Novell/opensuse Xen patches > (2.6.29, 2.6.31, 2.6.33) > (See: http://wiki.xensource.com/xenwiki/XenDom0Kernels) > > > Can someone let me know what domU has been tested with XCP 0.1.1 for > pci > > passthrough and any pointers to that domU kernel binary or source wi= ll > > help me out. > > > > Unfortunately I don't know what kernel has been tested. > > -- Pasi > > --00032556501a6e012b0481a4e2d3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Pasi. I looked at http://wiki.xensource.com/xenwiki/XenParavirtOps(my foray= into linux is via xen, so please pardon by silly questions)

Using=20 Xen/paravirt_ops

Building with domU support

  1. Get a curre= nt=20 kernel. The latest kernel.org kernel is = generally a good choice.
  2. =
  3. Configure as normal; you can start with your current .config file
  4. If building 32 bit kernel make sure you have CONFIG_X86_PAE enabled (which is set by selecting CONFIG_HIGHMEM64G)
    • non-PAE mode doesn't work in 2.6.25, and has been dropped altogether from 2.6.26 and newer kernel versions.
  5. Enable these core=20 options:
    1. CO= NFIG_PARAVIRT_GUEST
    2. CONFIG_XEN
  6. And Xen pv device=20 support
    1. CON= FIG_HVC_DRIVER and CONFIG_HVC_XEN
    2. C= ONFIG_XEN_BLKDEV_FRONTEND
    3. CONFIG_XEN_NETDEV_FR= ONTEND
  7. And build= =20 as usual
Config doesn't have pcifront in it? don't I need = it for pci passthrough? I have copied linux 2.6.33 source from kernel.org and started building kernel(irrespective o= f above questions), but what distribution is this kernel associated with i.= e I thought I should first install linux from a distribution and rebuild ke= rnel for any modification, but in this case I don't understand what dis= tribution this is associated with. Inputs much appreciated.

Thanks




On Fri, Mar 12, 20= 10 at 9:51 AM, Pasi K=E4rkk=E4inen <pasik@iki.fi> wrote:
On Fri, Mar 12, 2010 at 09:10:31AM -0800, Ritu kaur wrote= :
> =A0 =A0Hi,
>
> =A0 =A0I am expanding my question to developers forum to get some quic= k help on
> =A0 =A0pci passthrough. I am using xcp 0.1.1 as a dom0 and installed D= ebian Lenny
> =A0 =A0as a domU(as mentioned in
> =A0 =A0[1]http://wiki.xensource.com/xenwiki/Command_= Line_Interface).
> =A0 =A0Unfortunately, Debian Lenny which the wiki po= ints to doesn't come with PV
> =A0 =A0drivers(I need pcifront driver). I looked up in [2]wiki.debian.org/Xen = and
> =A0 =A0I found following snippets
>
> =A0 =A0/***The default Lenny kernel is the newer paravirt_ops version = (2.6.26),
> =A0 =A0which does not function as a dom0 (except for the -xen variants= , which
> =A0 =A0have dom0 support but also some issues running as domU (please = clarify?).
> =A0 =A0It will also not support PCI passthrough in a domU. For PCI pas= sthrough,
> =A0 =A0you have to run the 2.6.18 etch kernel as both dom0 and domU. *= **/
>

I don't know if there are pre-packaged kernels for lenny with pci= front driver.

Links to kernel sources that have the pcifront driver:

=A0 =A0 =A0 =A0- http://xenbits.xen.org/linux-2.6.18-xen.hg
=A0 =A0 =A0 =A0- pv_ops xen.git xen/stable 2.6.32.9 and xen/master 2.6.31.= 6
=A0 =A0 =A0 =A0 =A0(See: http://wiki.xensource.com/xenwiki/XenParavirt= Ops)
=A0 =A0 =A0 =A0- Kernels with the forward-ported Novell/opensuse Xen patch= es (2.6.29, 2.6.31, 2.6.33)
=A0 =A0 =A0 =A0 =A0(See: http://wiki.xensource.com/xenwiki/XenDom0Kern= els)

> =A0 =A0Can someone let me know what domU has been tested with XCP 0.1.= 1 for pci
> =A0 =A0passthrough and any pointers to that domU kernel binary or sour= ce will
> =A0 =A0help me out.
>

Unfortunately I don't know what kernel has been tested.

-- Pasi


--00032556501a6e012b0481a4e2d3-- --===============0092553442== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0092553442==--