From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr65D-0007MR-IL for qemu-devel@nongnu.org; Wed, 19 Nov 2014 09:18:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xr658-0003Mf-P8 for qemu-devel@nongnu.org; Wed, 19 Nov 2014 09:18:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr658-0003MT-IJ for qemu-devel@nongnu.org; Wed, 19 Nov 2014 09:18:06 -0500 From: Juan Quintela In-Reply-To: (Peter Maydell's message of "Wed, 19 Nov 2014 14:10:36 +0000") References: <1416254843-16859-1-git-send-email-mst@redhat.com> <1416254843-16859-3-git-send-email-mst@redhat.com> <87a93nmggx.fsf@elfo.elfo> Date: Wed, 19 Nov 2014 15:18:01 +0100 Message-ID: <8761ebmfza.fsf@elfo.elfo> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 2/5] exec: qemu_ram_alloc_device, qemu_ram_resize Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Stefan Hajnoczi , QEMU Developers , "Dr. David Alan Gilbert" , "Michael S. Tsirkin" 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? If somebody told me what they need, we can do it. Stefan, you needed something like that for data-plane? Or that memory is mapped on the guest? Later, Juan.