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(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel