On Fri, Dec 13, 2019 at 10:46:17AM -0200, Wainer dos Santos Moschetta wrote: > > On 12/12/19 12:13 PM, Cleber Rosa wrote: > > On Wed, Dec 11, 2019 at 01:55:35PM -0500, Wainer dos Santos Moschetta wrote: > > > The QEMUMachine VM has a monitor setup on which an QMP > > > connection is always attempted on _post_launch() (executed > > > by launch()). In case the QEMU process immediatly exits > > > then the qmp.accept() (used to establish the connection) stalls > > > until it reaches timeout and consequently an exception raises. > > > > > > That behavior is undesirable when, for instance, it needs to > > > gather information from the QEMU binary ($ qemu -cpu list) or a > > > test which launches the VM expecting its failure. > > > > > > This patch adds the set_qmp_monitor() method to QEMUMachine that > > > allows turn off the creation of the monitor machinery on VM launch. > > > > > > Signed-off-by: Wainer dos Santos Moschetta > > > Reviewed-by: Cleber Rosa > > > --- FIY, queued on my python-next branch. - Cleber.