i386/kvm: fix FEATURE_HYPERV_EDX value in hyperv_passthrough case
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.
Signed-off-by Zhenyu Wang <[email protected]>
--- target/i386/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/kvm.c +1 -1
@@ -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
Eduardo Habkost
AppliedQuoted 4 lines · Zhenyu Wang
Fix typo to use correct edx value for
FEATURE_HYPERV_EDXwhenhyperv_passthroughis enabled.Signed-off-by Zhenyu Wang <[email protected]>
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@@ -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