From: Zhenyu Wang Date: Tue, 20 Aug 2019 10:30:30 +0000 (+0800) Subject: i386/kvm: fix FEATURE_HYPERV_EDX value in hyperv_passthrough case X-Git-Tag: v5.2.0-rc0~51^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a7655d53d0f6984624f3868125774a34456ca27;p=thirdparty%2Fqemu.git 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 Message-Id: <20190820103030.12515-1-zhenyuw@linux.intel.com> Fixes: e48ddcc6ce13 ("i386/kvm: implement 'hv-passthrough' mode") Signed-off-by: Eduardo Habkost --- diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 8b12387d30a..0098be70151 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) {