All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V6 4/4] nmi: report error(QError) when the cpu-index is invalid
@ 2011-01-27  8:20 ` Lai Jiangshan
  0 siblings, 0 replies; 2+ messages in thread
From: Lai Jiangshan @ 2011-01-27  8:20 UTC (permalink / raw)
  To: Luiz Capitulino, Markus Armbruster, qemu-devel, aliguori, kvm,
	Avi Kivity, Lai

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 1b1c0ba..82935f0 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Qemu-devel] [PATCH V6 4/4] nmi: report error(QError) when the cpu-index is invalid
@ 2011-01-27  8:20 ` Lai Jiangshan
  0 siblings, 0 replies; 2+ messages in thread
From: Lai Jiangshan @ 2011-01-27  8:20 UTC (permalink / raw)
  To: Luiz Capitulino, Markus Armbruster, qemu-devel, aliguori, kvm,
	Avi Kivity, Lai Jiangshan

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 1b1c0ba..82935f0 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-27  8:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-27  8:20 [PATCH V6 4/4] nmi: report error(QError) when the cpu-index is invalid Lai Jiangshan
2011-01-27  8:20 ` [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.