Skip to content

Update xm-test to support new architectures

Tony Breeds xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest0 of 10 patches 4 repliesIn review
  2. v16 patches 21 repliesSuperseded

Patches in v3 No applies recorded yet

None of the 10 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [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.

---

.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(-)