From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAdJR-0006t6-2y for qemu-devel@nongnu.org; Mon, 03 Oct 2011 03:51:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAdJP-0004T0-Qw for qemu-devel@nongnu.org; Mon, 03 Oct 2011 03:51:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAdJP-0004Sp-Ii for qemu-devel@nongnu.org; Mon, 03 Oct 2011 03:51:43 -0400 Date: Mon, 3 Oct 2011 09:49:17 +0200 From: Alon Levy Message-ID: <20111003074917.GA16798@bow> References: <20111002132436.GD11521@bow.tlv.redhat.com> <20111002143140.GH11521@bow.tlv.redhat.com> <4E889B67.1020900@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E889B67.1020900@redhat.com> Subject: Re: [Qemu-devel] [Spice-devel] viewing continuous guest virtual memory as continuous in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Dave Airlie , qemu-devel@nongnu.org, spice-devel@freedesktop.org On Sun, Oct 02, 2011 at 07:12:07PM +0200, Avi Kivity wrote: > On 10/02/2011 04:31 PM, Alon Levy wrote: > >On Sun, Oct 02, 2011 at 03:24:36PM +0200, Alon Levy wrote: > >> Hi, > >> > > > >Converting qemu's ram allocation to a mmap and using remap_file_pages seems > >like it could work. Any ideas why it wouldn't? > > > > It's linux-specific. Also, does it work on anonymous memory? Anonymous: I don't think so. I've done shm_open and mmap'ed it twice, one for the ram and the other to do remap_file_pages on it. Couldn't figure out how to get two mmaps pointing to the same physical memory without shm_open. > > I suggest using scatter-gather, though it's annoying. > > -- > error compiling committee.c: too many arguments to function > > _______________________________________________ > Spice-devel mailing list > Spice-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/spice-devel