From patchwork Fri Dec 4 13:05:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [FOR,0.12] monitor: Accept input only byte-wise Date: Fri, 04 Dec 2009 03:05:29 -0000 From: Jan Kiszka X-Patchwork-Id: 40328 Message-Id: <4B190919.9040602@siemens.com> 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)