From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiajM-0004LP-1H for qemu-devel@nongnu.org; Thu, 08 May 2014 22:40:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiajF-0001vC-Ta for qemu-devel@nongnu.org; Thu, 08 May 2014 22:40:11 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:10949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiajF-0001jC-6j for qemu-devel@nongnu.org; Thu, 08 May 2014 22:40:05 -0400 Message-ID: <536C3FF0.7010907@huawei.com> Date: Fri, 9 May 2014 10:39:44 +0800 From: ChenLiang MIME-Version: 1.0 References: <536C0E5A.2030703@kamp.de> In-Reply-To: <536C0E5A.2030703@kamp.de> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Question about RAM migration flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: weidong.huang@huawei.com, quintela@redhat.com, "qemu-devel@nongnu.org" , Orit Wasserman , Stefan Hajnoczi , Paolo Bonzini On 2014/5/9 7:08, Peter Lieven wrote: > Hi, > > while working on ram migration and reading through the code I realized that > qemu does not stop loading a saved VM or rejecting an incoming migration > if there is a flag in the stream that it does not understand. An unknown flag > is simply ignored. > > In the block migration code there is a catch at the end complaining about > unknown flags, but in RAM migration there isn't. > > Is this on purpose or an error? > > Peter > > > IMO, the flag in ram_load always is correct if the code of ram_save is correct. Of course, it will be much rubost to do it as block migration.