aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2019-08-20 18:30:30 +0800
committerEduardo Habkost <ehabkost@redhat.com>2020-10-14 15:28:54 -0400
commit1a7655d53d0f6984624f3868125774a34456ca27 (patch)
tree34d1ea438a24c1f47af7e54e14c733870484cd63 /target
parent217baac12db1c1a43fa643d95ffa665a4c4877ce (diff)
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. 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>
Diffstat (limited to 'target')
-rw-r--r--target/i386/kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/kvm.c b/target/i386/kvm.c
index 8b12387d30..0098be7015 100644
--- a/target/i386/kvm.c
+++ b/target/i386/kvm.c
@@ -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) {