From 1b9eb990c6b7a0e4a31b2ff86222a3970e0b94b4 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 8 Nov 2022 13:42:41 +0100 Subject: [PATCH] cpu: x86: Group and order hyperv enlightenment features by leaf and register MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit '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 Reviewed-by: Ján Tomko --- src/cpu/cpu_x86.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index d2560de497..9a23271b69 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -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[] = { -- 2.47.2