Skip to contentSkip to conversation

nmi: convert cpu_index to cpu-index

PATCH Superseded Lai Jiangshan 1 participant 1 message Jan 10, 2011 KVM

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/4 nmi: convert cpu_index to cpu-index

"cpu-index" is better name.

---

hmp-commands.hx +1 -1
index df134f8..99b96a8 100644
@@ -721,7 +721,7 @@ ETEXI
 #if defined(TARGET_I386)
     {
         .name       = "nmi",
-        .args_type  = "cpu_index:i",
+        .args_type  = "cpu-index:i",
         .params     = "cpu",
         .help       = "inject an NMI on the given CPU",
         .mhandler.cmd = do_inject_nmi,
monitor.c +1 -1
index f258000..fd18887 100644
@@ -2520,7 +2520,7 @@ static void do_wav_capture(Monitor *mon, const QDict *qdict)
 static void do_inject_nmi(Monitor *mon, const QDict *qdict)
 {
     CPUState *env;
-    int cpu_index = qdict_get_int(qdict, "cpu_index");
+    int cpu_index = qdict_get_int(qdict, "cpu-index");
 
     for (env = first_cpu; env != NULL; env = env->next_cpu)
         if (env->cpu_index == cpu_index) {