From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYBl5-0005y5-Ov for qemu-devel@nongnu.org; Fri, 03 May 2013 04:54:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYBl4-0003wx-So for qemu-devel@nongnu.org; Fri, 03 May 2013 04:54:27 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:63520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYBl4-0003wi-Mu for qemu-devel@nongnu.org; Fri, 03 May 2013 04:54:26 -0400 Received: by mail-wi0-f169.google.com with SMTP id h11so480451wiv.0 for ; Fri, 03 May 2013 01:54:25 -0700 (PDT) Date: Fri, 3 May 2013 10:54:22 +0200 From: Stefan Hajnoczi Message-ID: <20130503085422.GA24864@stefanha-thinkpad.redhat.com> References: <1367549122-2948-1-git-send-email-qemulist@gmail.com> <1367549122-2948-2-git-send-email-qemulist@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1367549122-2948-2-git-send-email-qemulist@gmail.com> Subject: Re: [Qemu-devel] [PATCH v2 1/6] hostmem: make hostmem single, not per Vring related List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: Peter Maydell , Anthony Liguori , Jan Kiszka , qemu-devel@nongnu.org, Vasilis Liaskovitis , Stefan Hajnoczi , Paolo Bonzini On Fri, May 03, 2013 at 10:45:17AM +0800, Liu Ping Fan wrote: > diff --git a/include/exec/memory.h b/include/exec/memory.h > index 9e88320..2761668 100644 > --- a/include/exec/memory.h > +++ b/include/exec/memory.h > @@ -887,6 +887,7 @@ void *address_space_map(AddressSpace *as, hwaddr addr, > void address_space_unmap(AddressSpace *as, void *buffer, hwaddr len, > int is_write, hwaddr access_len); > > +void hostmem_init(void); This should go in hostmem.h. exec.c must now include hostmem.h. You need to take care of the ./configure dependency: hostmem.o is only build when CONFIG_VIRTIO_BLK_DATA_PLANE is 'y'.