From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWFa3-0008Pf-A0 for qemu-devel@nongnu.org; Wed, 29 Jul 2009 16:16:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWFZy-0008Lo-Tg for qemu-devel@nongnu.org; Wed, 29 Jul 2009 16:16:54 -0400 Received: from [199.232.76.173] (port=52963 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWFZy-0008Le-Id for qemu-devel@nongnu.org; Wed, 29 Jul 2009 16:16:50 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44778) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWFZx-0008PV-QK for qemu-devel@nongnu.org; Wed, 29 Jul 2009 16:16:50 -0400 Date: Wed, 29 Jul 2009 23:14:44 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] [PATCH v2] make windows notice media change Message-ID: <20090729201444.GC7382@redhat.com> References: <20090729120719.GN30449@redhat.com> <200907292052.35755.paul@codesourcery.com> <5b31733c0907291256r734416d2ifbe8b72105eba27c@mail.gmail.com> <200907292105.19006.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200907292105.19006.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Filip Navara , qemu-devel@nongnu.org On Wed, Jul 29, 2009 at 09:05:18PM +0100, Paul Brook wrote: > > >> BTW, why would there be the version parameter in the first place if it > > >> wasn't supposed to load older versions?! > > > > > > Like I already said: it's there to prevent an old version being loaded > > > accidentally. Without this an incompatible change will result in > > > anything from a crash to corrupt/inconsistent guest state. Versioning > > > allows us to reject the snapshot and fail safely. > > > > If that was the case then the if (version != x) return -EINVAL check could > > have been in the generic code and there would be no need for the version > > parameter in the load function. > > Preventing loading bad snapshots is the primary goal. > > Allowing loading old snapshots is a secondary feature. Personally I think it's > not worth the effort, and in practice is unlikely to be feasible for whole > machines over any significant length of time. However I don't feel strongly > enough to actually rip the code out. > Agree. All this "migrate from older version" just produce code that is never tested in practice. -- Gleb.