memory in ubuntu_kvm_unit_tests fails (clflushopt / clwb ABSENT)

Bug #1831449 reported by Po-Hsu Lin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Triaged
Undecided
Unassigned
linux-kvm (Ubuntu)
Confirmed
Undecided
Unassigned
linux-oracle (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

 FAIL: clflushopt (ABSENT)
 FAIL: clwb (ABSENT)

Test output:

Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/memory'
 BUILD_HEAD=32db322d
 timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.SOyUkPCNxP -smp 1 -cpu max # -initrd /tmp/tmp.DiAWwvk2jC
 enabling apic
 PASS: clflush (present)
 PASS: sfence (present)
 PASS: lfence (present)
 PASS: mfence (present)
 FAIL: clflushopt (ABSENT)
 FAIL: clwb (ABSENT)
 PASS: invalid clwb
 PASS: pcommit (ABSENT)
 SUMMARY: 8 tests, 2 unexpected failures
 FAIL memory (8 tests, 2 unexpected failures)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Passed with Oracle Bionic 4.15

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Oops, spoke too soon.

This has passed with Oracle Bionic 4.15 on VM.DenseIO1.8, but failed on VM.DenseIO2.16

Po-Hsu Lin (cypressyew)
tags: added: 4.15 oracle ubuntu-kvm-unit-tests xenial
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Passed on VM.DenseIO1.8 and VM.Standard1.4 for Oracle B-4.15

summary: - memory in ubuntu_kvm_unit_tests failed on Oracle X-4.15
+ memory in ubuntu_kvm_unit_tests failed on Oracle X/B-4.15
Revision history for this message
Sean Feole (sfeole) wrote : Re: memory in ubuntu_kvm_unit_tests failed on Oracle X/B-4.15

see the same sort of failure on E-linux-kvm

12/09 11:58:32 DEBUG| utils:0116| Running 'kvm-ok'
12/09 11:58:32 DEBUG| utils:0153| [stdout] INFO: /dev/kvm exists
12/09 11:58:32 DEBUG| utils:0153| [stdout] KVM acceleration can be used
12/09 11:58:32 DEBUG| utils:0116| Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/memory'
12/09 11:58:32 DEBUG| utils:0153| [stdout] BUILD_HEAD=e2c275c4
12/09 11:58:32 DEBUG| utils:0153| [stdout] timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.YNkf1n3ucP -smp 1 -cpu host # -initrd /tmp/tmp.6LT1XGulTr
12/09 11:58:33 DEBUG| utils:0153| [stdout] enabling apic
12/09 11:58:33 DEBUG| utils:0153| [stdout] PASS: clflush (present)
12/09 11:58:33 DEBUG| utils:0153| [stdout] PASS: sfence (present)
12/09 11:58:33 DEBUG| utils:0153| [stdout] PASS: lfence (present)
12/09 11:58:33 DEBUG| utils:0153| [stdout] PASS: mfence (present)
12/09 11:58:33 DEBUG| utils:0153| [stdout] FAIL: clflushopt (ABSENT)
12/09 11:58:33 DEBUG| utils:0153| [stdout] FAIL: clwb (ABSENT)
12/09 11:58:33 DEBUG| utils:0153| [stdout] PASS: invalid clwb
12/09 11:58:33 DEBUG| utils:0153| [stdout] PASS: pcommit (ABSENT)
12/09 11:58:33 DEBUG| utils:0153| [stdout] SUMMARY: 8 tests, 2 unexpected failures
12/09 11:58:33 DEBUG| utils:0153| [stdout] FAIL memory (8 tests, 2 unexpected failures)
12/09 11:58:33 ERROR| test:0414| Exception escaping from test:

summary: - memory in ubuntu_kvm_unit_tests failed on Oracle X/B-4.15
+ memory in ubuntu_kvm_unit_tests fails
tags: added: 5.3 eoan linux-kvm
tags: added: sru-20191202
Changed in ubuntu-kernel-tests:
status: New → Triaged
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: memory in ubuntu_kvm_unit_tests fails

With 4.15.0-1037.41 Oracle
Failed with VM.Standard2.16
Passed with VM.Standard2.1

tags: added: sru-20200316
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

failed on Bionic/azure-4.15 : 4.15.0-1097.107 : amd64

tags: added: azure bionic sru-20200921
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Failed on Bionic/oracle : 5.4.0-1026.26~18.04.1 : amd64

tags: added: 5.4
tags: added: sru-20210104
Revision history for this message
Francis Ginther (fginther) wrote :

Seen with linux-oracle 4.15.0-1065.73~16.04.1.

tags: added: sru-20210125
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on 5.11.0-1009.9+21.10.1-kvm

 timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.RiE0Ijtuov -smp 1 -cpu max # -initrd /tmp/tmp.G3a4COl6Lh
 enabling apic
 PASS: clflush (present)
 PASS: sfence (present)
 PASS: lfence (present)
 PASS: mfence (present)
 FAIL: clflushopt (ABSENT)
 FAIL: clwb (ABSENT)
 PASS: invalid clwb
 PASS: pcommit (ABSENT)
 SUMMARY: 8 tests, 2 unexpected failures
 FAIL memory (8 tests, 2 unexpected failures)

tags: added: sru-20210531
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote : Re: memory in ubuntu_kvm_unit_tests fails (clflushopt / cwlb ABSENT)

Observed in H/KVM, cycle sru-20210531.

summary: - memory in ubuntu_kvm_unit_tests fails
+ memory in ubuntu_kvm_unit_tests fails (clflushopt / cwlb ABSENT)
tags: added: 5.11 hirsute kvm
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed in G/KVM, cycle sru-20210531.

tags: added: 5.8 groovy
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed in F/KVM, cycle sru-20210531.

tags: added: focal
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed in B/KVM, cycle sru-20210531.

Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed in T-4.15/Azure, cycle sru-20210531.

summary: - memory in ubuntu_kvm_unit_tests fails (clflushopt / cwlb ABSENT)
+ memory in ubuntu_kvm_unit_tests fails (clflushopt / clwb ABSENT)
tags: added: sru-20210621
tags: added: sru-20210719
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on H-kvm 5.11.0-1015.16

tags: added: sru-20210816
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-kvm (Ubuntu):
status: New → Confirmed
Changed in linux-oracle (Ubuntu):
status: New → Confirmed
tags: added: sru-20210906
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

When comparing the Focal 5.4 generic AMD64 kernel test output and Focal 5.4 KVM AMD64 kernel test output, you can see the generic kernel will pass with:

 PASS: clflush (present)
 PASS: sfence (present)
 PASS: lfence (present)
 PASS: mfence (present)
 PASS: clflushopt (ABSENT)
 PASS: clwb (ABSENT)
 PASS: invalid clwb
 PASS: pcommit (ABSENT)
 SUMMARY: 8 tests
 PASS memory (8 tests)

Instead the KVM kernel will fail with:
 FAIL: clflushopt (ABSENT)
 FAIL: clwb (ABSENT)

I wonder what's the difference here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.