Passing "-enable-kvm" in qemu_params forces tests to run with kvm accelerator. This leads cet and lam tests to run with kvm accelerator silently without any warning even when "ACCEL=tcg" is passed. Change to require "accel = kvm" for cet and lam tests so that they can be skipped: SKIP cet (kvm only, but ACCEL=tcg) SKIP lam (kvm only, but ACCEL=tcg) when "ACCEL=tcg" is passed. As a bouns, removing the use of "-enable-kvm" will allow pass $ACCEL and $ACCEL_PROPS to the standalone "-accel" QEMU parameter, since QEMU translates "-enable-kvm" to "-machine accel=kvm", which is not compatbile with "-accel" parameter: qemu: The -accel and "-machine accel=" options are incompatible Signed-off-by: Xiaoyao Li --- x86/unittests.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x86/unittests.cfg b/x86/unittests.cfg index ae731a93dc7a..afc0f7128c03 100644 --- a/x86/unittests.cfg +++ b/x86/unittests.cfg @@ -535,9 +535,11 @@ groups = tsx-ctrl file = cet.flat arch = x86_64 smp = 2 -qemu_params = -enable-kvm -m 2048 -cpu host +accel = kvm +qemu_params = -m 2048 -cpu host [lam] file = lam.flat arch = x86_64 -qemu_params = -enable-kvm -cpu max +accel = kvm +qemu_params = -cpu max -- 2.53.0