You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
labgrid/qemudriver: tie QEMU and QMP monitor start/stop to on_activate()/on_deactivate()
Until now the QEMU process and QMP monitor start was tied to the
on()/off() methods. This feels unnatural, preventing the user from
interacting with the QEMU process via monitor commands before the
emulation starts and meant starting a new process on each power cycle.
Rework the driver to start QEMU and the QMP monitor in on_activate(),
allowing interaction via monitor_command after activation. The on() and
off() methods interact only via QMP now.
All methods relying on a started QEMU and QMP monitor instance are
decorated with @Driver.check_active now.
The atexit handling is no longer required since the target's atexit
handler already calls the driver's on_deactivate().
Signed-off-by: Joschka Seydell <joschka@seydell.org>
Signed-off-by: Bastian Krause <bst@pengutronix.de>
0 commit comments