From 7646a32f429c7f124bb24c8516b84586029290f2 Mon Sep 17 00:00:00 2001 From: Xudong Hao Date: Tue, 31 Mar 2026 14:05:17 +0800 Subject: [PATCH 1/2] KVM: Add DMR APX test cases Signed-off-by: Xudong Hao --- KVM/qemu/x86_cpuid.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/KVM/qemu/x86_cpuid.cfg b/KVM/qemu/x86_cpuid.cfg index 2eaf318d..b99cf83f 100644 --- a/KVM/qemu/x86_cpuid.cfg +++ b/KVM/qemu/x86_cpuid.cfg @@ -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" + - apx_feature_bits: + # CPUID.29.0:EBX[0:0] APX_NCI_NDD_NF: 1 + 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" # CWF - sha512: features = "SHA512" From b722c67fbdd58b08f9dcc122696f1cd7e7cb99dc Mon Sep 17 00:00:00 2001 From: Xudong Hao Date: Wed, 1 Apr 2026 11:06:30 +0800 Subject: [PATCH 2/2] Rename tests_* to tests-* in pmu fodler Signed-off-by: Xudong Hao --- BM/pmu/{tests_3fix_counters => tests-3fix_counters} | 0 BM/pmu/{tests_arch_pebs => tests-arch_pebs} | 0 BM/pmu/{tests_arch_perfmon_v6 => tests-arch_perfmon_v6} | 0 BM/pmu/{tests_cwf => tests-cwf} | 0 BM/pmu/{tests_dmr => tests-dmr} | 0 BM/pmu/{tests_gnr => tests-gnr} | 0 KVM/qemu/feature_test.cfg | 6 +++--- 7 files changed, 3 insertions(+), 3 deletions(-) rename BM/pmu/{tests_3fix_counters => tests-3fix_counters} (100%) rename BM/pmu/{tests_arch_pebs => tests-arch_pebs} (100%) rename BM/pmu/{tests_arch_perfmon_v6 => tests-arch_perfmon_v6} (100%) rename BM/pmu/{tests_cwf => tests-cwf} (100%) rename BM/pmu/{tests_dmr => tests-dmr} (100%) rename BM/pmu/{tests_gnr => tests-gnr} (100%) diff --git a/BM/pmu/tests_3fix_counters b/BM/pmu/tests-3fix_counters similarity index 100% rename from BM/pmu/tests_3fix_counters rename to BM/pmu/tests-3fix_counters diff --git a/BM/pmu/tests_arch_pebs b/BM/pmu/tests-arch_pebs similarity index 100% rename from BM/pmu/tests_arch_pebs rename to BM/pmu/tests-arch_pebs diff --git a/BM/pmu/tests_arch_perfmon_v6 b/BM/pmu/tests-arch_perfmon_v6 similarity index 100% rename from BM/pmu/tests_arch_perfmon_v6 rename to BM/pmu/tests-arch_perfmon_v6 diff --git a/BM/pmu/tests_cwf b/BM/pmu/tests-cwf similarity index 100% rename from BM/pmu/tests_cwf rename to BM/pmu/tests-cwf diff --git a/BM/pmu/tests_dmr b/BM/pmu/tests-dmr similarity index 100% rename from BM/pmu/tests_dmr rename to BM/pmu/tests-dmr diff --git a/BM/pmu/tests_gnr b/BM/pmu/tests-gnr similarity index 100% rename from BM/pmu/tests_gnr rename to BM/pmu/tests-gnr diff --git a/KVM/qemu/feature_test.cfg b/KVM/qemu/feature_test.cfg index c4824e4b..9bd358fe 100644 --- a/KVM/qemu/feature_test.cfg +++ b/KVM/qemu/feature_test.cfg @@ -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: