From 426c727ef617227b57a53dda22086e5cea90db94 Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Fri, 1 Mar 2024 17:46:05 +0000 Subject: [PATCH] make-flight: Keep using buster for L2 guest in nested tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When starting the installation of the L2 guest, L0 kills L1. Switching the L2 guest back to Debian Buster works fine, so do that to prevent regression in the test. Part of the logs from the host L0: > domain_crash called from arch/x86/hvm/vmx/vvmx.c:2770 > Domain 3 (vcpu#0) crashed on cpu#4: > d3v0 vmentry failure (reason 0x80000021): Invalid guest state (2) Signed-off-by: Anthony PERARD Acked-by: Roger Pau Monné --- make-flight | 15 ++++++++++++++- mfi-common | 5 +++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/make-flight b/make-flight index 155a0c1..d0c950b 100755 --- a/make-flight +++ b/make-flight @@ -360,6 +360,19 @@ do_hvm_debian_nested_tests () { xen-4.3-testing) return;; esac + local l2_runvar + case $guestsuite in + bookworm) + # Bookworm install image lead to a crash of l1, so keep using + # Buster's image. + l2_runvar=(l2_suite=buster) + l2_runvar+=(l2_image=$(usual_debianhvm_image amd64 buster)) + ;; + *) + l2_runvar=(l2_image=$(usual_debianhvm_image amd64)) + ;; + esac + for cpuvendor in amd intel; do job_create_test test-$xenarch$kern-$dom0arch$qemuu_suffix-nested-$cpuvendor \ @@ -368,7 +381,7 @@ do_hvm_debian_nested_tests () { l1_vifmodel='e1000' \ l1_memsize='3072' \ l1_enable_nestedhvm='true' \ - l2_image=$(usual_debianhvm_image amd64) \ + ${l2_runvar[@]} \ bios=$bios \ all_hostflags=$most_hostflags,hvm-$cpuvendor diff --git a/mfi-common b/mfi-common index 6dc3942..bbe714b 100644 --- a/mfi-common +++ b/mfi-common @@ -547,18 +547,19 @@ job_create_test () { usual_debianhvm_image () { local arch=$1; shift + local suite=${1:-$guestsuite} if [ -n "$DEBIAN_IMAGE_FILE" ]; then echo $DEBIAN_IMAGE_FILE return fi - local file=`getconfig DebianImageFile_${guestsuite}_${arch}` + local file=`getconfig DebianImageFile_${suite}_${arch}` if [ -n "$file" ]; then echo $file return fi local ver=$DEBIAN_IMAGE_VERSION if [ -z "$ver" ] ; then - ver=`getconfig DebianImageVersion_$guestsuite` + ver=`getconfig DebianImageVersion_$suite` fi echo debian-$ver-$arch-CD-1.iso } -- 2.39.5