qemu/target-i386/kvm-stub.c
<<
>>
Prefs
   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/osdep.h"
  13#include "qemu-common.h"
  14#include "kvm_i386.h"
  15
  16bool kvm_allows_irq0_override(void)
  17{
  18    return 1;
  19}
  20
  21#ifndef __OPTIMIZE__
  22bool kvm_has_smm(void)
  23{
  24    return 1;
  25}
  26
  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.
  30 */
  31uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,
  32                                      uint32_t index, int reg)
  33{
  34    abort();
  35}
  36#endif
  37