]> git.proxmox.com Git - mirror_qemu.git/blame - target-i386/kvm-stub.c
Merge remote-tracking branch 'sstabellini/tags/xen-20161122-tag' into staging
[mirror_qemu.git] / target-i386 / kvm-stub.c
CommitLineData
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"
1d31f66b 13#include "qemu-common.h"
33c11879 14#include "cpu.h"
1d31f66b
PM
15#include "kvm_i386.h"
16
17bool kvm_allows_irq0_override(void)
18{
19 return 1;
20}
2140cfa5
PM
21
22#ifndef __OPTIMIZE__
355023f2
PB
23bool kvm_has_smm(void)
24{
25 return 1;
26}
27
fb506e70
RK
28bool kvm_enable_x2apic(void)
29{
30 return false;
31}
32
2140cfa5
PM
33/* This function is only called inside conditionals which we
34 * rely on the compiler to optimize out when CONFIG_KVM is not
35 * defined.
36 */
37uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,
38 uint32_t index, int reg)
39{
40 abort();
41}
42#endif