]> git.proxmox.com Git - mirror_qemu.git/commit
monitor: Use accel_find("kvm") instead of kvm_available()
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 30 Jul 2021 10:59:41 +0000 (11:59 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Aug 2021 16:02:00 +0000 (17:02 +0100)
commit4f9205be45ab84398e6ef3bb10af01b3f4a9cef7
treea365745ebaf4eee676f0c05af31307011c484051
parent6773fbf8c07c58429ca876ddea760f604d0497a8
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
include/sysemu/arch_init.h
monitor/qmp-cmds.c
softmmu/arch_init.c