• Luiz Capitulino's avatar
    monitor: Command-line flag to enable control mode · adcb181a
    Luiz Capitulino authored
    
    
    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: default avatarLuiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    adcb181a