From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Ho Subject: [PATCH OSSTEST 00/12] Add nested xen on xen test case Date: Wed, 11 Feb 2015 17:52:09 +0800 Message-ID: <1423648341-203755-1-git-send-email-robert.hu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, jfehlig@suse.com, Robert Ho , longtaox.pang@intel.com List-Id: xen-devel@lists.xenproject.org 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(-)