Tony Breeds
2006-Oct-20 03:19 UTC
[XenPPC] [PATCH 0/10][TOOLS][XM-TEST] [v3] Update xm-test to support new architectures
Hi All, These patches update the xm-test code to be more easily portable to new architecture. This focus of this endeavor is PPC but I believe that IA64 also benefits. Patch summary: 1: Instead of using a dated snapshot (which no longer exists) use buildroot-snapshot. 2: Remove hardcoded references to i386. 3: Rename configs/buildroot -> configs/buildroot-i386 and update Makefiles. 4: Update .hgignore to remove noise from the initrd building process 5: Refactor the XmTestLib and XmTestReport code to encapsulate all platform variations in one place. 6: Add powerpc definitions. 7: Allow inspection of boot buffers. Check for BUG()s and the like if wanted. 8: Update .hgignore 9: Treat the "extra" config item as special and always append to it. Needed for PPC, as the console is passed via the kernel command line. 10: Fix memory assumptions. Several of the create tests have ideas about minimal memory footprints, correct these assumptions. I''ve tested these patches on PPC and x86_32 with no regressions. With patches 1-6 applied it''s simple enough to build a initrd for powerpc on and i386 machine: -=-=- cd .../tools/xm-test ./autogen ./configure cd ramdisk make BR_ARCH=powerpc -=-=- As discussed previously it''d be great if an initrd and buildroot tarball could be hosted on xensource. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> --- .hgignore | 10 tools/xm-test/lib/XmTestLib/Console.py | 5 tools/xm-test/lib/XmTestLib/XenDomain.py | 76 -- tools/xm-test/lib/XmTestLib/arch.py | 148 ++++ tools/xm-test/lib/XmTestReport/OSReport.py | 10 tools/xm-test/lib/XmTestReport/arch.py | 48 + tools/xm-test/ramdisk/Makefile.am | 13 tools/xm-test/ramdisk/configs/buildroot | 330 --------- tools/xm-test/ramdisk/configs/buildroot-i386 | 330 +++++++++ tools/xm-test/ramdisk/configs/buildroot-powerpc | 334 ++++++++++ tools/xm-test/tests/create/11_create_concurrent_pos.py | 2 tools/xm-test/tests/create/12_create_concurrent_stress_pos.py | 11 tools/xm-test/tests/create/14_create_blockroot_pos.py | 11 tools/xm-test/tests/create/15_create_smallmem_pos.py | 4 tools/xm-test/tests/create/16_create_smallmem_neg.py | 12 15 files changed, 923 insertions(+), 421 deletions(-) _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@lists.xensource.com http://lists.xensource.com/xen-ppc-devel
Tony Breeds
2006-Oct-23 04:55 UTC
[Xen-devel] Re: [XenPPC] [PATCH 0/10][TOOLS][XM-TEST] [v3] Update xm-test to support new architectures
On Fri, Oct 20, 2006 at 01:19:55PM +1000, Tony Breeds wrote:> Hi All, > These patches update the xm-test code to be more easily portable > to new architecture. This focus of this endeavor is PPC but I believe > that IA64 also benefits.Hi Ewan, Any feedback on these patches, or an idea if when/if they''ll be merged? Yours Tony linux.conf.au http://linux.conf.au/ || http://lca2007.linux.org.au/ Jan 15-20 2007 The Australian Linux Technical Conference! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2006-Oct-23 10:48 UTC
[Xen-devel] Re: [XenPPC] [PATCH 0/10][TOOLS][XM-TEST] [v3] Update xm-test to support new architectures
On Mon, Oct 23, 2006 at 02:55:28PM +1000, Tony Breeds wrote:> On Fri, Oct 20, 2006 at 01:19:55PM +1000, Tony Breeds wrote: > > Hi All, > > These patches update the xm-test code to be more easily portable > > to new architecture. This focus of this endeavor is PPC but I believe > > that IA64 also benefits. > > Hi Ewan, > Any feedback on these patches, or an idea if when/if they''ll be > merged?Patches 3 - 9 look OK. Rather than take 1 and 2 directly, I''ve reworked that bit of the build system as we discussed, so that xm-test.xensource.com will host a known-good version of the buildroot source. I''ve also changed things so that the initrd gets the architecture in the name, so that make existing continues to work (your patches don''t add "make existing" support for PPC, AFAIK). I''ll reply to patch 10 in a sec. I''ll push all these things when the new ramdisks are built and uploaded -- today, hopefully. xm-test has deserved its One Point Oh for a long time now, so I''ll be bumping the version number too. Thanks for all your hard work, Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tony Breeds
2006-Oct-23 23:52 UTC
Re: [Xen-devel] Re: [XenPPC] [PATCH 0/10][TOOLS][XM-TEST] [v3] Update xm-test to support new architectures
On Mon, Oct 23, 2006 at 11:48:54AM +0100, Ewan Mellor wrote:> Patches 3 - 9 look OK. Rather than take 1 and 2 directly,?I''ve reworked that > bit of the build system as we discussed, so that xm-test.xensource.com will > host a known-good version of the buildroot source.Great. I included them for the sake of completeness, and to take the urgency off you updateing xm-test.xensource.com. :) Also if you have any difficulty building a cross compiled initrd for PPC give me a yell.> I''ve also changed things > so that the initrd gets the architecture in the name, so that make existing > continues to work (your patches don''t add "make existing" support for PPC, > AFAIK).What make you think that "make existing" wont work, I''ve been doing INITRD=http://localhost/xm-test/ make existing quite often with no problems, or is that not what you meant. Either way includeing the architecture in the initrd is nice.> I''ll reply to patch 10 in a sec.Thanks.> I''ll push all these things when the new ramdisks are built and uploaded -- > today, hopefully.Excellent.> xm-test has deserved its One Point Oh for a long time now, so I''ll be bumping > the version number too. > > Thanks for all your hard work,You''re welcome, all I did was build on the work of the xm-test authors. Yours Tony linux.conf.au http://linux.conf.au/ || http://lca2007.linux.org.au/ Jan 15-20 2007 The Australian Linux Technical Conference! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2006-Oct-24 07:10 UTC
Re: [Xen-devel] Re: [XenPPC] [PATCH 0/10][TOOLS][XM-TEST] [v3] Update xm-test to support new architectures
On Tue, Oct 24, 2006 at 09:52:54AM +1000, Tony Breeds wrote:> On Mon, Oct 23, 2006 at 11:48:54AM +0100, Ewan Mellor wrote: > > > Patches 3 - 9 look OK. Rather than take 1 and 2 directly,?I''ve reworked that > > bit of the build system as we discussed, so that xm-test.xensource.com will > > host a known-good version of the buildroot source. > > Great. I included them for the sake of completeness, and to take the > urgency off you updateing xm-test.xensource.com. :) > > Also if you have any difficulty building a cross compiled initrd for PPC > give me a yell. > > > I''ve also changed things > > so that the initrd gets the architecture in the name, so that make existing > > continues to work (your patches don''t add "make existing" support for PPC, > > AFAIK). > > What make you think that "make existing" wont work, I''ve been doing > INITRD=http://localhost/xm-test/ make existing > quite often with no problems, or is that not what you meant.Egads! You can just copy the ramdisk in place you know ;-) No, what I meant was that "make existing" using the reference to xm-test.xensource.com is going to get you an i386 initrd, not a PPC one.> Either way includeing the architecture in the initrd is nice. > > > I''ll reply to patch 10 in a sec. > > Thanks. > > > I''ll push all these things when the new ramdisks are built and uploaded -- > > today, hopefully. > > Excellent. > > > xm-test has deserved its One Point Oh for a long time now, so I''ll be bumping > > the version number too. > > > > Thanks for all your hard work, > > You''re welcome, all I did was build on the work of the xm-test authors.Yeah, it''s good work all round. Thanks again to everyone involved, Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel