From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ritu kaur Subject: Re: domU guest for xcp 0.1.1 Date: Sat, 13 Mar 2010 08:09:36 -0800 Message-ID: <29b32d341003130809u49d1edcas234fdca4c3d70ed@mail.gmail.com> References: <29b32d341003120910l5340bc01tcada3ca2adbaf763@mail.gmail.com> <20100312175135.GK1878@reaktio.net> <29b32d341003121751s517ea28qbdb78e8cc69243ac@mail.gmail.com> <20100313111857.GS1878@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0359337520==" Return-path: In-Reply-To: <20100313111857.GS1878@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 --===============0359337520== Content-Type: multipart/alternative; boundary=000e0cd242a0d2c6330481b0dfe9 --000e0cd242a0d2c6330481b0dfe9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks again. As I understand from wiki page, Jeremy's xen.git and xen/stable code are for building dom0 kernel. Can dom0 kernel be used as a domU? At least last time I checked I was told I cannot use it. Thanks On Sat, Mar 13, 2010 at 3:18 AM, Pasi K=E4rkk=E4inen wrote: > On Fri, Mar 12, 2010 at 05:51:20PM -0800, Ritu kaur wrote: > > Thanks Pasi. I looked at > > [1]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 [2]kernel.org kernel is > generally a > > good choice. > > 2. Configure as normal; you can start with your current .config fil= e > > 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 > > altogether 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 [3]kernel.org and started > building > > kernel(irrespective of above questions), but what distribution is th= is > > kernel associated with i.e I thought I should first install linux fr= om > a > > distribution and rebuild kernel for any modification, but in this ca= se > I > > don't understand what distribution this is associated with. Inputs > much > > appreciated. > > > > You need to check out Jeremy's xen.git, and possibly xen/stable branch fr= om > there, > to have the pcifront driver. It's not yet in the upstream kernel.orgkerne= l. > > -- Pasi > > > Thanks > > > > On Fri, Mar 12, 2010 at 9:51 AM, Pasi K=E4rkk=E4inen <[4]pasik@iki.f= i> > 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 > > help on > > > pci passthrough. I am using xcp 0.1.1 as a dom0 and installed > > Debian Lenny > > > as a domU(as mentioned in > > > [1][5]http://wiki.xensource.com/xenwiki/Command_Line_Interfac= e > ). > > > Unfortunately, Debian Lenny which the wiki points to doesn't > come > > with PV > > > drivers(I need pcifront driver). I looked up in > > [2][6]wiki.debian.org/Xen and > > > I found following snippets > > > > > > /***The default Lenny kernel is the newer paravirt_ops versio= n > > (2.6.26), > > > which does not function as a dom0 (except for the -xen > variants, > > which > > > have dom0 support but also some issues running as domU (pleas= e > > 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: > > > > - [7]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: [8]http://wiki.xensource.com/xenwiki/XenParavirtOps= ) > > - Kernels with the forward-ported Novell/opensuse Xen patch= es > > (2.6.29, 2.6.31, 2.6.33) > > (See: [9]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 > > will > > > help me out. > > > > > > > Unfortunately I don't know what kernel has been tested. > > -- Pasi > > > > References > > > > Visible links > > 1. http://wiki.xensource.com/xenwiki/XenParavirtOps(my > > 2. http://kernel.org/ > > 3. http://kernel.org/ > > 4. mailto:pasik@iki.fi > > 5. http://wiki.xensource.com/xenwiki/Command_Line_Interface > > 6. http://wiki.debian.org/Xen > > 7. http://xenbits.xen.org/linux-2.6.18-xen.hg > > 8. http://wiki.xensource.com/xenwiki/XenParavirtOps > > 9. http://wiki.xensource.com/xenwiki/XenDom0Kernels > --000e0cd242a0d2c6330481b0dfe9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks again. As I understand from wiki page, Jeremy's xen.git and xen/= stable code are for building dom0 kernel. Can dom0 kernel be used as a domU= ? At least last time I checked I was told I cannot use it.

Thanks
On Sat, Mar 13, 2010 at 3:18 AM, Pasi K=E4rk= k=E4inen <pasik@iki.fi= > wrote:
On Fri, Mar 12, 2010 at 05:51:20PM -0800, Ritu kaur wrote= :
> =A0 =A0Thanks Pasi. I looked at
> =A0 =A0[1]http://wiki.xensource.com/xenwiki/XenParavirt= Ops(my foray into linux is
> =A0 =A0via xen, so please pardon by silly questions)=
>
> Using Xen/paravirt_ops
>
> =A0 Building with domU support
>
> =A0 =A0 1. Get a current kernel. The latest [2]kernel.org kernel is generally a
> =A0 =A0 =A0 =A0good choice.
> =A0 =A0 2. Configure as normal; you can start with your current .confi= g file
> =A0 =A0 3. If building 32 bit kernel make sure you have CONFIG_X86_PAE= enabled
> =A0 =A0 =A0 =A0(which is set by selecting CONFIG_HIG= HMEM64G)
>
> =A0 =A0 =A0 =A0 =A0 * non-PAE mode doesn't work in 2.6.25, and has= been dropped
> =A0 =A0 =A0 =A0 =A0 =A0 altogether from 2.6.26 and newer kernel versio= ns.
>
> =A0 =A0 4. Enable these core options:
>
> =A0 =A0 =A0 =A0 =A01. CONFIG_PARAVIRT_GUEST
> =A0 =A0 =A0 =A0 =A02. CONFIG_XEN
>
> =A0 =A0 5. And Xen pv device support
>
> =A0 =A0 =A0 =A0 =A01. CONFIG_HVC_DRIVER and CONFIG_HVC_XEN
> =A0 =A0 =A0 =A0 =A02. CONFIG_XEN_BLKDEV_FRONTEND
> =A0 =A0 =A0 =A0 =A03. CONFIG_XEN_NETDEV_FRONTEND
>
> =A0 =A0 6. And build as usual
>
> =A0 =A0Config doesn't have pcifront in it? don't I need it for= pci passthrough? I
> =A0 =A0have copied linux 2.6.33 source from [3]kernel.org and started building
> =A0 =A0kernel(irrespective of above questions), but = what distribution is this
> =A0 =A0kernel associated with i.e I thought I should first install lin= ux from a
> =A0 =A0distribution and rebuild kernel for any modification, but in th= is case I
> =A0 =A0don't understand what distribution this is associated with.= Inputs much
> =A0 =A0appreciated.
>

