Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCZK0-0006Zs-2N for qemu-devel@nongnu.org; Mon, 23 Nov 2009 08:51:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCZJv-0006Wc-4I for qemu-devel@nongnu.org; Mon, 23 Nov 2009 08:51:15 -0500 Received: from [199.232.76.173] (port=54956 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCZJu-0006WV-SG for qemu-devel@nongnu.org; Mon, 23 Nov 2009 08:51:10 -0500 Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66]:33698 helo=homiemail-a21.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCZJu-0003lu-Am for qemu-devel@nongnu.org; Mon, 23 Nov 2009 08:51:10 -0500 Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts From: Eduardo Habkost In-reply-to: <4B09F0CA.3060705@codemonkey.ws> References: <4B0952C9.9010803@redhat.com> <4B095D86.700@codemonkey.ws> <4B09F0CA.3060705@codemonkey.ws> Date: Mon, 23 Nov 2009 11:51:03 -0200 Message-Id: <1258983457-sup-5031@blackpad.lan.raisama.net> Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Paolo Bonzini , qemu-devel Excerpts from Anthony Liguori's message of Mon Nov 23 00:17:46 -0200 2009= : > Paolo Bonzini wrote: > > > >> I don't see how this fixes anything. If you used feature bits, how d= o > >> you migrate from a version that has a feature bit that an older vers= ion > >> doesn't know about? Do you just ignore it? > > > > I'd go with chunk instead of feature bits, specifying them like in th= e=20 > > PNG specification: >=20 > You mean, each device would have multiple sections? We already use=20 > chunks for each device state. I was going to suggest that. The current section system would be a good candidate for a "capability" system. e.g. instead of adding new data to the "cpu" section and increasing its version number, you add a "cpu.pvclock-msrs" section that contains the new data. This way, if a vendor backports the fix, it doesn't mess up with the section version numbers. We could improve the API to make it easier to do, or maybe even improve the protocol/format to make the "subsection" representation more compact. Either way, my point is that using names to track new capabilities sounds better than having to agree on capability bits. >=20 > >> Migration needs to be conservative. There should be only two possibl= e > >> outcomes: 1) a successful live migration or 2) graceful failure with= the > >> source VM still running correctly. Silently ignoring things that cou= ld > >> affect the guests behavior means that it's possible that after failu= re, > >> the guest will fail in an unexpected way. > > > > It's up to the source to decide what information is extra. For=20 > > example, the state of a RNG emulation is nice-to-have, but as long as= =20 > > it is initialized from another random source on the destination you=20 > > shouldn't care. >=20 > We only migrate things that are guest visible. Everything else is left= =20 > to the user to configure. We wouldn't migrate the state of a RNG=20 > emulation provided that it doesn't have an impact on the guest. >=20 > By definition, anything that is guest visible is important because it=20 > affects the guest's behavior. Right, but I wouldn't be surprised if a user complains that "I know that my guest don't use that VM feature, so I want to be able to migrate to an older version anyway". --=20 Eduardo