From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGXqs-00068T-Jg for qemu-devel@nongnu.org; Fri, 04 Dec 2009 08:05:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGXqo-00067t-ST for qemu-devel@nongnu.org; Fri, 04 Dec 2009 08:05:38 -0500 Received: from [199.232.76.173] (port=52833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGXqo-00067q-5u for qemu-devel@nongnu.org; Fri, 04 Dec 2009 08:05:34 -0500 Received: from thoth.sbs.de ([192.35.17.2]:15508) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGXqn-0006CW-K0 for qemu-devel@nongnu.org; Fri, 04 Dec 2009 08:05:33 -0500 Message-ID: <4B190919.9040602@siemens.com> Date: Fri, 04 Dec 2009 14:05:29 +0100 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [FOR 0.12][PATCH] monitor: Accept input only byte-wise List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel This allows to suspend command interpretation and execution synchronously, e.g. during migration. Signed-off-by: Jan Kiszka --- monitor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/monitor.c b/monitor.c index 3286ba2..a3be1c8 100644 --- a/monitor.c +++ b/monitor.c @@ -3418,7 +3418,7 @@ static int monitor_can_read(void *opaque) { Monitor *mon = opaque; - return (mon->suspend_cnt == 0) ? 128 : 0; + return (mon->suspend_cnt == 0) ? 1 : 0; } static void monitor_read(void *opaque, const uint8_t *buf, int size)