Skip to contentSkip to conversation

Update xm-test to support new architectures

PATCH In review Tony Breeds 2 participants 5 messages Oct 20, 2006 – Oct 24, 2006

lore
Share & tools
lore
#0 lore raw

v3 cover 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.

---

.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(-)
#1 lore raw
Quoted 4 lines · Tony Breeds

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!

#2 lore raw
Quoted 9 lines · Tony Breeds
Quoted 4 lines · Tony Breeds

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.

#3 lore raw
Quoted 3 lines · Ewan Mellor

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.

Quoted 4 lines

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.

Quoted 1 line

I'll reply to patch 10 in a sec.

Thanks.

Quoted 2 lines

I'll push all these things when the new ramdisks are built and uploaded -- today, hopefully.

Excellent.

Quoted 4 lines

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!

#4 lore raw
Quoted 12 lines · Tony Breeds
Quoted 3 lines · Ewan Mellor

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.

Quoted 8 lines
Quoted 4 lines

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.

Quoted 9 lines

Either way includeing the architecture in the initrd is nice.

Quoted 1 line

I'll reply to patch 10 in a sec.

Thanks.

Quoted 2 lines

I'll push all these things when the new ramdisks are built and uploaded -- today, hopefully.

Quoted 8 lines

Excellent.

Quoted 4 lines

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.