The first commit that causes this issue is: b94020268e0b6659499e250d25346baaa9888fed (spapr_cpu_core: migrate per- CPU data)
Simpler way to reproduce: 1. Hotplug a CPU 2. Hot unplug it 3. Migrate the VM (will fail) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1785972 Title: v3.0.0-rc4: VM fails to start after vcpuhotunplug, managedsave sequence Status in QEMU: New Bug description: VM fails to start after vcpu hot un-plug, managedsave sequence Host info: Kernel: 4.18.0-rc8-00002-g1236568ee3cb qemu: commit 6ad90805383e6d04b3ff49681b8519a48c9f4410 (HEAD -> master, tag: v3.0.0-rc4) QEMU emulator version 2.12.94 (v3.0.0-rc4-dirty) libvirt: commit 087de2f5a3dffb27d2eeb0c50a86d5d6984e5a5e (HEAD -> master) libvirtd (libvirt) 4.6.0 Guest Kernel: 4.18.0-rc8-00002-g1236568ee3cb Steps to reproduce: 1. Start a guest(VM) with 2 current , 4 max vcpus virsh start vm1 Domain vm1 started 2. Hotplug 2 vcpus virsh setvcpus vm1 4 --live 3. Hot unplug 2 vcpus virsh setvcpus vm1 2 --live 4. Managedsave the VM virsh managedsave vm1 Domain vm1 state saved by libvirt 5. Start the VM ---Fails to start virsh start vm1 error: Failed to start domain avocado-vt-vm1 error: internal error: qemu unexpectedly closed the monitor: 2018-08-08T06:27:53.853818Z qemu: Unknown savevm section or instance 'spapr_cpu' 2 2018-08-08T06:27:53.854949Z qemu: load of migration failed: Invalid argument Testcase: avocado run libvirt_vcpu_plug_unplug.positive_test.vcpu_set.live.vm_operate.managedsave_with_unplug --vt-type libvirt --vt-extra-params emulator_path=/usr/share/avocado-plugins-vt/bin/qemu create_vm_libvirt=yes kill_vm_libvirt=yes env_cleanup=yes smp=8 backup_image_before_testing=no libvirt_controller=virtio-scsi scsi_hba=virtio-scsi-pci drive_format=scsi-hd use_os_variant=no restore_image_after_testing=no vga=none display=nographic kernel=/home/kvmci/linux/vmlinux kernel_args='root=/dev/sda2 rw console=tty0 console=ttyS0,115200 init=/sbin/init initcall_debug' take_regular_screendumps=no --vt-guest-os JeOS.27.ppc64le JOB ID : 1f869477ad87e7d7e7e7777f631ae08965f41a74 JOB LOG : /root/avocado/job-results/job-2018-08-08T02.42-1f86947/job.log (1/1) type_specific.io-github-autotest-libvirt.libvirt_vcpu_plug_unplug.positive_test.vcpu_set.live.vm_operate.managedsave_with_unplug: ERROR (91.58 s) RESULTS : PASS 0 | ERROR 1 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0 JOB TIME : 95.89 s To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1785972/+subscriptions