diff options
author | Claudio Fontana <cfontana@suse.de> | 2020-12-12 16:55:08 +0100 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-16 14:06:52 -0500 |
commit | a9dc68d9b240bd4cb0c8910c6d10f6bdf9d53cb3 (patch) | |
tree | bc72670ab2a50efd9bc8df187e572deee727bb4b /target/i386/kvm/kvm-stub.c | |
parent | af3f37319cb1e1ca0c42842ecdbd1bcfc64a4b6f (diff) | |
download | qemu-a9dc68d9b240bd4cb0c8910c6d10f6bdf9d53cb3.zip qemu-a9dc68d9b240bd4cb0c8910c6d10f6bdf9d53cb3.tar.gz qemu-a9dc68d9b240bd4cb0c8910c6d10f6bdf9d53cb3.tar.bz2 |
i386: move kvm accel files into kvm/
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201212155530.23098-2-cfontana@suse.de>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386/kvm/kvm-stub.c')
-rw-r--r-- | target/i386/kvm/kvm-stub.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/target/i386/kvm/kvm-stub.c b/target/i386/kvm/kvm-stub.c new file mode 100644 index 0000000..92f4912 --- /dev/null +++ b/target/i386/kvm/kvm-stub.c @@ -0,0 +1,41 @@ +/* + * QEMU KVM x86 specific function stubs + * + * Copyright Linaro Limited 2012 + * + * Author: Peter Maydell <peter.maydell@linaro.org> + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + * + */ +#include "qemu/osdep.h" +#include "cpu.h" +#include "kvm_i386.h" + +#ifndef __OPTIMIZE__ +bool kvm_has_smm(void) +{ + return 1; +} + +bool kvm_enable_x2apic(void) +{ + return false; +} + +/* This function is only called inside conditionals which we + * rely on the compiler to optimize out when CONFIG_KVM is not + * defined. + */ +uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function, + uint32_t index, int reg) +{ + abort(); +} +#endif + +bool kvm_hv_vpindex_settable(void) +{ + return false; +} |