[PATCH RESEND 0/5] KVM: x86: selftests: Add Hygon CPUs support and fix failures

Zhiquan Li posted 5 patches 5 hours ago
.../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(-)
[PATCH RESEND 0/5] KVM: x86: selftests: Add Hygon CPUs support and fix failures
Posted by Zhiquan Li 5 hours ago
This series to add support for Hygon CPUs and fix 11 KVM selftest failures
on Hygon architecture.

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 hypercall
instruction 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 instruction of hypercall 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: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b

---
Re-send: rebase to v6.19

-- 
2.43.0