nmi: report error(QError) when the cpu-index is invalid
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.
Signed-off-by Lai Jiangshan <[email protected]>
---
monitor.c +1 -0
@@ -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