Received: from eggs.gnu.org ([140.186.70.92]:36032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXgvZ-0004Dk-Ib for qemu-devel@nongnu.org; Mon, 05 Dec 2011 17:22:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXgvY-0000p0-1G for qemu-devel@nongnu.org; Mon, 05 Dec 2011 17:22:25 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:60652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXgvX-0000lk-Kk for qemu-devel@nongnu.org; Mon, 05 Dec 2011 17:22:23 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Mon, 05 Dec 2011 23:22:08 +0100 Message-ID: <20111205222208.31271.65662.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 0/5] backdoor: lightweight guest-to-QEMU backdoor channel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Zhi Yong Wu 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=C3=ADs Vilanova --- Changes in v2: * Rebase on 1c8a881daaca6fe0646a425b0970fb3ad25f6732 from master. * Multiple documentation fixes and clarifications. * Fixed a couple of bugs when freeing memory. * Actually call 'backdoor_fini' in user mode when exiting. * Try to auto-detect the backdoor device in the example guest library whe= n running a full-system linux. * Rewrite code to read and write into the control channel in softmmu mode= , making it much clearer and leaving endianness handling up to the user-p= rovided backdoor callbacks. Llu=C3=ADs 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 | 4 + Makefile.objs | 21 ++++ Makefile.target | 4 + backdoor/guest/Makefile | 18 ++++ backdoor/guest/common.c | 205 ++++++++++++++++++++++++++++++++++= ++++++ backdoor/guest/qemu-backdoor.h | 59 ++++++++++++ backdoor/qemu/qemu-backdoor.h | 31 ++++++ backdoor/qemu/softmmu.c | 186 ++++++++++++++++++++++++++++++++++= ++ backdoor/qemu/user.c | 202 ++++++++++++++++++++++++++++++++++= +++++ backdoor/qemu/user.h | 30 ++++++ bsd-user/main.c | 26 +++++ bsd-user/mmap.c | 7 + bsd-user/syscall.c | 13 +++ configure | 35 +++++++ darwin-user/main.c | 26 +++++ darwin-user/mmap.c | 7 + docs/backdoor.txt | 167 +++++++++++++++++++++++++++++++++ hw/pci.h | 1=20 linux-user/main.c | 32 ++++++ linux-user/mmap.c | 7 + linux-user/syscall.c | 10 ++ 21 files changed, 1089 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