diff options
author | Peter Maydell | 2021-07-30 12:59:41 +0200 |
---|---|---|
committer | Peter Maydell | 2021-08-26 18:02:00 +0200 |
commit | 4f9205be45ab84398e6ef3bb10af01b3f4a9cef7 (patch) | |
tree | a365745ebaf4eee676f0c05af31307011c484051 /softmmu/arch_init.c | |
parent | softmmu: Use accel_find("xen") instead of xen_available() (diff) | |
download | qemu-4f9205be45ab84398e6ef3bb10af01b3f4a9cef7.tar.gz qemu-4f9205be45ab84398e6ef3bb10af01b3f4a9cef7.tar.xz qemu-4f9205be45ab84398e6ef3bb10af01b3f4a9cef7.zip |
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 'softmmu/arch_init.c')
-rw-r--r-- | softmmu/arch_init.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/softmmu/arch_init.c b/softmmu/arch_init.c index 3f4d7c1b1c..9011af74e4 100644 --- a/softmmu/arch_init.c +++ b/softmmu/arch_init.c @@ -87,12 +87,3 @@ int graphic_depth = 32; #endif const uint32_t arch_type = QEMU_ARCH; - -int kvm_available(void) -{ -#ifdef CONFIG_KVM - return 1; -#else - return 0; -#endif -} |