From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH V4 3/3] qmp, nmi: convert do_inject_nmi() to QObject, QError Date: Mon, 20 Dec 2010 18:01:34 +0100 Message-ID: References: <4D0EF3A4.7000303@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Luiz Capitulino , qemu-devel@nongnu.org, aliguori@us.ibm.com, kvm@vger.kernel.org, Avi Kivity To: Lai Jiangshan Return-path: Received: from mx1.redhat.com ([209.132.183.28]:28301 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932888Ab0LTRBk (ORCPT ); Mon, 20 Dec 2010 12:01:40 -0500 In-Reply-To: <4D0EF3A4.7000303@cn.fujitsu.com> (Lai Jiangshan's message of "Mon, 20 Dec 2010 14:11:48 +0800") Sender: kvm-owner@vger.kernel.org List-ID: Lai Jiangshan writes: > Make we can inject NMI via qemu-monitor-protocol. > We use "inject-nmi" for the qmp command name, the meaning is clearer. > When cpu-index is found invalid in runtime, it will report > QERR_INVALID_PARAMETER_VALUE. This patch does two separate things: 1. Fix do_inject_nmi() to detect invalid arguments. 2. Convert it to QObject. If you have to respin anyway, please split the patch to keep the two separate.