Received: from eggs.gnu.org ([2001:4830:134:3::10]:35420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Wir-0005V7-BL for qemu-devel@nongnu.org; Tue, 22 Jul 2014 05:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9Wim-0002JK-0u for qemu-devel@nongnu.org; Tue, 22 Jul 2014 05:51:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Wil-0002It-OV for qemu-devel@nongnu.org; Tue, 22 Jul 2014 05:50:55 -0400 Date: Tue, 22 Jul 2014 15:20:00 +0530 From: Amit Shah Message-ID: <20140722095000.GB5922@grmbl.mre> References: <60DF1D8F-DF62-472B-AC2A-D6CC4761AE91@alex.org.uk> <53CA0744.1070800@redhat.com> <3AFC9677-55B1-4A93-BFCE-3A90FA872D2F@alex.org.uk> <53CA1E95.3030006@redhat.com> <53CA4E3D.1020005@redhat.com> <20140722071130.GF26186@grmbl.mre> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140722071130.GF26186@grmbl.mre> Subject: Re: [Qemu-devel] Live migrate, inconsistent machine types - new machine type to fix? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Bligh Cc: Paolo Bonzini , "qemu-devel@nongnu.org" On (Tue) 22 Jul 2014 [12:41:30], Amit Shah wrote: > On (Sat) 19 Jul 2014 [12:37:31], Alex Bligh wrote: > > Paolo, > > > > On 19 Jul 2014, at 11:53, Paolo Bonzini wrote: > > > > > >> However, after the block migration is finished, I now see: > > >> > > >> Receiving block device images > > >> Completed 100 % > > >> Unknown savevm section type 255 > > >> load of migration failed > > > > > > This could be another incompatibility between qemu-kvm and qemu. I know > > > we had a couple in Fedora. > > > > > >> My guess is this might be the bogus inclusion of PITCommonState > > >> per the last hunk of > > >> http://pkgs.fedoraproject.org/cgit/qemu.git/tree/0001-Fix-migration-from-qemu-kvm.patch?h=f20 > > >> > > >> Is there a technique to debug this sort of thing? > > > > > > You can try using Amit's vmstate checker. > > > > I think this requires a json output in the format given by -dump-vmstate > > (unless we're at cross purposes). qemu 1.0 does not produce such a JSON > > output. I only have the vmstate to go on (same problem exists if > > -S is used throughout so the VM never starts and without block migration). > > My long-term plan is to put all the json dumps in the git tree, so > comparing these jsons at release-time becomes easy. > > I've backported the -dump-vmstate patches to qemu-1.0, the backport is > here: > > http://paste.fedoraproject.org/119724/14060126/ > > (I'll be publishing these to my git repo soon.) > > and the json dump is here: > > http://paste.fedoraproject.org/119725/01268914/ > > Comparing qemu-1.0 to qemu-2.1 -M pc-1.0 gives a few errors: > > $ ./scripts/vmstate-static-checker.py -s v1.0-1.0.json -d upstream-20140722-v1.0.json > Section "xio3130-downstream" Description "xio3130-express-downstream-port": version error: 2 > 0 > Section "xio3130-downstream": Description "PCIDevice" missing, got "PCIEDevice" instead; skipping > Section "usb-ccid", Description "usb-ccid": expected field "abProtocolDataStructure", got "abProtocolDataStructure.data"; skipping rest > Section "ich9-ahci": Description "ahci" missing, got "ich9_ahci" instead; skipping > Section "usb-host" Section "usb-host" Description "usb-host": minimum version error: 0 < 1 > Section "ich9-usb-ehci1" Section "ich9-usb-ehci1" Description "ehci": minimum version error: 0 < 1 > Section "x3130-upstream" Description "xio3130-express-upstream-port": version error: 2 > 0 > Section "x3130-upstream": Description "PCIDevice" missing, got "PCIEDevice" instead; skipping > Section "vmware-svga", Description "vmware_vga": expected field "card", got "parent_obj"; skipping rest > Section "usb-ehci" Section "usb-ehci" Description "ehci": minimum version error: 0 < 1 > Section "apic", Description "apic": expected field "timer", got "timer_expiry"; skipping rest > Section "ioh3420" Description "ioh-3240-express-root-port": version error: 2 > 0 > Section "ioh3420": Description "PCIDevice" missing, got "PCIEDevice" instead; skipping > Section "isa-pit", Description "i8254": expected field "channels", got "channels[0].irq_disabled"; skipping rest > Section "PIIX4_PM" Section "PIIX4_PM" Description "piix4_pm": minimum version error: 2 < 3 > Section "PIIX4_PM", Description "piix4_pm": expected field "pm1a.sts", got "ar.pm1.evt.sts"; skipping rest > Section "lsi53c895a", Description "lsiscsi": expected field "dev", got "parent_obj"; skipping rest > Section "mc146818rtc", Description "mc146818rtc": expected field "current_tm.tm_sec", got "unused"; skipping rest > > Of these, section renames can be handled by whitelisting them in the > script. The version and minimum_version errors will have to be looked > at in detail. These are the ones that remain after fixing up the rest: Section "xio3130-downstream" Description "xio3130-express-downstream-port": version error: 2 > 0 Section "usb-host" Section "usb-host" Description "usb-host": minimum version error: 0 < 1 Section "ich9-usb-ehci1" Section "ich9-usb-ehci1" Description "ehci": minimum version error: 0 < 1 Section "x3130-upstream" Description "xio3130-express-upstream-port": version error: 2 > 0 Section "usb-ehci" Section "usb-ehci" Description "ehci": minimum version error: 0 < 1 Section "ioh3420" Description "ioh-3240-express-root-port": version error: 2 > 0 Section "isa-pit", Description "i8254": expected field "channels", got "channels[0].irq_disabled"; skipping rest Section "PIIX4_PM" Section "PIIX4_PM" Description "piix4_pm": minimum version error: 2 < 3 Amit