Received: from eggs.gnu.org ([2001:4830:134:3::10]:39662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbO2S-0007e3-Dr for qemu-devel@nongnu.org; Mon, 14 Sep 2015 03:18:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbO2O-0001xR-DZ for qemu-devel@nongnu.org; Mon, 14 Sep 2015 03:18:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbO2O-0001xK-7B for qemu-devel@nongnu.org; Mon, 14 Sep 2015 03:18:52 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 5B411C0B9867 for ; Mon, 14 Sep 2015 07:18:50 +0000 (UTC) From: Markus Armbruster References: <1439939502-4722-1-git-send-email-ehabkost@redhat.com> <20150911184447.GE5920@thinpad.lan.raisama.net> <20150913121847-mutt-send-email-mst@redhat.com> Date: Mon, 14 Sep 2015 09:18:47 +0200 In-Reply-To: <20150913121847-mutt-send-email-mst@redhat.com> (Michael S. Tsirkin's message of "Sun, 13 Sep 2015 12:28:45 +0300") Message-ID: <87d1xlxyco.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] q35: Remove old machine versions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Victor Kaplansky , Eduardo Habkost , Marcel Apfelbaum , John Snow , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Paolo Bonzini , Laszlo Ersek "Michael S. Tsirkin" writes: > On Fri, Sep 11, 2015 at 03:44:47PM -0300, Eduardo Habkost wrote: >> Ping? >> >> So, what's the reason we are still keeping those old machines in the >> code? > > Victor also wanted to clean out some very old machine types for > the PIIX, too. > > But if someone created a machine with libvirt, these machine types > are now written in the XML. Failing to start guests isn't nice. > > Maybe we could drop most of the compat code, but keep the > old machine types around with most visible changes (no_floppy? anything > else?). As we can't live migrate these older machine types, > minor guest visible changes aren't a big deal if they don't > break guest boot. We've been through this before, but we can go through it once more. Choices: A. Remove old machine type A guest using it can't be started. Easy to understand on the host. An error message advising to switch to a newer machine type would be a nice touch. This is a clean break in backward compatibility. To be mentioned in release notes, obviously. B. Change old machine type in a guest-visible way Depending on the nature of the change and the guest, a guest using it either doesn't notice, copes with it successfully, or fails in guest-specific ways. If the latter, the failure can be "guest hangs", which is much harder to figure out than A. Unless we can *demonstrate* that nothing bad happens for all the guests people actually use with the old machine types, this is a different kind of backward compatibility break. Demonstrating this is feels infeasible to me, but you're welcome to try. I could call the difference between the two a tradeoff, but since we've been through this before, I'll be more blunt: choosing B robs Peter (the guy with guests where badness happens) to pay Paul (the guy with guests that cope). Paul is saved the inconvenience of having to read release notes or his logs, and change machine types. Peter pays for that with figuring out WTF his guests are doing now. As a user, I'd pick a clean break in backward compatibility over a hack that preserves effective compatibility when it works, but breaks it uncleanly when it doesn't. As a developer, I'm insisting on it. So, if you want B, the onus is on *you* to show us why nothing bad will happen.