diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-11-26 22:58:52 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:21 -0600 |
commit | adcb181afe5a951c521411c7a8e9d9b791aa6742 (patch) | |
tree | 64f3b4ea8e40af32f834543b384bf2c050557ffc /monitor.h | |
parent | monitor: Introduce MONITOR_USE_CONTROL flag (diff) | |
download | qemu-kvm-adcb181afe5a951c521411c7a8e9d9b791aa6742.tar.gz qemu-kvm-adcb181afe5a951c521411c7a8e9d9b791aa6742.tar.bz2 qemu-kvm-adcb181afe5a951c521411c7a8e9d9b791aa6742.zip |
monitor: Command-line flag to enable control mode
This commit adds a flag called 'control' to the '-monitor'
command-line option. This flag enables control mode.
The syntax is:
qemu [...] -monitor control,<device>
Where <device> is a chardev (excluding 'vc', for obvious reasons).
For example:
$ qemu [...] -monitor control,tcp:localhost:4444,server
Will run QEMU in control mode, waiting for a client TCP connection
on localhost port 4444.
NOTE: I've tried using QemuOpts for this, but turns out that it
will try to parse the device part, which should be untouched.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.h')
-rw-r--r-- | monitor.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -13,6 +13,7 @@ extern Monitor *cur_mon; #define MONITOR_USE_READLINE 0x02 #define MONITOR_USE_CONTROL 0x04 +const char *monitor_cmdline_parse(const char *cmdline, int *flags); void monitor_init(CharDriverState *chr, int flags); int monitor_suspend(Monitor *mon); |