From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCOV0-0002oi-It for qemu-devel@nongnu.org; Sun, 22 Nov 2009 21:17:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCOUw-0002jh-Qk for qemu-devel@nongnu.org; Sun, 22 Nov 2009 21:17:54 -0500 Received: from [199.232.76.173] (port=47937 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCOUw-0002jL-Hc for qemu-devel@nongnu.org; Sun, 22 Nov 2009 21:17:50 -0500 Received: from mail-yw0-f171.google.com ([209.85.211.171]:54412) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCOUw-0006M6-9B for qemu-devel@nongnu.org; Sun, 22 Nov 2009 21:17:50 -0500 Received: by ywh1 with SMTP id 1so4339234ywh.18 for ; Sun, 22 Nov 2009 18:17:49 -0800 (PST) Message-ID: <4B09F0CA.3060705@codemonkey.ws> Date: Sun, 22 Nov 2009 20:17:46 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts References: <4B0952C9.9010803@redhat.com> <4B095D86.700@codemonkey.ws> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Paolo Bonzini wrote: > >> I don't see how this fixes anything. If you used feature bits, how do >> you migrate from a version that has a feature bit that an older version >> doesn't know about? Do you just ignore it? > > I'd go with chunk instead of feature bits, specifying them like in the > PNG specification: You mean, each device would have multiple sections? We already use chunks for each device state. >> Migration needs to be conservative. There should be only two possible >> outcomes: 1) a successful live migration or 2) graceful failure with the >> source VM still running correctly. Silently ignoring things that could >> affect the guests behavior means that it's possible that after failure, >> the guest will fail in an unexpected way. > > It's up to the source to decide what information is extra. For > example, the state of a RNG emulation is nice-to-have, but as long as > it is initialized from another random source on the destination you > shouldn't care. We only migrate things that are guest visible. Everything else is left to the user to configure. We wouldn't migrate the state of a RNG emulation provided that it doesn't have an impact on the guest. By definition, anything that is guest visible is important because it affects the guest's behavior. Regards, Anthony Liguori