Skip to content

Add nested xen on xen test case

Robert Ho xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Add support of parsing grub which has 'submenu' primitiveOsstest/Debian.pm+36 -247 replies
2/12Increase boot timer to accomodate to nest testOsstest/TestSupport.pm+1 -13 replies
3/12Designate vif device model to e1000Osstest/TestSupport.pm+1 -12 replies
4/12Just some indentation adustments.Osstest/TestSupport.pm+2 -21 reply
5/12Add and expose some testsupport APIsOsstest/TestSupport.pm+12 -13 replies
6/12Manipulate $ho IP assignment for nest L2 situationOsstest/TestSupport.pm+5 -22 replies
7/12For hvm guest configuration, config console to 'hvc0'Osstest/TestSupport.pm+5 -12 replies
8/12Add test job for nest test casemake-flight+20 -01 reply
9/12Add build hvm job for nested test usemfi-common+8 -01 reply
10/12Compose the main body of test-nested test job.sg-run-job+8 -02 replies
11/12Changes on test step of debain hvm guest installts-debian-hvm-install+53 -1010 replies
12/12Changes to test step of xen installts-xen-install+79 -473 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH OSSTEST 00/12] Add nested xen on xen test case

This patch set adds nested HVM test case for osstest.
In this test case, a Xen hypervisor (L1) runs on top of another Xen hypervisor (L0).
Upon L1 hypervisor, we will then create a nested guest (L2), and test if the Linux guest can then be installed and run well. About nested Xen virtualization, refer to
http://wiki.xenproject.org/wiki/Nested_Virtualization_in_Xen.

In this test set, we add a build job 'build-amd64-hvm' to build hvm kernel for nest test steps use.

Test steps
0. run 'build-amd64' job and 'build-amd64-hvm', to prepare xen
installation
tarball and hvm guest kernel
1. run 'test-amd64-amd6-nested' job, it does following:
a. invoke test step of 'ts-debain-hvm-install' to install
a normal HVM guest
b. invoke test step of 'ts-xen-install' to install xen on
the normal guest, alter it into a L1 hypervisor
c. invoke test step of 'ts-debain-hvm-install' again, but
take the L1 hypervisor as host, install the L2 guest on it
d. invoke test step of 'ts-guest-destroy', clean up L2 guest.

This patch set reuses 'ts-debian-hvm-install' for both L1 host installation and L2 host installation, using 'nested' input param with value of 'nested_L1'
and 'nested_L1' to distinguish the 2 context.
It also reuses 'ts-xen-install' with 'nested' input param to differentiate L1
Xen installation from L0 Xen installation.
This patch series has been tested on test machines of amd64 arch, with hvm domain0 of Linux kernel 3.18.5, in standalone mode.

Robert Ho (12):
Add support of parsing grub which has 'submenu' primitive In nested test case, guest boot will take more time. Designate vif device model to e1000.
Just some indentation adustments.
Add and expose some testsupport APIs
Manipulate $ho IP assignment for nest L2 situation For hvm guest configuration, config console to 'hvc0' Add test job for nest test case.
Add build-debain-hvm build job.
Compose the main body of test-nested test job. Changes on test step of debain hvm guest install Changes to test step of xen install

Osstest/Debian.pm | 60 +++++++++++++++++++++++++++++++++-----------------------

 Osstest/TestSupport.pm |  34 ++++++++++++++++++++++++--------
 make-flight            |  20 +++++++++++++++++++
 mfi-common             |   8 ++++++++
 sg-run-job             |   8 ++++++++
 ts-debian-hvm-install  |  63 +++++++++++++++++++++++++++++++++++++++++++++++++----------
 ts-xen-install         | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------
 7 files changed, 230 insertions(+), 89 deletions(-)