-
Notifications
You must be signed in to change notification settings - Fork 36
KVM: Add DMR APX test cases #569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,21 +14,21 @@ | |
| disable_parallel_run = yes | ||
| pre_command = 'echo 0 > /proc/sys/kernel/nmi_watchdog && modprobe -r kvm_intel && modprobe kvm_intel enable_mediated_pmu=Y' | ||
| post_command = 'echo 1 > /proc/sys/kernel/nmi_watchdog && modprobe -r kvm_intel && modprobe kvm_intel' | ||
| test_scen = "tests_arch_pebs" | ||
| test_scen = "tests-arch_pebs" | ||
| - arch_perfmon_v6: | ||
| no tdvm | ||
| feature_dir_names = "pmu" | ||
| disable_parallel_run = yes | ||
| pre_command = 'echo 0 > /proc/sys/kernel/nmi_watchdog && modprobe -r kvm_intel && modprobe kvm_intel enable_mediated_pmu=Y' | ||
| post_command = 'echo 1 > /proc/sys/kernel/nmi_watchdog && modprobe -r kvm_intel && modprobe kvm_intel' | ||
| test_scen = "tests_arch_perfmon_v6" | ||
| test_scen = "tests-arch_perfmon_v6" | ||
|
||
| - 3_fix_counters: | ||
| no tdvm | ||
| feature_dir_names = "pmu" | ||
| disable_parallel_run = yes | ||
| pre_command = 'echo 0 > /proc/sys/kernel/nmi_watchdog && modprobe -r kvm_intel && modprobe kvm_intel enable_mediated_pmu=Y' | ||
| post_command = 'echo 1 > /proc/sys/kernel/nmi_watchdog && modprobe -r kvm_intel && modprobe kvm_intel' | ||
| test_scen = "tests_3fix_counters" | ||
| test_scen = "tests-3fix_counters" | ||
|
||
| - cmpccxadd: | ||
| feature_dir_names = "cmpccxadd" | ||
| - lam: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -28,6 +28,12 @@ | |||||
| cpuid = "24 0 0 0 b 16, 24 0 0 0 b 17, 24 0 0 0 b 18, 24 0 1 0 c 2, 24 0 0 0 b 0:7 2" | ||||||
| - apx: | ||||||
| features = "APX" | ||||||
| - apx_xsave: | ||||||
| # User-level APX XSAVE area: CPUID.(EAX=0xD, ECX=19) | ||||||
| cpuid = "d 0 0x13 0 a 0:31 128, d 0 0x13 0 b 0:31 960, d 0 0x13 0 c 0:31 0" | ||||||
|
||||||
| cpuid = "d 0 0x13 0 a 0:31 128, d 0 0x13 0 b 0:31 960, d 0 0x13 0 c 0:31 0" | |
| cpuid = "d 0 19 0 a 0:31 128, d 0 19 0 b 0:31 960, d 0 19 0 c 0:31 0" |
Copilot
AI
Apr 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The apx_feature_bits comment says CPUID.29.0:EBX[0:0] ... : 1, but the CPUID string sets EBX bit 0 to 0 (... b 0 ...). Update the CPUID encoding so EBX[0] is set to 1 (and keep EBX[1:31]=0) to match the documented expected feature bit.
| cpuid = "29 0 0 0 a 0:31 0, 29 0 0 0 b 0, 29 0 0 0 b 1:31 0, 29 0 0 0 c 0:31 0, 29 0 0 0 d 0:31 0" | |
| cpuid = "29 0 0 0 a 0:31 0, 29 0 0 0 b 0:0 1, 29 0 0 0 b 1:31 0, 29 0 0 0 c 0:31 0, 29 0 0 0 d 0:31 0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title is focused on adding DMR APX test cases, but this hunk changes
test_scennaming for PMU-related scenarios (PEBS / perfmon v6 / fix counters). If these renames are required, it would help to either (1) explain the linkage in the PR description, or (2) split these changes into a separate PR to keep the APX work isolated and easier to review/revert.