[Top][All Lists]
[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
- [Qemu-devel] [RFC 0/5] block: File descriptor passing using -open-hook-fd, Stefan Hajnoczi, 2012/05/01
- [Qemu-devel] [RFC 2/5] block: add new command line parameter that and protocol description, Stefan Hajnoczi, 2012/05/01
- [Qemu-devel] [RFC 3/5] block: plumb up open-hook-fd option, Stefan Hajnoczi, 2012/05/01
- [Qemu-devel] [RFC 4/5] osdep: add qemu_recvmsg() wrapper, Stefan Hajnoczi, 2012/05/01
- [Qemu-devel] [RFC 1/5] block: add open() wrapper that can be hooked by libvirt, Stefan Hajnoczi, 2012/05/01
- [Qemu-devel] [RFC 5/5] Example -open-hook-fd server, Stefan Hajnoczi, 2012/05/01
- Re: [Qemu-devel] [libvirt] [RFC 5/5] Example -open-hook-fd server,
Stefan Hajnoczi <=
- Re: [Qemu-devel] [RFC 0/5] block: File descriptor passing using -open-hook-fd, Anthony Liguori, 2012/05/01
- Re: [Qemu-devel] [RFC 0/5] block: File descriptor passing using -open-hook-fd, Kevin Wolf, 2012/05/02