From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Nde-0004Nr-Ss for qemu-devel@nongnu.org; Thu, 29 Sep 2011 16:55:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9Ndd-0002su-4q for qemu-devel@nongnu.org; Thu, 29 Sep 2011 16:55:26 -0400 Received: from mail-qy0-f173.google.com ([209.85.216.173]:37272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Ndc-0002sq-Un for qemu-devel@nongnu.org; Thu, 29 Sep 2011 16:55:25 -0400 Received: by qyc1 with SMTP id 1so4089962qyc.4 for ; Thu, 29 Sep 2011 13:55:24 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4E847834.7070805@codemonkey.ws> References: <20110929134727.19559.54734.stgit@ginnungagap.bsc.es> <4E847834.7070805@codemonkey.ws> From: Blue Swirl Date: Thu, 29 Sep 2011 20:55:04 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC][PATCH 0/5] backdoor: lightweight guest-to-QEMU backdoor channel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Zhi Yong Wu , =?UTF-8?Q?Llu=C3=ADs_Vilanova?= , qemu-devel@nongnu.org 2011/9/29 Anthony Liguori : > On 09/29/2011 08:47 AM, Llu=C3=ADs Vilanova wrote: >> >> Provides the ability for the guest to communicate with user-provided cod= e >> inside >> QEMU itself, using a lightweight mechanism. >> >> See first commit for a full description. >> >> Signed-off-by: Llu=C3=ADs Vilanova > > We already have two "backdoors" in QEMU: ivshmem and virtio-serial. =C2= =A0Can you > discuss why these are insufficient for your purposes? > > Also, what's the advantage of having a backdoor mechanism both for softmm= u > and user? =C2=A0I can't think of a practical use-case for it. This can be used for instrumentation and maybe it could be used for test setups too instead of a dedicated test device. > Regards, > > Anthony Liguori > >> --- >> >> Llu=C3=ADs Vilanova (5): >> =C2=A0 =C2=A0 =C2=A0 backdoor: Add documentation >> =C2=A0 =C2=A0 =C2=A0 backdoor: Add build infrastructure >> =C2=A0 =C2=A0 =C2=A0 backdoor: [*-user] Add QEMU-side proxy to "libbackd= oor.a" >> =C2=A0 =C2=A0 =C2=A0 backdoor: [softmmu] Add QEMU-side proxy to "libback= door.a" >> =C2=A0 =C2=A0 =C2=A0 backdoor: Add guest-side library >> >> >> =C2=A0Makefile =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A03 - >> =C2=A0Makefile.objs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0| =C2=A0 21 ++++ >> =C2=A0Makefile.target =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| =C2=A0 =C2=A04 + >> =C2=A0backdoor/guest/Makefile =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 18 +++= + >> =C2=A0backdoor/guest/common.c =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0130 +++= ++++++++++++++++++++++++ >> =C2=A0backdoor/guest/qemu-backdoor.h | =C2=A0 50 ++++++++++ >> =C2=A0backdoor/qemu/qemu-backdoor.h =C2=A0| =C2=A0 29 ++++++ >> =C2=A0backdoor/qemu/softmmu.c =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0124 +++= +++++++++++++++++++++++ >> =C2=A0backdoor/qemu/user.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A019= 4 >> ++++++++++++++++++++++++++++++++++++++++ >> =C2=A0backdoor/qemu/user.h =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 1= 7 ++++ >> =C2=A0bsd-user/main.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| =C2=A0 25 +++++ >> =C2=A0bsd-user/mmap.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| =C2=A0 =C2=A07 + >> =C2=A0configure =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0| =C2=A0 35 +++++++ >> =C2=A0darwin-user/main.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2= =A0 25 +++++ >> =C2=A0darwin-user/mmap.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2= =A0 =C2=A07 + >> =C2=A0docs/backdoor.txt =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= | =C2=A0144 ++++++++++++++++++++++++++++++ >> =C2=A0hw/pci.h =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A01 >> =C2=A0linux-user/main.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= | =C2=A0 30 ++++++ >> =C2=A0linux-user/mmap.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= | =C2=A0 =C2=A07 + >> =C2=A019 files changed, 869 insertions(+), 2 deletions(-) >> =C2=A0create mode 100644 backdoor/guest/Makefile >> =C2=A0create mode 100644 backdoor/guest/common.c >> =C2=A0create mode 100644 backdoor/guest/qemu-backdoor.h >> =C2=A0create mode 100644 backdoor/qemu/qemu-backdoor.h >> =C2=A0create mode 100644 backdoor/qemu/softmmu.c >> =C2=A0create mode 100644 backdoor/qemu/user.c >> =C2=A0create mode 100644 backdoor/qemu/user.h >> =C2=A0create mode 100644 docs/backdoor.txt >> >> > > >