KVM test: add kvm_monitor.py, an interface to QEMU monitors
This module should replace vm.send_monitor_cmd(). Instead
of connecting to the monitor each time a command is issued,
this module maintains a continuous connection to the monitor.
It disconnects when a test terminates and reconnects as soon
as the next test begins (upon unpickling).
It currently contains only an interface to the human monitor.
A QMP interface will be introduced in a future patch.
Changes from v2:
- Turn the base monitor class into a new style class
- Replace ParentClass.__init__() calls with super calls.
Changes from v1:
- Add name parameter to __init__()
- Remove help() method
- Rename help attribute to _help_str to indicate private use
- Rename lock to _lock
- Rename socket to _socket
Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4638 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed