Skip to contentSkip to conversation

i386/kvm: fix build with CONFIG_HYPERV=n

PATCH New Vitaly Kuznetsov 1 participant 1 message Jun 24, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386/kvm: fix build with CONFIG_HYPERV=n

When switching from boolean properties to bits to represent Hyper-V enlightenments we forgot to update hyperv-stub.c for CONFIG_HYPERV=n builds.

Fixes 2d384d7c8361 ("i386/kvm: convert hyperv enlightenments properties from bools to bits")
---
 target/i386/hyperv-stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/hyperv-stub.c +1 -1
index fe548cbae2..0028527e79 100644
@@ -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;
         }
 
Signature · 1 line
2.20.1