kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: kvm@vger.kernel.org
Cc: drjones@redhat.com
Subject: [PATCH kvm-unit-tests] x86: mark KVM-only tests
Date: Tue, 16 Nov 2021 05:34:38 -0500	[thread overview]
Message-ID: <20211116103438.674714-1-pbonzini@redhat.com> (raw)

TCG does not emulate the PMU nor the intricacies of the VMware
backdoor I/O port.  Disable those tests unless running on KVM.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 x86/unittests.cfg | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x86/unittests.cfg b/x86/unittests.cfg
index 6585df4..efdc89a 100644
--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -178,12 +178,14 @@ extra_params = -cpu max,vendor=GenuineIntel
 file = pmu.flat
 extra_params = -cpu max
 check = /proc/sys/kernel/nmi_watchdog=0
+accel = kvm
 
 [pmu_lbr]
 file = pmu_lbr.flat
 extra_params = -cpu host,migratable=no
 check = /sys/module/kvm/parameters/ignore_msrs=N
 check = /proc/sys/kernel/nmi_watchdog=0
+accel = kvm
 
 [pmu_emulation]
 file = pmu.flat
@@ -191,12 +193,14 @@ arch = x86_64
 extra_params = -cpu max -append emulation
 check = /sys/module/kvm_intel/parameters/force_emulation_prefix=Y
 check = /proc/sys/kernel/nmi_watchdog=0
+accel = kvm
 
 [vmware_backdoors]
 file = vmware_backdoors.flat
 extra_params = -machine vmport=on -cpu max
 check = /sys/module/kvm/parameters/enable_vmware_backdoor=Y
 arch = x86_64
+accel = kvm
 
 [realmode]
 file = realmode.flat
-- 
2.27.0


                 reply	other threads:[~2021-11-16 10:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20211116103438.674714-1-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).