From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lai Jiangshan Subject: [PATCH V6 4/4 resend] nmi: report error(QError) when the cpu-index is invalid Date: Mon, 14 Feb 2011 18:09:24 +0800 Message-ID: <4D58FF54.1000800@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 , Lai Jian Return-path: Received: from cn.fujitsu.com ([222.73.24.84]:53639 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752940Ab1BNKIb (ORCPT ); Mon, 14 Feb 2011 05:08:31 -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 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