Re: [RFC 5/5] Example -open-hook-fd server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 1, 2012 at 4:31 PM, Stefan Hajnoczi
<stefanha@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxx>
> ---
>  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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]