qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH RFC v2 02/19] i386: fill in FEAT_HYPERV_EDX from edx instead of e


From: Vitaly Kuznetsov
Subject: [PATCH RFC v2 02/19] i386: fill in FEAT_HYPERV_EDX from edx instead of eax
Date: Wed, 30 Sep 2020 15:40:10 +0200

There was a typo which went unnoticed.

Fixes: e48ddcc6ce13 ("i386/kvm: implement 'hv-passthrough' mode")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
- Similar fix had been submitted at:                                            
                                                                                
                                                                              
https://lore.kernel.org/qemu-devel/20190820103030.12515-1-zhenyuw@linux.intel.com/
---
 target/i386/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/i386/kvm.c b/target/i386/kvm.c
index 9efb07e7c839..aa5dc562b697 100644
--- a/target/i386/kvm.c
+++ b/target/i386/kvm.c
@@ -1229,7 +1229,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) {
-- 
2.25.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]