[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] feature idea: allow user to run custom scripts
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] feature idea: allow user to run custom scripts |
Date: |
Wed, 30 Sep 2015 07:01:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 29/09/2015 15:23, Dr. David Alan Gilbert wrote:
> Yeh, I'm not sure how easily that'll be to glue into the monitor,
> because the monitor has a parser that's fed somehow from the chardev.
See how qmp_human_monitor_command is implemented. It basically bypasses
the chardev part of the monitor.
Because this "source" command would be HMP-only, it wouldn't even need
to create a new monitor, save/restore cur_mon and fetch the output from
hmp.outbuf. It could just read lines and pass them to
handle_hmp_command (possibly after removing newlines preceded by a
backslash?).
Paolo
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Dr. David Alan Gilbert, 2015/10/07
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Programmingkid, 2015/10/07
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Peter Maydell, 2015/10/07
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Dr. David Alan Gilbert, 2015/10/07
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Markus Armbruster, 2015/10/08
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Dr. David Alan Gilbert, 2015/10/08
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Peter Maydell, 2015/10/08
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Programmingkid, 2015/10/08
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Paolo Bonzini, 2015/10/08
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Kevin Wolf, 2015/10/08
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Daniel P. Berrange, 2015/10/08
- Re: [Qemu-devel] feature idea: allow user to run custom scripts, Programmingkid, 2015/10/08