]> git.proxmox.com Git - mirror_qemu.git/commitdiff
i386/kvm: fix FEATURE_HYPERV_EDX value in hyperv_passthrough case
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 20 Aug 2019 10:30:30 +0000 (18:30 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 14 Oct 2020 19:28:54 +0000 (15:28 -0400)
Fix typo to use correct edx value for FEATURE_HYPERV_EDX when
hyperv_passthrough is enabled.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Message-Id: <20190820103030.12515-1-zhenyuw@linux.intel.com>
Fixes: e48ddcc6ce13 ("i386/kvm: implement 'hv-passthrough' mode")
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/kvm.c

index 8b12387d30af3bae79d411fd2ca5bba378a37674..0098be701511b8db4500b021cff877f9b7dc8ec2 100644 (file)
@@ -1214,7 +1214,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) {