s390x/pv: Implement a CGS check helper
[qemu/kevin.git] / target / i386 / kvm / kvm-stub.c
blobe052f1c7b0ef25f5db673e5717bfe82c94807496
1 /*
2 * QEMU KVM x86 specific function stubs
4 * Copyright Linaro Limited 2012
6 * Author: Peter Maydell <peter.maydell@linaro.org>
8 * This work is licensed under the terms of the GNU GPL, version 2 or later.
9 * See the COPYING file in the top-level directory.
12 #include "qemu/osdep.h"
13 #include "cpu.h"
14 #include "kvm_i386.h"
16 #ifndef __OPTIMIZE__
17 bool kvm_has_smm(void)
19 return 1;
22 bool kvm_enable_x2apic(void)
24 return false;
27 /* This function is only called inside conditionals which we
28 * rely on the compiler to optimize out when CONFIG_KVM is not
29 * defined.
31 uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,
32 uint32_t index, int reg)
34 abort();
36 #endif
38 bool kvm_hv_vpindex_settable(void)
40 return false;
43 bool kvm_hyperv_expand_features(X86CPU *cpu, Error **errp)
45 abort();
48 void kvm_set_max_apic_id(uint32_t max_apic_id)
50 return;