From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPFYe-0008Dy-Nh for qemu-devel@nongnu.org; Tue, 01 May 2012 12:04:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPFYc-0004ed-A7 for qemu-devel@nongnu.org; Tue, 01 May 2012 12:04:08 -0400 Received: from mail-lpp01m010-f45.google.com ([209.85.215.45]:51561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPFYc-0004cJ-06 for qemu-devel@nongnu.org; Tue, 01 May 2012 12:04:06 -0400 Received: by lahe6 with SMTP id e6so2841790lah.4 for ; Tue, 01 May 2012 09:04:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1335886307-27586-6-git-send-email-stefanha@linux.vnet.ibm.com> References: <1335886307-27586-1-git-send-email-stefanha@linux.vnet.ibm.com> <1335886307-27586-6-git-send-email-stefanha@linux.vnet.ibm.com> Date: Tue, 1 May 2012 17:04:03 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [libvirt] [RFC 5/5] Example -open-hook-fd server List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , libvir-list@redhat.com, Anthony Liguori , qemu-devel@nongnu.org On Tue, May 1, 2012 at 4:31 PM, Stefan Hajnoczi 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. =A0But it serves as a good debugging tool to see what requests > QEMU is making. > > =A0$ gcc -o test-fd-passing -Wall test-fd-passing.c > =A0$ ./test-fd-passing path/to/my/vm.img > > Try: > > =A0(qemu) change ide1-cd0 path/to/a/cdrom.iso > > Signed-off-by: Stefan Hajnoczi > --- > =A0test-fd-passing.c | =A0147 +++++++++++++++++++++++++++++++++++++++++++= ++++++++++ > =A01 file changed, 147 insertions(+) > =A0create 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