Merge tag 'v9.1.0'
[qemu/ar7.git] / target / i386 / kvm / hyperv-stub.c
blob3263dcf05d312636e46ae2769eef48bde4f56aa2
1 /*
2 * Stubs for CONFIG_HYPERV=n
4 * Copyright (c) 2015-2018 Virtuozzo International GmbH.
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
10 #include "qemu/osdep.h"
11 #include "hyperv.h"
13 #ifdef CONFIG_KVM
14 int kvm_hv_handle_exit(X86CPU *cpu, struct kvm_hyperv_exit *exit)
16 switch (exit->type) {
17 case KVM_EXIT_HYPERV_SYNIC:
18 if (!hyperv_feat_enabled(cpu, HYPERV_FEAT_SYNIC)) {
19 return -1;
23 * Tracking the changes in the MSRs is unnecessary as there are no
24 * users for them beside save/load, which is handled nicely by the
25 * generic MSR save/load code
27 return 0;
28 case KVM_EXIT_HYPERV_HCALL:
29 exit->u.hcall.result = HV_STATUS_INVALID_HYPERCALL_CODE;
30 return 0;
31 case KVM_EXIT_HYPERV_SYNDBG:
32 if (!hyperv_feat_enabled(cpu, HYPERV_FEAT_SYNDBG)) {
33 return -1;
36 return 0;
37 default:
38 return -1;
41 #endif
43 int hyperv_x86_synic_add(X86CPU *cpu)
45 return -ENOSYS;
48 void hyperv_x86_synic_reset(X86CPU *cpu)
52 void hyperv_x86_synic_update(X86CPU *cpu)
56 void hyperv_x86_set_vmbus_recommended_features_enabled(void)