* [Qemu-devel] [PATCH V5 4/4] nmi: report error(QError) when the cpu-index is invalid
@ 2011-01-10 9:28 Lai Jiangshan
0 siblings, 0 replies; only message in thread
From: Lai Jiangshan @ 2011-01-10 9:28 UTC (permalink / raw)
To: Luiz Capitulino, Markus Armbruster, qemu-devel, aliguori, kvm,
Avi Kivity
When cpu-index is found invalid in runtime, it will report
QERR_INVALID_PARAMETER_VALUE.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-10 9:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 9:28 [Qemu-devel] [PATCH V5 4/4] nmi: report error(QError) when the cpu-index is invalid Lai Jiangshan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).