Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging
[qemu/kevin.git] / target-i386 / kvm-stub.c
blobcdf15061091df6c960bca738ea2f7fc05d597e7c
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 "qemu-common.h"
14 #include "cpu.h"
15 #include "kvm_i386.h"
17 bool kvm_allows_irq0_override(void)
19 return 1;
22 #ifndef __OPTIMIZE__
23 bool kvm_has_smm(void)
25 return 1;
28 /* This function is only called inside conditionals which we
29 * rely on the compiler to optimize out when CONFIG_KVM is not
30 * defined.
32 uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,
33 uint32_t index, int reg)
35 abort();
37 #endif