]> xenbits.xensource.com Git - qemu-xen.git/commit
softmmu: Use accel_find("xen") instead of xen_available()
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 30 Jul 2021 10:59:40 +0000 (11:59 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Aug 2021 16:02:00 +0000 (17:02 +0100)
commit6773fbf8c07c58429ca876ddea760f604d0497a8
tree0c254e49c4548d0d533655a453f9c7de005e5e7b
parentfcc6f733690f54ed0409585db619d05b34c8e751
softmmu: Use accel_find("xen") instead of xen_available()

The xen_available() function is used only to produce an error
for some Xen-specific command line options in QEMU binaries where
Xen support was not compiled in: it just returns the value of
the CONFIG_XEN define.

Now that accelerators are QOM classes, we can check for
"does this binary have Xen compiled in" with accel_find("xen"),
and drop the xen_available() function.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210730105947.28215-2-peter.maydell@linaro.org
include/sysemu/arch_init.h
softmmu/arch_init.c
softmmu/vl.c