diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2021-07-30 11:59:41 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-08-26 17:02:00 +0100 |
commit | 4f9205be45ab84398e6ef3bb10af01b3f4a9cef7 (patch) | |
tree | a365745ebaf4eee676f0c05af31307011c484051 /include/sysemu | |
parent | 6773fbf8c07c58429ca876ddea760f604d0497a8 (diff) | |
download | qemu-4f9205be45ab84398e6ef3bb10af01b3f4a9cef7.zip qemu-4f9205be45ab84398e6ef3bb10af01b3f4a9cef7.tar.gz qemu-4f9205be45ab84398e6ef3bb10af01b3f4a9cef7.tar.bz2 |
monitor: Use accel_find("kvm") instead of kvm_available()
The kvm_available() function reports whether KVM support was
compiled into the QEMU binary; it returns the value of the
CONFIG_KVM define.
The only place in the codebase where we use this function is
in qmp_query_kvm(). Now that accelerators are based on QOM
classes we can instead use accel_find("kvm") and remove the
kvm_available() function.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210730105947.28215-3-peter.maydell@linaro.org
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/arch_init.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 7acfc62..57caad1 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -29,8 +29,6 @@ enum { extern const uint32_t arch_type; -int kvm_available(void); - /* default virtio transport per architecture */ #define QEMU_ARCH_VIRTIO_PCI (QEMU_ARCH_ALPHA | QEMU_ARCH_ARM | \ QEMU_ARCH_HPPA | QEMU_ARCH_I386 | \ |