All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Yuchen <yu.chen@h3c.com>, pbonzini@redhat.com, mst@redhat.com
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel][bug] qemu crash when migrate vm and vm's disks
Date: Thu, 8 Apr 2021 12:27:01 +0100	[thread overview]
Message-ID: <YG7ohYazszYMnb7k@work-vm> (raw)
In-Reply-To: <9cd6ccabceff42f9afbaed917f77c9b2@h3c.com>

* 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=<optimized out>)
>     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=<optimized out>)
>     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



  reply	other threads:[~2021-04-08 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08  9:04 [Qemu-devel][bug] qemu crash when migrate vm and vm's disks Yuchen
2021-04-08 11:27 ` Dr. David Alan Gilbert [this message]
2021-04-09  7:06 Yuchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YG7ohYazszYMnb7k@work-vm \
    --to=dgilbert@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yu.chen@h3c.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.