user-level: 0.699 KVM: 0.691 operating system: 0.670 mistranslation: 0.659 hypervisor: 0.656 peripherals: 0.646 TCG: 0.642 ppc: 0.642 x86: 0.637 i386: 0.633 virtual: 0.629 vnc: 0.625 risc-v: 0.621 VMM: 0.621 debug: 0.620 kernel: 0.620 PID: 0.614 permissions: 0.613 register: 0.609 graphic: 0.603 assembly: 0.602 device: 0.601 semantic: 0.600 alpha: 0.598 arm: 0.598 boot: 0.598 socket: 0.596 architecture: 0.594 performance: 0.594 files: 0.592 network: 0.491 [Qemu-devel][bug] qemu crash when migrate vm and vm's disks When migrate vm and vm’s disks target host qemu crash due to an invalid free. #0  object_unref (obj=0x1000) at /qemu-2.12/rpmbuild/BUILD/qemu-2.12/qom/object.c:920 #1  0x0000560434d79e79 in memory_region_unref (mr=) at /qemu-2.12/rpmbuild/BUILD/qemu-2.12/memory.c:1730 #2  flatview_destroy (view=0x560439653880) at /qemu-2.12/rpmbuild/BUILD/qemu-2.12/memory.c:292 #3  0x000056043514dfbe in call_rcu_thread (opaque=) at /qemu-2.12/rpmbuild/BUILD/qemu-2.12/util/rcu.c:284 #4  0x00007fbc2b36fe25 in start_thread () from /lib64/libpthread.so.0 #5  0x00007fbc2b099bad in clone () from /lib64/libc.so.6 test base qemu-2.12.0 , but use lastest qemu(v6.0.0-rc2) also reproduce. As follow patch can resolve this problem: https://lists.gnu.org/archive/html/qemu-devel/2018-07/msg02272.html Steps to reproduce: (1) Create VM (virsh define) (2) Add 64 virtio scsi disks (3) migrate vm and vm’disks ------------------------------------------------------------------------------------------------------------------------------------- 本邮件及其附件含有新华三集团的保密信息,仅限于发送给上面地址中列出 的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、 或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本 邮件! This e-mail and its attachments contain confidential information from New H3C, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! * Yuchen (yu.chen@h3c.com) wrote: > When migrate vm and vm’s disks target host qemu crash due to an invalid free. > > #0 object_unref (obj=0x1000) at > /qemu-2.12/rpmbuild/BUILD/qemu-2.12/qom/object.c:920 > #1 0x0000560434d79e79 in memory_region_unref (mr=) > at /qemu-2.12/rpmbuild/BUILD/qemu-2.12/memory.c:1730 > #2 flatview_destroy (view=0x560439653880) at > /qemu-2.12/rpmbuild/BUILD/qemu-2.12/memory.c:292 > #3 0x000056043514dfbe in call_rcu_thread (opaque=) > at /qemu-2.12/rpmbuild/BUILD/qemu-2.12/util/rcu.c:284 > #4 0x00007fbc2b36fe25 in start_thread () from /lib64/libpthread.so.0 > #5 0x00007fbc2b099bad in clone () from /lib64/libc.so.6 > > test base qemu-2.12.0,but use lastest qemu(v6.0.0-rc2) also reproduce. Interesting. > As follow patch can resolve this problem: > https://lists.gnu.org/archive/html/qemu-devel/2018-07/msg02272.html That's a pci/rcu change; ccing Paolo and Micahel. > Steps to reproduce: > (1) Create VM (virsh define) > (2) Add 64 virtio scsi disks Is that hot adding the disks later, or are they included in the VM at creation? Can you provide a libvirt XML example? > (3) migrate vm and vm’disks What do you mean by 'and vm disks' - are you doing a block migration? Dave > ------------------------------------------------------------------------------------------------------------------------------------- > 本邮件及其附件含有新华三集团的保密信息,仅限于发送给上面地址中列出 > 的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、 > 或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本 > 邮件! > This e-mail and its attachments contain confidential information from New > H3C, which is > intended only for the person or entity whose address is listed above. Any use > of the > information contained herein in any way (including, but not limited to, total > or partial > disclosure, reproduction, or dissemination) by persons other than the intended > recipient(s) is prohibited. If you receive this e-mail in error, please > notify the sender > by phone or email immediately and delete it! -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK > -----邮件原件----- > 发件人: Dr. David Alan Gilbert [ mailto:dgilbert@redhat.com ] > 发送时间: 2021å¹´4月8日 19:27 > 收件人: yuchen (Cloud) ; pbonzini@redhat.com; > mst@redhat.com > 抄送: qemu-devel@nongnu.org > 主题: Re: [Qemu-devel][bug] qemu crash when migrate vm and vm's disks > > * Yuchen (yu.chen@h3c.com) wrote: > > When migrate vm and vm’s disks target host qemu crash due to an invalid > free. > > > > #0 object_unref (obj=0x1000) at > > /qemu-2.12/rpmbuild/BUILD/qemu-2.12/qom/object.c:920 > > #1 0x0000560434d79e79 in memory_region_unref (mr=) > > at /qemu-2.12/rpmbuild/BUILD/qemu-2.12/memory.c:1730 > > #2 flatview_destroy (view=0x560439653880) at > > /qemu-2.12/rpmbuild/BUILD/qemu-2.12/memory.c:292 > > #3 0x000056043514dfbe in call_rcu_thread (opaque=) > > at /qemu-2.12/rpmbuild/BUILD/qemu-2.12/util/rcu.c:284 > > #4 0x00007fbc2b36fe25 in start_thread () from /lib64/libpthread.so.0 > > #5 0x00007fbc2b099bad in clone () from /lib64/libc.so.6 > > > > test base qemu-2.12.0,but use lastest qemu(v6.0.0-rc2) also reproduce. > > Interesting. > > > As follow patch can resolve this problem: > > https://lists.gnu.org/archive/html/qemu-devel/2018-07/msg02272.html > > That's a pci/rcu change; ccing Paolo and Micahel. > > > Steps to reproduce: > > (1) Create VM (virsh define) > > (2) Add 64 virtio scsi disks > > Is that hot adding the disks later, or are they included in the VM at > creation? > Can you provide a libvirt XML example? > Include disks in the VM at creation vm disks xml (only virtio scsi disks):
vm disks xml (only virtio disks):
> > (3) migrate vm and vm’disks > > What do you mean by 'and vm disks' - are you doing a block migration? > Yes, block migration. In fact, only migration domain also reproduced. > Dave > > > ---------------------------------------------------------------------- > > --------------------------------------------------------------- > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK ------------------------------------------------------------------------------------------------------------------------------------- 本邮件及其附件含有新华三集团的保密信息,仅限于发送给上面地址中列出 的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、 或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本 邮件! This e-mail and its attachments contain confidential information from New H3C, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!