You need to check out Jeremy's xen.git, and possibly xen/stable b= ranch from there,
to have the pcifront driver. It's not yet in the upstream kernel.org kernel.

-- Pasi

> =A0 =A0Thanks
>
> =A0 =A0On Fri, Mar 12, 2010 at 9:51 AM, Pasi K=E4rkk=E4inen <[4]pasik@iki.fi> wrote:
>
> =A0 =A0 =A0On Fri, Mar 12, 2010 at 09:10:31AM -0800, Ritu kaur wrote:<= br> > =A0 =A0 =A0> =A0 =A0Hi,
> =A0 =A0 =A0>
> =A0 =A0 =A0> =A0 =A0I am expanding my question to developers forum = to get some quick
> =A0 =A0 =A0help on
> =A0 =A0 =A0> =A0 =A0pci passthrough. I am using xcp 0.1.1 as a dom0= and installed
> =A0 =A0 =A0Debian Lenny
> =A0 =A0 =A0> =A0 =A0as a domU(as mentioned in
> =A0 =A0 =A0> =A0 =A0[1][5]http://wiki.xensource.c= om/xenwiki/Command_Line_Interface).
> =A0 =A0 =A0> =A0 =A0Unfortunately, Debian Lenny w= hich the wiki points to doesn't come
> =A0 =A0 =A0with PV
> =A0 =A0 =A0> =A0 =A0drivers(I need pcifront driver). I looked up in=
> =A0 =A0 =A0[2][6]wiki.debian.org/Xen and
> =A0 =A0 =A0> =A0 =A0I found following snippets > =A0 =A0 =A0>
> =A0 =A0 =A0> =A0 =A0/***The default Lenny kernel is the newer parav= irt_ops version
> =A0 =A0 =A0(2.6.26),
> =A0 =A0 =A0> =A0 =A0which does not function as a dom0 (except for t= he -xen variants,
> =A0 =A0 =A0which
> =A0 =A0 =A0> =A0 =A0have dom0 support but also some issues running = as domU (please
> =A0 =A0 =A0clarify?).
> =A0 =A0 =A0> =A0 =A0It will also not support PCI passthrough in a d= omU. For PCI
> =A0 =A0 =A0passthrough,
> =A0 =A0 =A0> =A0 =A0you have to run the 2.6.18 etch kernel as both = dom0 and domU. ***/
> =A0 =A0 =A0>
>
> =A0 =A0 =A0I don't know if there are pre-packaged kernels for lenn= y with pcifront
> =A0 =A0 =A0driver.
>
> =A0 =A0 =A0Links to kernel sources that have the pcifront driver:
>
> =A0 =A0 =A0 =A0 =A0 =A0 - [7]http://xenbits.xen.org/linux-2.6.18-x= en.hg
> =A0 =A0 =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 =A0 =A0 (See: [8]http://wiki.xensource.c= om/xenwiki/XenParavirtOps)
> =A0 =A0 =A0 =A0 =A0 =A0 - Kernels with the forward-p= orted Novell/opensuse Xen patches
> =A0 =A0 =A0(2.6.29, 2.6.31, 2.6.33)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 (See: [9]http://wiki.xensource.c= om/xenwiki/XenDom0Kernels)
> =A0 =A0 =A0> =A0 =A0Can someone let me know what = domU has been tested with XCP 0.1.1
> =A0 =A0 =A0for pci
> =A0 =A0 =A0> =A0 =A0passthrough and any pointers to that domU kerne= l binary or source
> =A0 =A0 =A0will
> =A0 =A0 =A0> =A0 =A0help me out.
> =A0 =A0 =A0>
>
> =A0 =A0 =A0Unfortunately I don't know what kernel has been tested.=
> =A0 =A0 =A0-- Pasi
>
> References
>
> =A0 =A0Visible links
> =A0 =A01. http://wiki.xensource.com/xenwiki/XenParavirtOps(my=
> =A0 =A02. http://kern= el.org/
> =A0 =A03. http://kern= el.org/
> =A0 =A04. mailto:pasik@iki.fi
> =A0 =A05. http://wiki.xensource.com/xenwiki/Command_Line_I= nterface
> =A0 =A06. htt= p://wiki.debian.org/Xen
> =A0 =A07. http://xenbits.xen.org/linux-2.6.18-xen.hg
> =A0 =A08. http://wiki.xensource.com/xenwiki/XenParavirtOps
> =A0 =A09. http://wiki.xensource.com/xenwiki/XenDom0Kernels

--000e0cd242a0d2c6330481b0dfe9-- --===============0359337520== 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 --===============0359337520==--