Skip to contentSkip to conversation

nmi: report error(QError) when the cpu-index is invalid

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 4/4 nmi: report error(QError) when the cpu-index is invalid

When cpu-index is found invalid in runtime, it will report QERR_INVALID_PARAMETER_VALUE.

---

monitor.c +1 -0
index 1bee840..7402c0f 100644
@@ -2535,6 +2535,7 @@ static int do_inject_nmi(Monitor *mon, const QDict *qdict, QObject **ret_data)
             return 0;
         }
 
+    qerror_report(QERR_INVALID_PARAMETER_VALUE, "cpu-index", "a CPU number");
     return -1;
 }
 #endif