-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Power9] [Qemu] Migration started after postcopy_ram enabled causes guest reboot in destination and guest remains running state in source as well #34
Comments
------- Comment From KURZGREG@fr.ibm.com 2018-02-02 04:09:38 EDT------- I could reproduce ^^ with upstream QEMU on both a POWER host and on my laptop. qemu-system-ppc64: Expected vmdescription section, but got 0 This behaviour isn't seen with QEMU 2.10. Bisect indicates the following commit commit 58110f0
This is hence a QEMU 2.11 regression. > when tried to kill or shutdown any one, observed Backtrace with memory map I suppose you have used completion when typing the commands in the commit e5dc1a6
This commit is present in qemu-2.11.50-1.dev.gita815ffa.el7.centos.ppc64le. I had already sent a fix for this. It was queued by Paolo Bonzini and should be |
------- Comment From KURZGREG@fr.ibm.com 2018-02-02 06:27:22 EDT------- This being said, I had a chat on irc with QEMU migration maintainer David Gilbert and he FYI, this shouldn't happen when using libvirt because it always sets postcopy-ram on both So we have three items to address here:
|
------- Comment From KURZGREG@fr.ibm.com 2018-02-07 10:57:07 EDT------- Fix is upstream: https://git.qemu.org/?p=qemu.git;a=commit;h=875fcd013ab68c64802998b22f54f0184479d21b > - improve the postcopy-ram documentation Patch sent: http://patchwork.ozlabs.org/patch/870439/ > - ensure the fix for the double-free crash gets merged Fix in maintainer's tree, will be merged shortly: |
------- Comment From KURZGREG@fr.ibm.com 2018-02-16 09:32:13 EDT------- Documentation of postcopy_ram: https://git.qemu.org/?p=qemu.git;a=commit;h=c2eb7f213a15b870f7a35ec961e4f1e0f7e2df91 double-free crash: https://git.qemu.org/?p=qemu.git;a=commit;h=4183e2ea6d092ea9d7f18af085cb1076fae08512 |
------- Comment From bssrikanth@in.ibm.com 2018-02-21 00:12:39 EDT------- |
------- Comment From KURZGREG@fr.ibm.com 2018-02-21 04:31:01 EDT------- QEMU 2.12 (expected release date: 2018-04-24) |
Tested it with latest HostOS build and issue is not observed. Thanks Greg. Qemu
|
cde:info Mirrored with LTC bug https://bugzilla.linux.ibm.com/show_bug.cgi?id=164182 </cde:info>
migration started after postcopy_ram enabled immediately triggers guest listening in destination to reboot and enters running state, also guest in the source remains to be in running state.
when tried to kill or shutdown any one, observed Backtrace with memory map failure, (attached full log)
source guest when killed:
destination guest when killed:
Steps to reproduce:
Boot healthy guest from qemu command line,
# qemu-kvm --enable-kvm --nographic -vga none -machine pseries -m 4G,slots=32,maxmem=32G -smp 16,maxcpus=32 -device virtio-blk-pci,drive=rootdisk -drive file=/home/bala/images/hostos-ppc64le.qcow2,if=none,cache=none,format=qcow2,id=rootdisk -monitor telnet:127.0.0.1:1234,server,nowait
Have another instance of qemu command in listening for migration as destination,
# qemu-kvm --enable-kvm --nographic -vga none -machine pseries -m 4G,slots=32,maxmem=32G -smp 16,maxcpus=32 -device virtio-blk-pci,drive=rootdisk -drive file=/home/bala/images/hostos-ppc64le.qcow2,if=none,cache=none,format=qcow2,id=rootdisk -monitor telnet:127.0.0.1:1235,server,nowait -incoming tcp:0:4444
Enable postcopy_ram from qemu monitor in source vm,
(qemu) migrate -d tcp:127.0.0.1:4444
It is observed that guest in listening mode at destination immediately restarts and enters running state and guest in source also remains to be in running state.
Observation:
Just enabling postcopy_ram and shutdown the guest from inside (shutdown -h now) also triggers same Backtrace with memory map failure error after VM shutsdown
System configuration:
qemu: 2.11.50-1.dev.gita815ffa.el7.centos.ppc64le
slof: SLOF-20170724-2.dev.gitea31295.el7.centos.noarch
host kernel: 4.15.0-3.dev.gitd34a158.el7.centos.ppc64le
guest kernel: 4.15.0-3.dev.gitd34a158.el7.centos.ppc64le
Attachment:
Guest backtrace error in source and destination
The text was updated successfully, but these errors were encountered: