[V5,4/4] nmi: report error(QError) when the cpu-index is invalid

Submitted by Lai Jiangshan on Jan. 10, 2011, 9:28 a.m.

Details

Message ID 4D2AD134.1060406@cn.fujitsu.com
State New
Headers show

Commit Message

Lai Jiangshan Jan. 10, 2011, 9:28 a.m.
When cpu-index is found invalid in runtime, it will report
QERR_INVALID_PARAMETER_VALUE.

Signed-off-by:  Lai Jiangshan <laijs@cn.fujitsu.com>
---

Patch hide | download patch | download mbox

diff --git a/monitor.c b/monitor.c
index 1bee840..7402c0f 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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