Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Xiaoyao Li <xiaoyao.li@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
	Sean Christopherson <seanjc@google.com>
Cc: kvm@vger.kernel.org, xiaoyao.li@intel.com
Subject: [kvm-unit-tests PATCH v2 1/2] x86: Make cet and lam tests KVM-only
Date: Tue, 29 Sep 2026 20:24:33 +0000	[thread overview]
Message-ID: <20260929202434.174501-2-xiaoyao.li@intel.com> (raw)
In-Reply-To: <20260929202434.174501-1-xiaoyao.li@intel.com>

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 <xiaoyao.li@intel.com>
---
 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


  reply	other threads:[~2026-09-29 13:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 20:24 [kvm-unit-tests PATCH v2 0/2] x86: Make ACCEL_PROPS work Xiaoyao Li
2026-09-29 20:24 ` Xiaoyao Li [this message]
2026-09-29 20:24 ` [kvm-unit-tests PATCH v2 2/2] x86/run: Use separate "-accel" option to configure the accelerator Xiaoyao Li
2026-09-30  0:52   ` Sean Christopherson
2026-09-30 14:49     ` Xiaoyao Li
2026-10-02 21:07 ` [kvm-unit-tests PATCH v2 0/2] x86: Make ACCEL_PROPS work Sean Christopherson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260929202434.174501-2-xiaoyao.li@intel.com \
    --to=xiaoyao.li@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=seanjc@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox