qemu-devel
[Top][All Lists]
Advanced

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

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


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [libvirt] [RFC 5/5] Example -open-hook-fd server
Date: Tue, 1 May 2012 17:04:03 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]