From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr6vy-00036y-9Z for qemu-devel@nongnu.org; Wed, 19 Nov 2014 10:12:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xr6vs-0006uq-28 for qemu-devel@nongnu.org; Wed, 19 Nov 2014 10:12:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr6vr-0006ue-RW for qemu-devel@nongnu.org; Wed, 19 Nov 2014 10:12:36 -0500 Date: Wed, 19 Nov 2014 17:12:30 +0200 From: "Michael S. Tsirkin" Message-ID: <20141119151230.GB27753@redhat.com> References: <1416254843-16859-1-git-send-email-mst@redhat.com> <1416254843-16859-3-git-send-email-mst@redhat.com> <87a93nmggx.fsf@elfo.elfo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 2/5] exec: qemu_ram_alloc_device, qemu_ram_resize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , QEMU Developers , "Dr. David Alan Gilbert" , Juan Quintela On Wed, Nov 19, 2014 at 02:10:36PM +0000, Peter Maydell wrote: > On 19 November 2014 14:07, Juan Quintela wrote: > > My understanding is that it is a "trick". We have internal memory for a > > device that is needed for the emulation, but not showed to the guest. > > And it is big enough that we want to save it during the "live" stage of > > migration, so we mark it as RAM. if it is somekind of cash, we can just > > enlarge it on destination, and it don't matter. If this has anything > > different on the other part of the RAM, we are on trouble. > > Would it be feasible to just have the migration code provide > an API for registering things to be migrated in the live > migration stage, rather than creating memory regions which > you can't actually use for most of the purposes the memory > region API exists for? > > -- PMM We could, it's just much more work, touching a lot more places. -- MST