Received: from eggs.gnu.org ([2001:4830:134:3::10]:47548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSJSv-0002Dd-On for qemu-devel@nongnu.org; Wed, 27 Jul 2016 03:41:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSJSq-0007i3-PH for qemu-devel@nongnu.org; Wed, 27 Jul 2016 03:41:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSJSq-0007ht-JO for qemu-devel@nongnu.org; Wed, 27 Jul 2016 03:41:12 -0400 Date: Wed, 27 Jul 2016 09:41:09 +0200 From: Igor Mammedov Message-ID: <20160727094109.3feab23e@nial.brq.redhat.com> In-Reply-To: <20160726191928.GD3337@thinpad.lan.raisama.net> References: <1469027314-31655-1-git-send-email-ehabkost@redhat.com> <1469027314-31655-27-git-send-email-ehabkost@redhat.com> <20160726051138.GB27202@grmbl.mre> <20160726100049.7f003705@nial.brq.redhat.com> <20160726114655.GB26166@grmbl.mre> <20160726145839.3cdd8213@nial.brq.redhat.com> <20160726130906.GA24341@grmbl.mre> <20160726161604.371397e2@nial.brq.redhat.com> <20160726191928.GD3337@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 26/28] apic: Use apic_id as apic's migration instance_id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Amit Shah , qemu-devel@nongnu.org, Peter Maydell , Richard Henderson , Paolo Bonzini On Tue, 26 Jul 2016 16:19:28 -0300 Eduardo Habkost wrote: > On Tue, Jul 26, 2016 at 04:16:04PM +0200, Igor Mammedov wrote: > > On Tue, 26 Jul 2016 18:41:22 +0530 > > Amit Shah wrote: > > > > > On (Tue) 26 Jul 2016 [14:58:39], Igor Mammedov wrote: > > > > > This was flagged by a nightly run of the static checker when this > > > > > series was pulled. On a 'before' tree, ie one w/o the patches, do > > > > > this: > > > > > > > > > > qemu -dump-vmstate before.json > > > > > > > > > > and for after: > > > > > > > > > > qemu -dump-vmstate after.json > > > > > > > > > > then, > > > > > > > > > > python ./scripts/vmstate-static-checker.py -s before.json -d after.json > > > > I don't think it is valid comparison though, as it compares default PC machines. > > > > In this case it's pc-i440fx-2.6 and pc-i440fx-2.7, you see the difference > > > > which is expected due to instance_id change. > > > > > > > > You shouldn't see it when comparing same machine types. > > > > > > No, this is comparing the git tree just before and after the series is > > > applied. > > I've checked dump_vmstate_json_to_file() implementation and it looks like > > it dumps only dc->vmsd enabled devices. > > > > In this patch vmstate registration has been moved to to apic_comon_realize() > > that's why dump_vmstate_json_to_file() doesn't dump apics anymore and you see the change > > So, can anything break because of this difference, or is this > just a limitation of -dump-vmstate? it's limitation of -dump-vmstate, there shouldn't be anything breaking because of the change.