Skip to contentSkip to conversation

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

PATCH RESEND In review Lai Jiangshan 1 participant 1 message Feb 14, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v6 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 1b1c0ba..82935f0 100644
@@ -2563,6 +2563,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