]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cputest: Read more MSRs in cpu-data.py
authorJiri Denemark <jdenemar@redhat.com>
Thu, 6 Nov 2025 13:10:06 +0000 (14:10 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 7 Nov 2025 14:54:56 +0000 (15:54 +0100)
The features defined in our CPU map use quite a bit more than just the
two MSRs the script is currently trying to read. Let's read all of them
to get complete host CPU data.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/cputestdata/cpu-data.py

index 4d89cd6d5c9249372c4f382b45595aca20e363d9..9fc70506c7ed0fcb20eb8e5adb0d41e9e1e24c78 100755 (executable)
@@ -145,6 +145,15 @@ def gather_msr():
     addresses = [
         0x10a,  # IA32_ARCH_CAPABILITIES_MSR
         0xcf,   # IA32_CORE_CAPABILITY_MSR
+        0x480,  # MSR_IA32_VMX_BASIC
+        0x485,  # MSR_IA32_VMX_MISC
+        0x48b,  # MSR_IA32_VMX_PROCBASED_CTLS2
+        0x48c,  # MSR_IA32_VMX_EPT_VPID_CAP
+        0x48d,  # MSR_IA32_VMX_TRUE_PINBASED_CTLS
+        0x48e,  # MSR_IA32_VMX_TRUE_PROCBASED_CTLS
+        0x48f,  # MSR_IA32_VMX_TRUE_EXIT_CTLS
+        0x490,  # MSR_IA32_VMX_TRUE_ENTRY_CTLS
+        0x491,  # MSR_IA32_VMX_VMFUNC
     ]
     KVM_GET_MSRS = 0xc008ae88