提交 c62313bb 编写于 作者: J Jan Kiszka 提交者: Anthony Liguori

monitor: Accept input only byte-wise

This allows to suspend command interpretation and execution
synchronously, e.g. during migration.
Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 acb6685f
...@@ -3864,7 +3864,7 @@ static int monitor_can_read(void *opaque) ...@@ -3864,7 +3864,7 @@ static int monitor_can_read(void *opaque)
{ {
Monitor *mon = opaque; Monitor *mon = opaque;
return (mon->suspend_cnt == 0) ? 128 : 0; return (mon->suspend_cnt == 0) ? 1 : 0;
} }
typedef struct CmdArgs { typedef struct CmdArgs {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册