From 658d82c07e78eaa153991ca72326637a6cc6ce92 Mon Sep 17 00:00:00 2001 From: Frank Zhu Date: Thu, 10 Sep 2026 19:54:12 +0800 Subject: [PATCH] KVM: selftests: Extend Intel MSR_IA32_UCODE_REV quirk to Zhaoxin Zhaoxin CPUs use KVM's VMX backend and therefore observe the same KVM-defined initial value as Intel vCPUs. Update feature_msrs_test to expect 0x100000000ULL for Zhaoxin vCPUs. Signed-off-by: Frank Zhu Link: https://patch.msgid.link/20260910115414.3015260-8-ewanhai-oc@zhaoxin.com Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/x86/feature_msrs_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/x86/feature_msrs_test.c b/tools/testing/selftests/kvm/x86/feature_msrs_test.c index 158550701771..d56d0ddb3a57 100644 --- a/tools/testing/selftests/kvm/x86/feature_msrs_test.c +++ b/tools/testing/selftests/kvm/x86/feature_msrs_test.c @@ -59,7 +59,7 @@ static void test_feature_msr(u32 msr) * but initializes the vCPU's revision ID to an arbitrary value. */ if (msr == MSR_IA32_UCODE_REV) - reset_value = host_cpu_is_intel ? 0x100000000ULL : 0x01000065; + reset_value = host_cpu_is_intel_compatible ? 0x100000000ULL : 0x01000065; /* * For quirked MSRs, KVM's ABI is to initialize the vCPU's value to the -- knotmirror 0.0.1