From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMB7E-0007tC-0Z for qemu-devel@nongnu.org; Thu, 21 Jan 2016 04:01:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMB78-0003Ja-0U for qemu-devel@nongnu.org; Thu, 21 Jan 2016 04:01:15 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:34985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMB77-0003JR-Nr for qemu-devel@nongnu.org; Thu, 21 Jan 2016 04:01:09 -0500 Received: by mail-wm0-x242.google.com with SMTP id 123so9399250wmz.2 for ; Thu, 21 Jan 2016 01:01:09 -0800 (PST) Sender: Paolo Bonzini References: From: Paolo Bonzini Message-ID: <56A09E51.4020600@redhat.com> Date: Thu, 21 Jan 2016 10:01:05 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] virtio-scsi/blk dataplane and guest memory allocation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roy Shterman , qemu-devel@nongnu.org Cc: famz@redhat.com, stefanha@redhat.com On 20/01/2016 21:12, Roy Shterman wrote: > Hi, > > I have two questions, > > First, I'm developing for Libiscsi and trying to work with virtio-scsi > dataplane or even virtio-blk dataplane and it doesn't works well. > > I'm working with latest qemu and latest Libiscsi in RedHat 7 libvirt > package. > > my iscsi xml part is : > > virtio-blk - > > > > > > > >
function='0x0'/> > > > virtio-scsi - > > > > > > >
> > >
function='0x0'/> > There is now support for dataplane in libvirt. See https://libvirt.org/formatdomain.html#elementsIOThreadsAllocation and then you can add an iothread='NN' (NN is a number) to the element. > second thing, I'm trying to look for the code where QEMU allocate all > guest memory (2 GB) in my case. Start at memory_allocate_system_memory; ultimately you'll reach qemu_anon_ram_alloc which is basically an mmap. paolo