All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [7211] add info numa command to monitor (Andre Przywara)
@ 2009-04-21 22:30 Anthony Liguori
  2009-04-22  9:20 ` [Qemu-devel] [PATCH] monitor: Fix warning in do_info_numa Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Liguori @ 2009-04-21 22:30 UTC (permalink / raw)
  To: qemu-devel

Revision: 7211
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7211
Author:   aliguori
Date:     2009-04-21 22:30:47 +0000 (Tue, 21 Apr 2009)
Log Message:
-----------
add info numa command to monitor (Andre Przywara)

adds an "info numa" command to the monitor to output the current
topology. Since NUMA is advertised via static ACPI tables, no changes are
possible during runtime.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/monitor.c

Modified: trunk/monitor.c
===================================================================
--- trunk/monitor.c	2009-04-21 22:30:27 UTC (rev 7210)
+++ trunk/monitor.c	2009-04-21 22:30:47 UTC (rev 7211)
@@ -1409,6 +1409,25 @@
 #endif
 }
 
+static void do_info_numa(Monitor *mon)
+{
+    int i, j;
+    CPUState *env;
+
+    monitor_printf(mon, "%d nodes\n", nb_numa_nodes);
+    for (i = 0; i < nb_numa_nodes; i++) {
+        monitor_printf(mon, "node %d cpus:", i);
+        for (env = first_cpu; env != NULL; env = env->next_cpu) {
+            if (env->numa_node == i) {
+                monitor_printf(mon, " %d", env->cpu_index);
+            }
+        }
+        monitor_printf(mon, "\n");
+        monitor_printf(mon, "node %d size: %" PRId64 " MB\n", i,
+            node_mem[i] >> 20);
+    }
+}
+
 #ifdef CONFIG_PROFILER
 
 int64_t kqemu_time;
@@ -1792,6 +1811,8 @@
       "", "show KQEMU information", },
     { "kvm", "", do_info_kvm,
       "", "show KVM information", },
+    { "numa", "", do_info_numa,
+      "", "show NUMA information", },
     { "usb", "", usb_info,
       "", "show guest USB devices", },
     { "usbhost", "", usb_host_info,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PATCH] monitor: Fix warning in do_info_numa
  2009-04-21 22:30 [Qemu-devel] [7211] add info numa command to monitor (Andre Przywara) Anthony Liguori
@ 2009-04-22  9:20 ` Jan Kiszka
  2009-04-22 20:21   ` [Qemu-devel] " Anthony Liguori
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2009-04-22  9:20 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: andre.przywara, qemu-devel

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/monitor.c b/monitor.c
index 3e945db..b33fea1 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1411,7 +1411,7 @@ static void do_info_kvm(Monitor *mon)
 
 static void do_info_numa(Monitor *mon)
 {
-    int i, j;
+    int i;
     CPUState *env;
 
     monitor_printf(mon, "%d nodes\n", nb_numa_nodes);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: [PATCH] monitor: Fix warning in do_info_numa
  2009-04-22  9:20 ` [Qemu-devel] [PATCH] monitor: Fix warning in do_info_numa Jan Kiszka
@ 2009-04-22 20:21   ` Anthony Liguori
  0 siblings, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2009-04-22 20:21 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: andre.przywara, qemu-devel

Jan Kiszka wrote:
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>   

Applied.  Thanks.

-- 
Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-22 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-21 22:30 [Qemu-devel] [7211] add info numa command to monitor (Andre Przywara) Anthony Liguori
2009-04-22  9:20 ` [Qemu-devel] [PATCH] monitor: Fix warning in do_info_numa Jan Kiszka
2009-04-22 20:21   ` [Qemu-devel] " Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.