diff mbox series

[for-6.0,4/6] softmmu: Remove kvm_available()

Message ID 20201116131011.26607-5-r.bolshakov@yadro.com (mailing list archive)
State New, archived
Headers show
Series Add HMP/QMP commands to query accelerator | expand

Commit Message

Roman Bolshakov Nov. 16, 2020, 1:10 p.m. UTC
The function isn't used anywhere after qmp_query_kvm() has been switched
to invoke qmp_query_accel().

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
---
 include/sysemu/arch_init.h | 1 -
 softmmu/arch_init.c        | 9 ---------
 2 files changed, 10 deletions(-)
diff mbox series

Patch

diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h
index 54f069d491..b32ce1afa9 100644
--- a/include/sysemu/arch_init.h
+++ b/include/sysemu/arch_init.h
@@ -32,7 +32,6 @@  enum {
 
 extern const uint32_t arch_type;
 
-int kvm_available(void);
 int xen_available(void);
 
 #endif
diff --git a/softmmu/arch_init.c b/softmmu/arch_init.c
index 7fd5c09b2b..56cbe0d3b5 100644
--- a/softmmu/arch_init.c
+++ b/softmmu/arch_init.c
@@ -96,15 +96,6 @@  int graphic_depth = 32;
 
 const uint32_t arch_type = QEMU_ARCH;
 
-int kvm_available(void)
-{
-#ifdef CONFIG_KVM
-    return 1;
-#else
-    return 0;
-#endif
-}
-
 int xen_available(void)
 {
 #ifdef CONFIG_XEN