diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-09-04 14:43:19 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-07 13:32:37 +0200 |
commit | ef1cf6890f38073181edbc334b49192a6434d396 (patch) | |
tree | 48f82baaaae0838e6b4ffddbf7e26bf646d7d30e /target | |
parent | 9926cf34de5fa15da1d58e809692b5c7ccf72ec5 (diff) | |
download | qemu-ef1cf6890f38073181edbc334b49192a6434d396.zip qemu-ef1cf6890f38073181edbc334b49192a6434d396.tar.gz qemu-ef1cf6890f38073181edbc334b49192a6434d396.tar.bz2 |
target/i386: Allow elision of kvm_hv_vpindex_settable()
Call kvm_enabled() before kvm_hv_vpindex_settable()
to let the compiler elide its call.
kvm-stub.c is now empty, remove it.
Suggested-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230904124325.79040-9-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/i386/kvm/kvm-stub.c | 18 | ||||
-rw-r--r-- | target/i386/kvm/meson.build | 2 |
2 files changed, 0 insertions, 20 deletions
diff --git a/target/i386/kvm/kvm-stub.c b/target/i386/kvm/kvm-stub.c deleted file mode 100644 index 62ccceb..0000000 --- a/target/i386/kvm/kvm-stub.c +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 "kvm_i386.h" - -bool kvm_hv_vpindex_settable(void) -{ - return false; -} diff --git a/target/i386/kvm/meson.build b/target/i386/kvm/meson.build index 40fbde9..5d9174b 100644 --- a/target/i386/kvm/meson.build +++ b/target/i386/kvm/meson.build @@ -1,5 +1,3 @@ -i386_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c')) - i386_softmmu_kvm_ss = ss.source_set() i386_softmmu_kvm_ss.add(files( |