[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/9] i386/kvm: fix FEATURE_HYPERV_EDX value in hyperv_passthrough
From: |
Eduardo Habkost |
Subject: |
[PULL 2/9] i386/kvm: fix FEATURE_HYPERV_EDX value in hyperv_passthrough case |
Date: |
Thu, 15 Oct 2020 12:44:54 -0400 |
From: Zhenyu Wang <zhenyuw@linux.intel.com>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
--
2.28.0
- [PULL 0/9] x86 queue, 2020-10-15, Eduardo Habkost, 2020/10/15
- [PULL 1/9] i386: drop x86_cpu_get_supported_feature_word() forward declaration, Eduardo Habkost, 2020/10/15
- [PULL 8/9] cpu: Introduce CPU model deprecation API, Eduardo Habkost, 2020/10/15
- [PULL 3/9] target/i386: Remove core_id assert check in CPUID 0x8000001E, Eduardo Habkost, 2020/10/15
- [PULL 2/9] i386/kvm: fix FEATURE_HYPERV_EDX value in hyperv_passthrough case,
Eduardo Habkost <=
- [PULL 4/9] i386/kvm: Require KVM_CAP_IRQ_ROUTING, Eduardo Habkost, 2020/10/15
- [PULL 5/9] i386/kvm: Remove IRQ routing support checks, Eduardo Habkost, 2020/10/15
- [PULL 6/9] i386/kvm: Delete kvm_allows_irq0_override(), Eduardo Habkost, 2020/10/15
- [PULL 7/9] kvm: Correct documentation of kvm_irqchip_*(), Eduardo Habkost, 2020/10/15
- [PULL 9/9] i386: Mark Icelake-Client CPU models deprecated, Eduardo Habkost, 2020/10/15
- Re: [PULL 0/9] x86 queue, 2020-10-15, Peter Maydell, 2020/10/17