From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lai Jiangshan Subject: [PATCH V5 4/4] nmi: report error(QError) when the cpu-index is invalid Date: Mon, 10 Jan 2011 17:28:20 +0800 Message-ID: <4D2AD134.1060406@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit To: Luiz Capitulino , Markus Armbruster , qemu-devel@nongnu.org, aliguori@us.ibm.com, kvm@vger.kernel.org, Avi Kivity Return-path: Received: from cn.fujitsu.com ([222.73.24.84]:55983 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753091Ab1AJJmR (ORCPT ); Mon, 10 Jan 2011 04:42:17 -0500 Sender: kvm-owner@vger.kernel.org List-ID: When cpu-index is found invalid in runtime, it will report QERR_INVALID_PARAMETER_VALUE. Signed-off-by: Lai Jiangshan --- 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