Received: from eggs.gnu.org ([2001:4830:134:3::10]:40050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr1QC-0007fQ-1Q for qemu-devel@nongnu.org; Wed, 19 Nov 2014 04:19:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xr1Q5-0000cY-TN for qemu-devel@nongnu.org; Wed, 19 Nov 2014 04:19:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr1Q5-0000cQ-L5 for qemu-devel@nongnu.org; Wed, 19 Nov 2014 04:19:25 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAJ9JOnR020333 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 19 Nov 2014 04:19:24 -0500 From: Juan Quintela In-Reply-To: <20141118074904.GA19745@redhat.com> (Michael S. Tsirkin's message of "Tue, 18 Nov 2014 09:49:04 +0200") References: <1416254843-16859-1-git-send-email-mst@redhat.com> <1416254843-16859-3-git-send-email-mst@redhat.com> <546AE14E.7060606@redhat.com> <20141118074904.GA19745@redhat.com> Date: Wed, 19 Nov 2014 10:19:22 +0100 Message-ID: <87y4r7o8dh.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: "Michael S. Tsirkin" Cc: Paolo Bonzini , qemu-devel@nongnu.org, dgilbert@redhat.com "Michael S. Tsirkin" wrote: > On Tue, Nov 18, 2014 at 07:03:58AM +0100, Paolo Bonzini wrote: >> >> >> On 17/11/2014 21:08, Michael S. Tsirkin wrote: >> > Add API to manage on-device RAM. >> > This looks just like regular RAM from migration POV, >> > but has two special properties internally: >> > >> > - block is sized on migration, making it easier to extend >> > without breaking migration compatibility or wasting >> > virtual memory >> > - callers must specify an upper bound on size >> >> Also, I am afraid that this design could make it easier to introduce >> backwards-incompatible changes. > > > Well the point is exactly to make it easy to make *compatible* > changes. > > As I mentioned in the cover letter, it's not just ACPI. > For example, we now change boot index dynamically. > People using large fw cfg blobs, e.g. -initrd, would benefit from > ability to change the blob dynamically. > There could be other examples. changing the size of the initrd, on the fly and wanting to migrate? Is that a real use case? One that we should really care? >> I very much prefer to have >> user-controlled ACPI information (coming from the command-line) >> byte-for-byte identical for a given machine type. Patches for that have >> been on the list for almost two months, and it's not nice. >> >> Paolo > > I guess we just disagree on whether these patches will effectively achieve > this goal. For example, some people want to rewrite iasl bits, > generating everything in C. This will affect static bits too. > I don't want to make every single change in code conditional > on a machine type. You can't migrate with a different BIOS on destination, period. That is what is making this whole issue complicated. We have two clear options: a- require BIOS & memory regions to be exactly the same in both sides. No need to add compat machinery. b- trying to accomodate any potential change that could appear and use the same BIOS. IMHO, b) is just asking for trouble. Being able to go from random changes to random changes look strange. Just think about it for a second. We are sending more data for some regions that it was allocated. And we just grow the regions and expect that everything is going to be ok. It is me, or this goes against every security discipline that I can think of? Later, Juan.