]>
Commit | Line | Data |
---|---|---|
1d31f66b PM |
1 | /* |
2 | * QEMU KVM x86 specific function stubs | |
3 | * | |
4 | * Copyright Linaro Limited 2012 | |
5 | * | |
6 | * Author: Peter Maydell <peter.maydell@linaro.org> | |
7 | * | |
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. | |
10 | * | |
11 | */ | |
b6a0aa05 | 12 | #include "qemu/osdep.h" |
33c11879 | 13 | #include "cpu.h" |
1d31f66b PM |
14 | #include "kvm_i386.h" |
15 | ||
16 | bool kvm_allows_irq0_override(void) | |
17 | { | |
18 | return 1; | |
19 | } | |
2140cfa5 PM |
20 | |
21 | #ifndef __OPTIMIZE__ | |
355023f2 PB |
22 | bool kvm_has_smm(void) |
23 | { | |
24 | return 1; | |
25 | } | |
26 | ||
fb506e70 RK |
27 | bool kvm_enable_x2apic(void) |
28 | { | |
29 | return false; | |
30 | } | |
31 | ||
2140cfa5 PM |
32 | /* This function is only called inside conditionals which we |
33 | * rely on the compiler to optimize out when CONFIG_KVM is not | |
34 | * defined. | |
35 | */ | |
36 | uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function, | |
37 | uint32_t index, int reg) | |
38 | { | |
39 | abort(); | |
40 | } | |
41 | #endif | |
e9688fab RK |
42 | |
43 | bool kvm_hv_vpindex_settable(void) | |
44 | { | |
45 | return false; | |
46 | } |