* [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; 2+ messages 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] 2+ messages in thread
* [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; 2+ messages 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] 2+ messages in thread
end of thread, other threads:[~2011-01-10 9:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 9:28 [PATCH V5 4/4] nmi: report error(QError) when the cpu-index is invalid Lai Jiangshan
2011-01-10 9:28 ` [Qemu-devel] " Lai Jiangshan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.