[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] hyperv-stub: Remove invalid reference to hyperv_syn
From: |
Christophe de Dinechin |
Subject: |
[Qemu-devel] [PATCH] hyperv-stub: Remove invalid reference to hyperv_synic |
Date: |
Wed, 26 Jun 2019 17:27:03 +0200 |
In commit 2d384d7c8 "i386/kvm: convert hyperv enlightenments
properties from bools to bits", the hyperv_synic member was removed
from struct X86CPU. The change was not applied to hyperv-stub.c,
breaking the build for specific "lightweight" configurations.
Signed-off-by: Christophe de Dinechin <address@hidden>
---
target/i386/hyperv-stub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/hyperv-stub.c b/target/i386/hyperv-stub.c
index fe548cbae2..0028527e79 100644
--- a/target/i386/hyperv-stub.c
+++ b/target/i386/hyperv-stub.c
@@ -15,7 +15,7 @@ int kvm_hv_handle_exit(X86CPU *cpu, struct kvm_hyperv_exit
*exit)
{
switch (exit->type) {
case KVM_EXIT_HYPERV_SYNIC:
- if (!cpu->hyperv_synic) {
+ if (!hyperv_feat_enabled(cpu, HYPERV_FEAT_SYNIC)) {
return -1;
}
--
2.21.0
- [Qemu-devel] [PATCH] hyperv-stub: Remove invalid reference to hyperv_synic,
Christophe de Dinechin <=