qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 12/25] Monitor: Move qmp_query_kvm() up in monitor.c


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 12/25] Monitor: Move qmp_query_kvm() up in monitor.c
Date: Mon, 6 Dec 2010 16:23:59 -0200

So that next commit can change do_info_kvm_print() to call it.

Signed-off-by: Luiz Capitulino <address@hidden>
---
 monitor.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/monitor.c b/monitor.c
index 1fbe78b..e8f0562 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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;
-- 
1.7.3.3.398.g0b0cd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]