diff options
author | Peter Maydell | 2021-07-30 12:59:40 +0200 |
---|---|---|
committer | Peter Maydell | 2021-08-26 18:02:00 +0200 |
commit | 6773fbf8c07c58429ca876ddea760f604d0497a8 (patch) | |
tree | 0c254e49c4548d0d533655a453f9c7de005e5e7b /include | |
parent | MAINTAINERS: Add ACPI specs documents to ACPI and NVDIMM sections (diff) | |
download | qemu-6773fbf8c07c58429ca876ddea760f604d0497a8.tar.gz qemu-6773fbf8c07c58429ca876ddea760f604d0497a8.tar.xz qemu-6773fbf8c07c58429ca876ddea760f604d0497a8.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/arch_init.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index e723c467eb..7acfc62418 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -30,7 +30,6 @@ enum { extern const uint32_t arch_type; int kvm_available(void); -int xen_available(void); /* default virtio transport per architecture */ #define QEMU_ARCH_VIRTIO_PCI (QEMU_ARCH_ALPHA | QEMU_ARCH_ARM | \ |