From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9H2s-00064L-OG for qemu-devel@nongnu.org; Thu, 29 Sep 2011 09:53:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9H2o-00057U-Bq for qemu-devel@nongnu.org; Thu, 29 Sep 2011 09:53:02 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:55244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9H2o-00056t-2I for qemu-devel@nongnu.org; Thu, 29 Sep 2011 09:52:58 -0400 Received: by yxl11 with SMTP id 11so812418yxl.4 for ; Thu, 29 Sep 2011 06:52:56 -0700 (PDT) Message-ID: <4E847834.7070805@codemonkey.ws> Date: Thu, 29 Sep 2011 08:52:52 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <20110929134727.19559.54734.stgit@ginnungagap.bsc.es> In-Reply-To: <20110929134727.19559.54734.stgit@ginnungagap.bsc.es> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: =?UTF-8?B?TGx1w61zIFZpbGFub3Zh?= Cc: Zhi Yong Wu , qemu-devel@nongnu.org On 09/29/2011 08:47 AM, Lluís Vilanova wrote: > Provides the ability for the guest to communicate with user-provided code inside > QEMU itself, using a lightweight mechanism. > > See first commit for a full description. > > Signed-off-by: Lluís Vilanova We already have two "backdoors" in QEMU: ivshmem and virtio-serial. Can you discuss why these are insufficient for your purposes? Also, what's the advantage of having a backdoor mechanism both for softmmu and user? I can't think of a practical use-case for it. Regards, Anthony Liguori > --- > > Lluís Vilanova (5): > backdoor: Add documentation > backdoor: Add build infrastructure > backdoor: [*-user] Add QEMU-side proxy to "libbackdoor.a" > backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a" > backdoor: Add guest-side library > > > Makefile | 3 - > Makefile.objs | 21 ++++ > Makefile.target | 4 + > backdoor/guest/Makefile | 18 ++++ > backdoor/guest/common.c | 130 +++++++++++++++++++++++++++ > backdoor/guest/qemu-backdoor.h | 50 ++++++++++ > backdoor/qemu/qemu-backdoor.h | 29 ++++++ > backdoor/qemu/softmmu.c | 124 ++++++++++++++++++++++++++ > backdoor/qemu/user.c | 194 ++++++++++++++++++++++++++++++++++++++++ > backdoor/qemu/user.h | 17 ++++ > bsd-user/main.c | 25 +++++ > bsd-user/mmap.c | 7 + > configure | 35 +++++++ > darwin-user/main.c | 25 +++++ > darwin-user/mmap.c | 7 + > docs/backdoor.txt | 144 ++++++++++++++++++++++++++++++ > hw/pci.h | 1 > linux-user/main.c | 30 ++++++ > linux-user/mmap.c | 7 + > 19 files changed, 869 insertions(+), 2 deletions(-) > create mode 100644 backdoor/guest/Makefile > create mode 100644 backdoor/guest/common.c > create mode 100644 backdoor/guest/qemu-backdoor.h > create mode 100644 backdoor/qemu/qemu-backdoor.h > create mode 100644 backdoor/qemu/softmmu.c > create mode 100644 backdoor/qemu/user.c > create mode 100644 backdoor/qemu/user.h > create mode 100644 docs/backdoor.txt > >