]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu: x86: Group and order hyperv enlightenment features by leaf and register
authorPeter Krempa <pkrempa@redhat.com>
Tue, 8 Nov 2022 12:42:41 +0000 (13:42 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Nov 2022 13:08:30 +0000 (14:08 +0100)
'VIR_CPU_x86_HV_STIMER_DIRECT' is reported under leaf 0x40000003,
but the data is in the EDX register. Create a new group for such
features and move them after the 0x40000003 EAX group.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/cpu/cpu_x86.c

index d2560de4977c56af2ddd7db15498e1a72e8eca27..9a23271b693aa40d14823d7cfd80a6393e7e2880 100644 (file)
@@ -94,14 +94,16 @@ KVM_FEATURE_DEF(VIR_CPU_x86_HV_FREQUENCIES,
                 0x40000003, 0x00000800, 0x0);
 KVM_FEATURE_DEF(VIR_CPU_x86_HV_REENLIGHTENMENT,
                 0x40000003, 0x00002000, 0x0);
+
+KVM_FEATURE_DEF(VIR_CPU_x86_HV_STIMER_DIRECT,
+                0x40000003, 0x0, 0x00080000);
+
 KVM_FEATURE_DEF(VIR_CPU_x86_HV_TLBFLUSH,
                 0x40000004, 0x00000004, 0x0);
 KVM_FEATURE_DEF(VIR_CPU_x86_HV_IPI,
                 0x40000004, 0x00000400, 0x0);
 KVM_FEATURE_DEF(VIR_CPU_x86_HV_EVMCS,
                 0x40000004, 0x00004000, 0x0);
-KVM_FEATURE_DEF(VIR_CPU_x86_HV_STIMER_DIRECT,
-                0x40000003, 0x0, 0x00080000);
 
 static virCPUx86Feature x86_kvm_features[] =
 {