From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgyaH-0007dv-5a for qemu-devel@nongnu.org; Fri, 07 Dec 2012 09:07:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tgya7-00084h-Ih for qemu-devel@nongnu.org; Fri, 07 Dec 2012 09:07:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgya7-00084d-Bo for qemu-devel@nongnu.org; Fri, 07 Dec 2012 09:07:11 -0500 Message-ID: <50C1F80A.2090807@redhat.com> Date: Fri, 07 Dec 2012 15:07:06 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <1354740430-22452-1-git-send-email-stefanha@redhat.com> <1354740430-22452-5-git-send-email-stefanha@redhat.com> In-Reply-To: <1354740430-22452-5-git-send-email-stefanha@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 04/11] dataplane: add virtqueue vring code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Anthony Liguori , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Blue Swirl , khoa@us.ibm.com, Paolo Bonzini , asias@redhat.com Am 05.12.2012 21:47, schrieb Stefan Hajnoczi: > The virtio-blk-data-plane cannot access memory using the usual QEMU > functions since it executes outside the global mutex and the memory APIs > are this time are not thread-safe. > > This patch introduces a virtqueue module based on the kernel's vhost > vring code. The trick is that we map guest memory ahead of time and > access it cheaply outside the global mutex. > > Once the hardware emulation code can execute outside the global mutex it > will be possible to drop this code. > > Signed-off-by: Stefan Hajnoczi > --- > hw/Makefile.objs | 2 +- > hw/dataplane/Makefile.objs | 2 +- > hw/dataplane/vring.c | 361 +++++++++++++++++++++++++++++++++++++++++++++ > hw/dataplane/vring.h | 63 ++++++++ > trace-events | 3 + > 5 files changed, 429 insertions(+), 2 deletions(-) > create mode 100644 hw/dataplane/vring.c > create mode 100644 hw/dataplane/vring.h > > diff --git a/hw/Makefile.objs b/hw/Makefile.objs > index d581d8d..cec84bc 100644 > --- a/hw/Makefile.objs > +++ b/hw/Makefile.objs > @@ -1,4 +1,4 @@ > -common-obj-y = usb/ ide/ > +common-obj-y = usb/ ide/ dataplane/ > common-obj-y += loader.o > common-obj-$(CONFIG_VIRTIO) += virtio-console.o > common-obj-$(CONFIG_VIRTIO) += virtio-rng.o Shouldn't this hunk be in patch 3? Kevin