Stefan Bauer
2008-Sep-21 16:19 UTC
[Xen-users] Re: Using suse xen patches with vanilla/gentoo kernel
Andrew Lyon schrieb:>>> I have managed to figure out the order that the patches are applied >>> in, and with few small changes I have got the OpenSuse Xen patches to >>> apply to 2.6.25-gentoo-r8 (2.6.25.15), so far the system has been >>> stable running 6 windows hvm''s and emerge -e world in dom0 for 24 >>> hours.Thanks again. I had a depper look into the suse sources and they offer a tool called guards which generates a list of required patches for the running arch in the right order. The following was taken from README.SUSE -------------%>------------------------------------- # Apply the patches $ for p in $(./guards $(./arch-symbols) < series.conf); do patch -d linux-2.6.25 -p1 < $p || break done -------------%>------------------------------------- So i piped that into a file, removed all further suse patches and cut also fixes and so on. result was a list with the required xen patches. As i took the latest 2.6.25 release from kernel.org with included patches, i had not have to apply the patches.kernel.org directory too. Regards -- stefan.bauer@cubewerk.de Cubewerk Tel +49 8621 996 02 37 IT-Beratung + Planung Tel +49 179 119 47 67 Verkauf von Hard und Software Fax +49 1212 511057903 Herzog-Otto-Straße 32 http://www.cubewerk.de 83308 Trostberg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tim Post
2008-Sep-21 16:54 UTC
Re: [Xen-users] Re: Using suse xen patches with vanilla/gentoo kernel
On Sun, 2008-09-21 at 18:19 +0200, Stefan Bauer wrote:> Thanks again. I had a depper look into the suse sources and they offer > a tool called guards which generates a list of required patches for > the running arch in the right order. > > The following was taken from README.SUSE > > -------------%>------------------------------------- > > # Apply the patches > > $ for p in $(./guards $(./arch-symbols) < series.conf); do > patch -d linux-2.6.25 -p1 < $p || break > done > > -------------%>------------------------------------- > > So i piped that into a file, removed all further suse patches and cut > also fixes and so on. result was a list with the required xen patches. > As i took the latest 2.6.25 release from kernel.org with included > patches, i had not have to apply the patches.kernel.org directory too.Thanks! I was just looking at how to apply them in the correct order. This is a very productive and helpful thread. Cheers, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexander Piavka
2008-Sep-21 20:02 UTC
Re: [Xen-users] Re: Using suse xen patches with vanilla/gentoo kernel
On Sun, 21 Sep 2008, Stefan Bauer wrote:> Andrew Lyon schrieb: >>>> I have managed to figure out the order that the patches are applied >>>> in, and with few small changes I have got the OpenSuse Xen patches to >>>> apply to 2.6.25-gentoo-r8 (2.6.25.15), so far the system has been >>>> stable running 6 windows hvm''s and emerge -e world in dom0 for 24 >>>> hours. > > Thanks again. I had a depper look into the suse sources and they offer > a tool called guards which generates a list of required patches for > the running arch in the right order. > > The following was taken from README.SUSE > > -------------%>------------------------------------- > > # Apply the patches > > $ for p in $(./guards $(./arch-symbols) < series.conf); do > patch -d linux-2.6.25 -p1 < $p || break > done > > -------------%>------------------------------------- > > So i piped that into a file, removed all further suse patches and cut > also fixes and so on. result was a list with the required xen patches.Could you please post your new truncated series.conf with the required xen patches which can be just applied to vanilla or gentoo kernel sources and ,of course, results in functional kernel? Thanks Alex> As i took the latest 2.6.25 release from kernel.org with included > patches, i had not have to apply the patches.kernel.org directory too. > > Regards > > > -- > stefan.bauer@cubewerk.de Cubewerk > Tel +49 8621 996 02 37 IT-Beratung + Planung > Tel +49 179 119 47 67 Verkauf von Hard und Software > Fax +49 1212 511057903 Herzog-Otto-Straße 32 > http://www.cubewerk.de 83308 Trostberg > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan Bauer
2008-Sep-22 16:46 UTC
Re: [Xen-users] Re: Using suse xen patches with vanilla/gentoo kernel
Alexander Piavka schrieb:>> So i piped that into a file, removed all further suse patches and cut >> also fixes and so on. result was a list with the required xen patches. > > Could you please post your new truncated series.conf with the required xen patches > which can be just applied to vanilla or gentoo kernel sources and ,of > course, results in functional kernel?Short summary: I fetched the suse src rpm as mentioned in my first post. I extract the files with alien -g rpmfile on my debian system. What i got was the whole directory structure. I supplied manually only the xen patches. At this time, i did not get any error while patching, so i thought it works but it did not! Even though i had no error messages during the patch process a make menuconfig gave me the following: drivers/xen/Kconfig:23:error: found recursive dependency: XEN_UNPRIVILEGED_GUEST -> ACPI -> NUMA -> ARCH_SPARSEMEM_ENABLE -> ARCH_SELECT_MEMORY_MODEL -> SELECT_MEMORY_MODEL -> DISCONTIGMEM -> NEED_MULTIPLE_NODES -> XEN -> XEN_UNPRIVILEGED_GUEST Any idea how to solve this easily? It seems that XEN_UNPRIVILEGED_GUEST depends on XEN and XEN by it''s own depends on UNPRIVILEGED GUEST. That might be wrong specified in the Kconfig file and get fixed by one of the suse patches. I have to admit that i did not invest much time to work that out. Help is greatly appreciated. To confirm that assumption, i applied all suse patches and xen boots without problems at all. Currently xen is up and running on my debian etch notebook with 2.6.25-16 kernel but with all patches included in the kernel tree. Regards -- stefan.bauer@cubewerk.de Cubewerk Tel +49 8621 996 02 37 IT-Beratung + Planung Tel +49 179 119 47 67 Verkauf von Hard und Software Fax +49 1212 511057903 Herzog-Otto-Straße 32 http://www.cubewerk.de 83308 Trostberg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users