Bug 216923 - kvm-unit-test pmu_pebs is skipped on SPR
Summary: kvm-unit-test pmu_pebs is skipped on SPR
Status: NEW
Alias: None
Product: Virtualization
Classification: Unclassified
Component: kvm (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: virtualization_kvm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-13 08:43 UTC by Yang Lixiao
Modified: 2023-01-31 01:38 UTC (History)
4 users (show)

See Also:
Kernel Version: 6.1
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Yang Lixiao 2023-01-13 08:43:00 UTC
Environment:
Platform: Intel(R) Xeon(R) Platinum 8487C (Sapphire Rapids)
CPU Architecture: x86_64
Host OS: Red Hat Enterprise Linux 9 (Ootpa)
Host kernel: Linux 6.1 release
gcc: gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
Host kernel source: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Branch: master
Commit: 830b3c68

Qemu source: https://git.qemu.org/git/qemu.git
Branch: master
Commit: 5204b499

kvm-unit-tests source: https://gitlab.com/kvm-unit-tests/kvm-unit-tests.git
Branch: master
Commit: 7cefda524604fe1138333315ce06224d4d864dab

Bug Detailed Description:
kvm-unit-test pmu_pebs is skipped on the linux 6.1 release kernel on Sapphire Rapids. PEBS should be supported on SPR. However, the kvm-unit-test pmu_pebs is skipped on SPR with linux 6.1 release kernel. In addition, kvm-unit-test pmu_pebs can pass on Ice Lake rather than being skipped. 


Reproducing Steps:

git clone https://gitlab.com/kvm-unit-tests/kvm-unit-tests.git
cd kvm-unit-tests
./configure
make standalone
cd tests
./pmu_pebs

Actual Result:
BUILD_HEAD=7cefda52
timeout -k 1s --foreground 90s /usr/local/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.6qzCjJnrIy -smp 1 -cpu host,migratable=no # -initrd /tmp/tmp.yEVIxAWSsB
enabling apic
smp: waiting for 0 APs
paging enabled
cr0 = 80010011
cr3 = 1007000
cr4 = 20
PMU version: 2
SKIP: PEBS not enumerated in PERF_CAPABILITIES
SUMMARY: 1 tests, 1 skipped
SKIP pmu_pebs (1 tests, 1 skipped)


Expected Result:
pmu_pebs successfully executed
Comment 1 Like Xu 2023-01-30 10:15:25 UTC
The guest PEBS support for Intel SPR are not merged.
20221109082802.27543-1-likexu@tencent.com
Comment 2 Yang Lixiao 2023-01-31 01:38:20 UTC
(In reply to Like Xu from comment #1)
> The guest PEBS support for Intel SPR are not merged.
> 20221109082802.27543-1-likexu@tencent.com

Thanks for the information! I'll test it after it's merged.

Note You need to log in before you can comment on or make changes to this bug.