Alex Bligh
2010-Apr-23 18:51 UTC
[Xen-users] Compiling pv drivers for Xen 3.3 for domU kernel 2.6.31, 2.6.32
I want to produce loadable modules for recent kernels that will have pv driver support for Xen3.3. Of course these kernels would run fine in domU with pvops were they running on a later Xen plus host kernel, but today''s task is to get them running on a standard Xen3.3 install without pvops support. Documentation, such as it is, suggests I need to pull down the kernel source and then compile. I get errors like these: $ make -C /home/amb/pvdrivers/linux-source-2.6.32 M=$PWD modules make: Entering directory `/home/amb/pvdrivers/linux-source-2.6.32'' make[2]: *** No rule to make target `/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/balloon/balloon.o'', needed by `/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/balloon/xen-balloon.o''. Stop. make[1]: *** [/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/balloon] Error 2 make: *** [_module_/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6] Error 2 make: Leaving directory `/home/amb/pvdrivers/linux-source-2.6.32'' I can copy .o files around, but eventually I get to the point where it tries to find blkfront.o, and there is no blkfront.c in my kernel source, nor within unmodified_drivers. Do I need to apply Xen patches to the source too, and if so where is the best place to get them from? unmodified_drivers from xenunstable does the same. -- Alex Bligh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fantu
2010-Apr-23 20:03 UTC
Re: [Xen-users] Compiling pv drivers for Xen 3.3 for domU kernel 2.6.31, 2.6.32
For .31 or new use pv_ops from vanilla git (for dom0 and domU support) http://wiki.xensource.com/xenwiki/XenParavirtOps Or vanilla mainstream (actual only domU support) http://kernel.org/ Alex Bligh wrote:> > I want to produce loadable modules for recent kernels that will have > pv driver support for Xen3.3. Of course these kernels would run > fine in domU with pvops were they running on a later Xen plus host > kernel, but today''s task is to get them running on a standard > Xen3.3 install without pvops support. > > Documentation, such as it is, suggests I need to pull down > the kernel source and then compile. I get errors like these: > > $ make -C /home/amb/pvdrivers/linux-source-2.6.32 M=$PWD modules > make: Entering directory `/home/amb/pvdrivers/linux-source-2.6.32'' > make[2]: *** No rule to make target > `/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/balloon/balloon.o'', > needed by > `/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/balloon/xen-balloon.o''. > Stop. > make[1]: *** > [/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/balloon] > Error 2 > make: *** > [_module_/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6] > Error 2 > make: Leaving directory `/home/amb/pvdrivers/linux-source-2.6.32'' > > I can copy .o files around, but eventually I get to the point where > it tries to find blkfront.o, and there is no blkfront.c in my kernel > source, nor within unmodified_drivers. Do I need to apply Xen patches to > the source too, and if so where is the best place to get them from? > > unmodified_drivers from xenunstable does the same. > > -- > Alex Bligh > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >-- View this message in context: http://old.nabble.com/Compiling-pv-drivers-for-Xen-3.3-for-domU-kernel-2.6.31%2C-2.6.32-tp28345090p28345759.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alex Bligh
2010-Apr-23 20:24 UTC
Re: [Xen-users] Compiling pv drivers for Xen 3.3 for domU kernel 2.6.31, 2.6.32
--On 23 April 2010 13:03:26 -0700 Fantu <fantonifabio@tiscali.it> wrote:> For .31 or new use pv_ops from vanilla git (for dom0 and domU support) > http://wiki.xensource.com/xenwiki/XenParavirtOps > Or vanilla mainstream (actual only domU support) http://kernel.org/My understanding is that pv_ops will not work with Xen3.3 + 2.6.18 dom0. The Xen installation I''m using is not - as I understand it - pv_ops capable. Or am I missing something? Alex> Alex Bligh wrote: >> >> I want to produce loadable modules for recent kernels that will have >> pv driver support for Xen3.3. Of course these kernels would run >> fine in domU with pvops were they running on a later Xen plus host >> kernel, but today''s task is to get them running on a standard >> Xen3.3 install without pvops support. >> >> Documentation, such as it is, suggests I need to pull down >> the kernel source and then compile. I get errors like these: >> >> $ make -C /home/amb/pvdrivers/linux-source-2.6.32 M=$PWD modules >> make: Entering directory `/home/amb/pvdrivers/linux-source-2.6.32'' >> make[2]: *** No rule to make target >> `/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/bal >> loon/balloon.o'', needed by >> `/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/bal >> loon/xen-balloon.o''. Stop. >> make[1]: *** >> [/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux-2.6/bal >> loon] Error 2 >> make: *** >> [_module_/home/amb/pvdrivers/xen-3.3-testing.hg/unmodified_drivers/linux >> -2.6] Error 2 >> make: Leaving directory `/home/amb/pvdrivers/linux-source-2.6.32'' >> >> I can copy .o files around, but eventually I get to the point where >> it tries to find blkfront.o, and there is no blkfront.c in my kernel >> source, nor within unmodified_drivers. Do I need to apply Xen patches to >> the source too, and if so where is the best place to get them from? >> >> unmodified_drivers from xenunstable does the same. >> >> -- >> Alex Bligh >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> >> > > -- > View this message in context: > http://old.nabble.com/Compiling-pv-drivers-for-Xen-3.3-for-domU-kernel-2. > 6.31%2C-2.6.32-tp28345090p28345759.html Sent from the Xen - User mailing > list archive at Nabble.com. > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >-- Alex Bligh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users