[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-6.2 2/8] monitor: Use accel_find("kvm") instead of kvm_av

From: Richard Henderson
Subject: Re: [PATCH for-6.2 2/8] monitor: Use accel_find("kvm") instead of kvm_available()
Date: Fri, 30 Jul 2021 08:41:55 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 7/30/21 12:59 AM, Peter Maydell wrote:
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>
  include/sysemu/arch_init.h | 2 --
  monitor/qmp-cmds.c         | 2 +-
  softmmu/arch_init.c        | 9 ---------
  3 files changed, 1 insertion(+), 12 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]