From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0B8O-0001HF-1h for qemu-devel@nongnu.org; Wed, 03 Jun 2015 12:03:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0B8I-0008GT-3w for qemu-devel@nongnu.org; Wed, 03 Jun 2015 12:03:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0B8H-0008GP-VY for qemu-devel@nongnu.org; Wed, 03 Jun 2015 12:03:10 -0400 Date: Wed, 3 Jun 2015 18:03:05 +0200 From: "Michael S. Tsirkin" Message-ID: <20150603180200-mutt-send-email-mst@redhat.com> References: <20150601141054.GA11304@redhat.com> <20150601141343.GH13155@redhat.com> <20150601153237.GE2120@HEDWIG.INI.CMU.EDU> <20150601174409-mutt-send-email-mst@redhat.com> <20150601180022.GI2120@HEDWIG.INI.CMU.EDU> <20150601203126.GK2120@HEDWIG.INI.CMU.EDU> <1433229074.1637.7.camel@nilsson.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433229074.1637.7.camel@nilsson.home.kraxel.org> Subject: Re: [Qemu-devel] fw cfg files cross-version migration races List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: "Gabriel L. Somlo" , qemu-devel@nongnu.org, "Gabriel L. Somlo" , pbonzini@redhat.com, lersek@redhat.com On Tue, Jun 02, 2015 at 09:11:14AM +0200, Gerd Hoffmann wrote: > Hi, > > > I guess the only reason this isn't a problem is that nobody currently > > attempts to access fw_cfg after a migration ? :) > > Accessing fw_cfg after migration is fine. Problem is this ... > > (1) read directory > (2) migrate > (3) read file > > ... in case the file ordering happens to be different on the destination > host due to initialization order changes. > > So, sorting entries (and the index assigned too) should fix this, right? > That looks easiest to me. > > cheers, > Gerd Right. The only issue is we are introducing a breakage even if there was otherwise no reason for it otherwise. I'll let you make the decision. -- MST