[libvirt] [RFC 5/5] Example -open-hook-fd server
Stefan Hajnoczi
stefanha at gmail.com
Tue May 1 16:04:03 UTC 2012
On Tue, May 1, 2012 at 4:31 PM, Stefan Hajnoczi
<stefanha at linux.vnet.ibm.com> wrote:
> This patch implements a demo server for the new -open-hook-fd feature.
> It opens any filename given to it by QEMU and therefore adds no true
> security. But it serves as a good debugging tool to see what requests
> QEMU is making.
>
> $ gcc -o test-fd-passing -Wall test-fd-passing.c
> $ ./test-fd-passing path/to/my/vm.img
>
> Try:
>
> (qemu) change ide1-cd0 path/to/a/cdrom.iso
>
> Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
> ---
> test-fd-passing.c | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 147 insertions(+)
> create mode 100644 test-fd-passing.c
Although this whole series is RFC, this particular patch is not meant
for qemu.git - it's just an example of how to talk to QEMU. It's not
100% portable or QEMU coding style but please don't worry, this will
not dirty our beautiful source tree :D.
Stefan
More information about the libvir-list
mailing list