From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: domU guest for xcp 0.1.1 Date: Sat, 13 Mar 2010 13:18:57 +0200 Message-ID: <20100313111857.GS1878@reaktio.net> References: <29b32d341003120910l5340bc01tcada3ca2adbaf763@mail.gmail.com> <20100312175135.GK1878@reaktio.net> <29b32d341003121751s517ea28qbdb78e8cc69243ac@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <29b32d341003121751s517ea28qbdb78e8cc69243ac@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ritu kaur Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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(my foray into li= nux is > via xen, so please pardon by silly questions) >=20 > Using Xen/paravirt_ops >=20 > Building with domU support >=20 > 1. Get a current kernel. The latest [2]kernel.org kernel is general= ly 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 enab= led > (which is set by selecting CONFIG_HIGHMEM64G) >=20 > * non-PAE mode doesn't work in 2.6.25, and has been dropped > altogether from 2.6.26 and newer kernel versions. >=20 > 4. Enable these core options: >=20 > 1. CONFIG_PARAVIRT_GUEST > 2. CONFIG_XEN >=20 > 5. And Xen pv device support >=20 > 1. CONFIG_HVC_DRIVER and CONFIG_HVC_XEN > 2. CONFIG_XEN_BLKDEV_FRONTEND > 3. CONFIG_XEN_NETDEV_FRONTEND >=20 > 6. And build as usual >=20 > Config doesn't have pcifront in it? don't I need it for pci passthro= ugh? I > have copied linux 2.6.33 source from [3]kernel.org and started build= ing > 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 m= uch > appreciated. >=20 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.org kern= el. -- Pasi > Thanks >=20 > On Fri, Mar 12, 2010 at 9:51 AM, Pasi K=E4rkk=E4inen <[4]pasik@iki.f= i> wrote: >=20 > 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 qu= ick > 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 varian= ts, > 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.= ***/ > > >=20 > I don't know if there are pre-packaged kernels for lenny with pcif= ront > driver. >=20 > Links to kernel sources that have the pcifront driver: >=20 > - [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 so= urce > will > > help me out. > > >=20 > Unfortunately I don't know what kernel has been tested. > -- Pasi >=20 > References >=20 > 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