diff --git a/target/i386/hyperv-stub.c b/target/i386/hyperv-stub.c index fe548cbae2f1b51ffdcb881d13b41bf741ae61a8..0028527e79774a4e99d54602bf87d8ad7819eb0c 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; }