From 1de1b975be97340ece33356430add3837f5eaae1 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 14 Dec 2023 22:26:45 +0100 Subject: tests: childhurd: Prefer “-cpu max” over “-cpu host”. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “-cpu host” can sometimes, for unclear reasons, lead to this error from QEMU 8.1.1: qemu-system-x86_64: CPU model 'host' requires KVM or HVF This commit fixes it. Inspired by . * gnu/tests/virtualization.scm (run-childhurd-test)[test]: Prefer “-cpu max” over “-cpu host”. Change-Id: I11a8a68bb0532fe1f3fd2c34b4a7a5fdb7bccb57 --- gnu/tests/virtualization.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/tests/virtualization.scm') diff --git a/gnu/tests/virtualization.scm b/gnu/tests/virtualization.scm index ef4b130334..f3655f1d8a 100644 --- a/gnu/tests/virtualization.scm +++ b/gnu/tests/virtualization.scm @@ -298,10 +298,10 @@ (define test (ice-9 match)) (define marionette - ;; Emulate the host CPU so that KVM is available inside as well - ;; ("nested KVM"), provided + ;; Emulate as much as the host CPU supports so that, possibly, KVM + ;; is available inside as well ("nested KVM"), provided ;; /sys/module/kvm_intel/parameters/nested (or similar) allows it. - (make-marionette (list #$vm "-cpu" "host"))) + (make-marionette (list #$vm "-cpu" "max"))) (test-runner-current (system-test-runner #$output)) (test-begin "childhurd") -- cgit v1.2.3