qemu-monitor: migrate to Python!

Just came across the telnet in the stdlib, and got rid of the ugly expect
dependency, nice.

Also implement stdin input now that we have a sane language.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-11-10 00:00:00 +00:00
parent d697640584
commit 6c355c80d3
3 changed files with 50 additions and 27 deletions

View File

@@ -8017,12 +8017,16 @@ or send one command such as `info qtree` and quit the monitor:
./qemu-monitor info qtree
....
or equivalently:
....
echo 'info qtree' | ./qemu-monitor
....
Source: link:qemu-monitor[]
`qemu-monitor` uses the `-monitor` QEMU command line option, which makes the monitor listen from a socket.
`qemu-monitor` does not support input from an stdin pipe currently, see comments on the source for rationale.
Alternatively, from text mode:
....