diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2021-07-30 11:59:40 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-08-26 17:02:00 +0100 |
commit | 6773fbf8c07c58429ca876ddea760f604d0497a8 (patch) | |
tree | 0c254e49c4548d0d533655a453f9c7de005e5e7b /softmmu/arch_init.c | |
parent | fcc6f733690f54ed0409585db619d05b34c8e751 (diff) |
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 '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 6ff9f30bad..3f4d7c1b1c 100644 --- a/softmmu/arch_init.c +++ b/softmmu/arch_init.c @@ -96,12 +96,3 @@ int kvm_available(void) return 0; #endif } - -int xen_available(void) -{ -#ifdef CONFIG_XEN - return 1; -#else - return 0; -#endif -} |