Skip to contentSkip to conversation

i386/kvm: fix FEATURE_HYPERV_EDX value in hyperv_passthrough case

PATCH Applied Zhenyu Wang 2 participants 2 messages Aug 20, 2019 – Sep 18, 2020 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386/kvm: fix FEATURE_HYPERV_EDX value in hyperv_passthrough case

Fix typo to use correct edx value for FEATURE_HYPERV_EDX when hyperv_passthrough is enabled.

---
 target/i386/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/kvm.c +1 -1
index 2abc881324..101229bce4 100644
@@ -1152,7 +1152,7 @@ static int hyperv_handle_properties(CPUState *cs,
         if (c) {
             env->features[FEAT_HYPERV_EAX] = c->eax;
             env->features[FEAT_HYPERV_EBX] = c->ebx;
-            env->features[FEAT_HYPERV_EDX] = c->eax;
+            env->features[FEAT_HYPERV_EDX] = c->edx;
         }
         c = cpuid_find_entry(cpuid, HV_CPUID_ENLIGHTMENT_INFO, 0);
         if (c) {
Signature · 1 line
2.20.1
#1 lore raw
Quoted 4 lines · Zhenyu Wang

Fix typo to use correct edx value for FEATURE_HYPERV_EDX when hyperv_passthrough is enabled.

CCing other maintainers (please use ./scripts/get_maintainer.pl to make sure maintainers don't miss patches).

Queued, thanks!

Quoted 21 lines
---
 target/i386/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/kvm.c +1 -1
index 2abc881324..101229bce4 100644
@@ -1152,7 +1152,7 @@ static int hyperv_handle_properties(CPUState *cs,
         if (c) {
             env->features[FEAT_HYPERV_EAX] = c->eax;
             env->features[FEAT_HYPERV_EBX] = c->ebx;
-            env->features[FEAT_HYPERV_EDX] = c->eax;
+            env->features[FEAT_HYPERV_EDX] = c->edx;
         }
         c = cpuid_find_entry(cpuid, HV_CPUID_ENLIGHTMENT_INFO, 0);
         if (c) {
Signature · 1 line
2.20.1
Signature · 1 line
Eduardo