Received: from eggs.gnu.org ([2001:4830:134:3::10]:54578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlEDg-0006Ir-EQ for qemu-devel@nongnu.org; Fri, 16 May 2014 05:14:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlEDa-0001dI-0i for qemu-devel@nongnu.org; Fri, 16 May 2014 05:14:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlEDZ-0001dC-NQ for qemu-devel@nongnu.org; Fri, 16 May 2014 05:14:17 -0400 Date: Fri, 16 May 2014 17:14:24 +0800 From: Fam Zheng Message-ID: <20140516091424.GJ1941@T430.nay.redhat.com> References: <20140514154130.10746.1412.stgit@bahia.local> <20140514154137.10746.94708.stgit@bahia.local> <20140515060425.GA31192@grmbl.mre> <20140515062351.GB14456@redhat.com> <20140515064635.GB31192@grmbl.mre> <20140515090449.2db0cbe0@bahia.local> <537486D2.1060609@suse.de> <20140515120826.050cf6f8@bahia.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140515120826.050cf6f8@bahia.local> Subject: Re: [Qemu-devel] [PATCH RFC 1/8] virtio: add subsections to the migration stream List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: Kevin Wolf , Anthony Liguori , "Michael S. Tsirkin" , Juan Quintela , Alexander Graf , qemu-devel@nongnu.org, Stefan Hajnoczi , Amit Shah , Paolo Bonzini , Andreas =?iso-8859-1?Q?F=E4rber?= On Thu, 05/15 12:08, Greg Kurz wrote: > > > The main problem I see is that virtio sucks: as you see in patch 8, we have > > > to be careful not to call vring or virtqueue stuff before the device knows > > > its endianness or it breaks... I need to study how the virtio-bus gets > > > migrated to ensure the endian section is streamed before the devices. > > > > There is no ordering guarantee. The state needs to be migrated in the > > device or bus where it sits, if post-load processing is required; i.e., > > if it's in VirtIODevice then something like this series, if it were on > > VirtioBus exclusively (device asking bus for its endianness each time > > and does not do post-load stuff) then endianness could be migrated as a > > new bus section. Not sure if that would help the "broken" state though? > > > > IIRW the "broken" state was proposed as a per-device property... Yes. > > Fam, > > Do you have plans about the "broken" property ? Is it still needed ? It is on my todo list. We will need it. I hope the next revision of virtio specification has a proper device status bit that the "broken" property can utilize. Thanks, Fam