From patchwork Fri Apr 17 07:38:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Ying" X-Patchwork-Id: 18645 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3H7cliu015643 for ; Fri, 17 Apr 2009 07:38:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753214AbZDQHio (ORCPT ); Fri, 17 Apr 2009 03:38:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752777AbZDQHio (ORCPT ); Fri, 17 Apr 2009 03:38:44 -0400 Received: from mga11.intel.com ([192.55.52.93]:47066 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752511AbZDQHio (ORCPT ); Fri, 17 Apr 2009 03:38:44 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 17 Apr 2009 00:34:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.40,203,1239001200"; d="asc'?scan'208";a="682365701" Received: from yhuang-dev.sh.intel.com (HELO [10.239.13.12]) ([10.239.13.12]) by fmsmga001.fm.intel.com with ESMTP; 17 Apr 2009 00:42:18 -0700 Subject: [PATCH -v2 1/2] kvm userspace: Add handler_8/9/10 support to monitor From: Huang Ying To: Avi Kivity Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Date: Fri, 17 Apr 2009 15:38:38 +0800 Message-Id: <1239953918.6842.20.camel@yhuang-dev.sh.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This is needed by MCE simulation. Signed-off-by: Huang Ying --- qemu/monitor.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) --- a/qemu/monitor.c +++ b/qemu/monitor.c @@ -2514,6 +2514,15 @@ static void monitor_handle_command(Monit void *arg3, void *arg4, void *arg5); void (*handler_7)(Monitor *mon, void *arg0, void *arg1, void *arg2, void *arg3, void *arg4, void *arg5, void *arg6); + void (*handler_8)(Monitor *mon, void *arg0, void *arg1, void *arg2, + void *arg3, void *arg4, void *arg5, void *arg6, + void *arg7); + void (*handler_9)(Monitor *mon, void *arg0, void *arg1, void *arg2, + void *arg3, void *arg4, void *arg5, void *arg6, + void *arg7, void *arg8); + void (*handler_10)(Monitor *mon, void *arg0, void *arg1, void *arg2, + void *arg3, void *arg4, void *arg5, void *arg6, + void *arg7, void *arg8, void *arg9); #ifdef DEBUG monitor_printf(mon, "command='%s'\n", cmdline); @@ -2811,6 +2820,21 @@ static void monitor_handle_command(Monit handler_7(mon, args[0], args[1], args[2], args[3], args[4], args[5], args[6]); break; + case 8: + handler_8 = cmd->handler; + handler_8(mon, args[0], args[1], args[2], args[3], args[4], args[5], + args[6], args[7]); + break; + case 9: + handler_9 = cmd->handler; + handler_9(mon, args[0], args[1], args[2], args[3], args[4], args[5], + args[6], args[7], args[8]); + break; + case 10: + handler_10 = cmd->handler; + handler_10(mon, args[0], args[1], args[2], args[3], args[4], args[5], + args[6], args[7], args[8], args[9]); + break; default: monitor_printf(mon, "unsupported number of arguments: %d\n", nb_args); goto fail;