@@ -1994,6 +1994,16 @@ static void tlb_info(Monitor *mon)
#endif
+static void qmp_query_kvm(Monitor *mon, QObject **ret_data)
+{
+#ifdef CONFIG_KVM
+ *ret_data = qobject_from_jsonf("{ 'enabled': %i, 'present': true }",
+ kvm_enabled());
+#else
+ *ret_data = qobject_from_jsonf("{ 'enabled': false, 'present': false }");
+#endif
+}
+
static void do_info_kvm_print(Monitor *mon, const QObject *data)
{
QDict *qdict;
@@ -2009,16 +2019,6 @@ static void do_info_kvm_print(Monitor *mon, const QObject *data)
}
}
-static void qmp_query_kvm(Monitor *mon, QObject **ret_data)
-{
-#ifdef CONFIG_KVM
- *ret_data = qobject_from_jsonf("{ 'enabled': %i, 'present': true }",
- kvm_enabled());
-#else
- *ret_data = qobject_from_jsonf("{ 'enabled': false, 'present': false }");
-#endif
-}
-
static void do_info_numa(Monitor *mon)
{
int i;
So that next commit can change do_info_kvm_print() to call it. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- monitor.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)