On Mon, Apr 03, 2023, Thomas Huth wrote: > Two of the sub-tests are currently failing in the Fedora KVM job > on Cirrus-CI: > > FAIL: clflushopt (ABSENT) > FAIL: clwb (ABSENT) > > Looks like the features have been marked as disabled in the L0 host, > while the hardware supports them. Since neither VMX nor SVM have > intercept controls for the instructions, KVM has no way to enforce the > guest's CPUID model, so this test is failing now in this environment. > There's not much we can do here except for disabling the test here. > > Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx> > --- > ci/cirrus-ci-fedora.yml | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/ci/cirrus-ci-fedora.yml b/ci/cirrus-ci-fedora.yml > index 918c9a36..c83aff46 100644 > --- a/ci/cirrus-ci-fedora.yml > +++ b/ci/cirrus-ci-fedora.yml > @@ -35,7 +35,6 @@ fedora_task: > ioapic > ioapic-split > kvmclock_test > - memory What if we fix the test by making it TCG-only? None of the other instructions in the test have intercepts, i.e. will also fail if the instructions are supported in bare metal but not the test VM. An alternative would be to force emulation when using KVM, but KVM doesn't currently emulating pcommit (deprecated by Intel), clwb, or any of the fence instructions (at least, not afaict; I'm somewhat surprised *fence isn't "required"). diff --git a/x86/unittests.cfg b/x86/unittests.cfg index f324e32d..5afb5dad 100644 --- a/x86/unittests.cfg +++ b/x86/unittests.cfg @@ -185,6 +185,7 @@ arch = x86_64 [memory] file = memory.flat +accel = tcg extra_params = -cpu max arch = x86_64