]> git.proxmox.com Git - mirror_qemu.git/blame - target-i386/kvm-stub.c
virtio-net: correctly drop truncated packets
[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 */
12#include "qemu-common.h"
13#include "kvm_i386.h"
14
15bool kvm_allows_irq0_override(void)
16{
17 return 1;
18}
2140cfa5
PM
19
20#ifndef __OPTIMIZE__
355023f2
PB
21bool kvm_has_smm(void)
22{
23 return 1;
24}
25
2140cfa5
PM
26/* This function is only called inside conditionals which we
27 * rely on the compiler to optimize out when CONFIG_KVM is not
28 * defined.
29 */
30uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,
31 uint32_t index, int reg)
32{
33 abort();
34}
35#endif