diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-06 13:52:44 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-06 13:52:44 +0000 |
commit | d8f4460989d6d6749ff649f1c5439de38c2dfeab (patch) | |
tree | 4e3f50d4ec3412fc1768056bca1379af39a72771 /console.h | |
parent | 1ed1a7873882b75d1c857a0b3d0415be70d886ef (diff) | |
download | qemu-d8f4460989d6d6749ff649f1c5439de38c2dfeab.tar.gz qemu-d8f4460989d6d6749ff649f1c5439de38c2dfeab.tar.bz2 qemu-d8f4460989d6d6749ff649f1c5439de38c2dfeab.zip |
Allow the monitor to be suspended during non-blocking op
Live migration happens in the background, but it is useful to make the monitor
command appear as if it's blocking. This allows a management tool to
immediately know when the live migration has completed without having to poll
the migration status.
This patch allows the monitor to be suspended from a monitor callback which
will prevent new monitor commands from being executed.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5431 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -175,6 +175,8 @@ void term_flush(void); void term_print_help(void); void monitor_readline(const char *prompt, int is_password, char *buf, int buf_size); +void monitor_suspend(void); +void monitor_resume(void); /* readline.c */ typedef void ReadLineFunc(void *opaque, const char *str); |