[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260120091449.526798-1-zhiquan_li@163.com>
Date: Tue, 20 Jan 2026 17:14:43 +0800
From: Zhiquan Li <zhiquan_li@....com>
To: seanjc@...gle.com,
pbonzini@...hat.com,
shuah@...nel.org
Cc: kvm@...r.kernel.org,
linux-kernel@...r.kernel.org,
zhiquan_li@....com
Subject: [PATCH 0/5] KVM: x86: selftests: Add Hygon CPUs support and fix failures
This series to add support for Hygon CPUs and fix some test failures.
Patch 1 add CPU vendor detection for Hygon and add a global variable
"host_cpu_is_hygon" to identify if the test is running on a Hygon CPU.
It is the prerequisite for the following fixes.
Patch 2 fix x86/fix_hypercall_test test failure by altering the instruction
of hypercall on Hygon CPUs.
Patch 3 fix following test failures by avoiding using the reserved memory
regions on Hygon CPUs.
- access_tracking_perf_test
- demand_paging_test
- dirty_log_perf_test
- dirty_log_test
- kvm_page_table_test
- memslot_modification_stress_test
- pre_fault_memory_test
- x86/dirty_log_page_splitting_test
Patch 4 fix x86/pmu_event_filter_test test failure by allowing the tests
for Hygon CPUs.
Patch 5 fix x86/msrs_test test failure by fixing the expectation while
writing the MSR_TSC_AUX reserved bits without RDPID support.
Zhiquan Li (5):
KVM: x86: selftests: Add CPU vendor detection for Hygon
KVM: x86: selftests: Alter the hypercall instruction on Hygon
KVM: x86: selftests: Avoid failures due to reserved memory address
regions on Hygon
KVM: x86: selftests: Allow the PMU event filter test for Hygon
KVM: x86: selftests: Fix write MSR_TSC_AUX reserved bits test failure
on Hygon
.../selftests/kvm/include/x86/processor.h | 6 +++++
.../testing/selftests/kvm/lib/x86/processor.c | 12 ++++++---
.../selftests/kvm/x86/fix_hypercall_test.c | 2 +-
tools/testing/selftests/kvm/x86/msrs_test.c | 26 +++++++++++++++----
.../selftests/kvm/x86/pmu_event_filter_test.c | 6 ++---
5 files changed, 39 insertions(+), 13 deletions(-)
base-commit: 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
--
2.43.0
Powered by blists - more mailing lists