From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGQ2f-0003WS-ET for qemu-devel@nongnu.org; Mon, 02 Sep 2013 05:03:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGQ2X-0001HP-Te for qemu-devel@nongnu.org; Mon, 02 Sep 2013 05:03:25 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:51340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGQ2X-0001Fa-BZ for qemu-devel@nongnu.org; Mon, 02 Sep 2013 05:03:17 -0400 Received: from /spool/local by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 2 Sep 2013 18:49:21 +1000 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [9.190.234.120]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 58DB03578053 for ; Mon, 2 Sep 2013 19:03:12 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r828kxYw43057328 for ; Mon, 2 Sep 2013 18:47:00 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r8293BAH010349 for ; Mon, 2 Sep 2013 19:03:11 +1000 From: Lei Li Date: Mon, 2 Sep 2013 17:01:44 +0800 Message-Id: <1378112508-8970-1-git-send-email-lilei@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/4 RFC] Introduce console for ringbuf backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Lei Li , anthony@codemonkey.ws, lcapitulino@redhat.com This patch series aims at adding HMP console feature for ringbuf backend. It behaves like a serial console, which drops user into an interactive mode with ringbuf backend and takes user back to the monitor by the 'ctrl-]' escape sequence. It would suspend the monitor, output the data that backed in the ringbuf backend to console first, and install a new readline handler to get input from console back into the ringbuf backend. Once escape sequence is detected, it will resume the monitor. This implementation is reworked based on Anthony's suggestions on the previous version: http://lists.gnu.org/archive/html/qemu-devel/2013-01/msg03888.html Suggestions and comments are very welcome! Lei Li (4): monitor: introduce monitor_read_console hmp: factor out ringbuf_print_help() qemu-char: export ringbuf_count hmp: add console support for ringbuf backend hmp-commands.hx | 21 +++++++ hmp.c | 141 +++++++++++++++++++++++++++++++++++++++++---- hmp.h | 1 + include/monitor/monitor.h | 3 + include/sysemu/char.h | 2 + monitor.c | 14 +++++ qemu-char.c | 2 +- 7 files changed, 171 insertions(+), 13 deletions(-)