All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Vivier <lvivier@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, 858585 jemmy <jemmy858585@gmail.com>
Cc: Bug 1681688 <1681688@bugs.launchpad.net>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 1681688] Re: qemu live migration failed
Date: Tue, 11 Apr 2017 16:05:54 +0200	[thread overview]
Message-ID: <2f46f9ff-ab18-3fe7-2551-11a8e36d522d@redhat.com> (raw)
In-Reply-To: <20170411135700.GM4516@noname.str.redhat.com>

On 11/04/2017 15:57, Kevin Wolf wrote:
> Am 11.04.2017 um 15:35 hat 858585 jemmy geschrieben:
>> Hi Kevin:
>>    Can you provide some information about the original bug which you want fix?
>>
>>    the original comment:
>>    Usually guest devices don't like other writers to the same image, so
>>    they use blk_set_perm() to prevent this from happening.
>>
>>    i don't find where the dest qemu will use blk_set_perm during migration.
>>    but after apply this patch, blkconf_apply_backend_options don't update the
>>    blk->root->perm.
> 
> Do I understand correctly that this is not simply live migration, but
> block live migration (with 'migrate -b')?
> 
> Can you please post a backtrace not of the successful case, but of the
> failing assertion?

It happens only with postcopy migration.

qemu-system-x86_64: /home/lvivier/Projects/qemu/block/io.c:1348:
bdrv_aligned_pwritev: Assertion `child->perm & BLK_PERM_WRITE' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff35061f7 in raise () from /lib64/libc.so.6
...
(gdb) bt
#0  0x00007ffff35061f7 in raise () from /lib64/libc.so.6
#1  0x00007ffff35078e8 in abort () from /lib64/libc.so.6
#2  0x00007ffff34ff266 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007ffff34ff312 in __assert_fail () from /lib64/libc.so.6
#4  0x0000555555a92d1a in bdrv_aligned_pwritev
(req=req@entry=0x7ffed02fae70,
    offset=offset@entry=12424523776, bytes=12288, align=align@entry=1,
    qiov=qiov@entry=0x555558601a20, flags=flags@entry=0,
child=0x555556661fb0,
    child=0x555556661fb0) at /home/lvivier/Projects/qemu/block/io.c:1348
#5  0x0000555555a93906 in bdrv_co_pwritev (child=0x555556661fb0,
    offset=offset@entry=12424523776, bytes=<optimized out>,
bytes@entry=12288,
    qiov=qiov@entry=0x555558601a20, flags=0)
    at /home/lvivier/Projects/qemu/block/io.c:1622
#6  0x0000555555a84a30 in blk_co_pwritev (blk=0x5555566565e0,
    offset=12424523776, bytes=12288, qiov=0x555558601a20,
    flags=<optimized out>)
    at /home/lvivier/Projects/qemu/block/block-backend.c:992
#7  0x0000555555a84b4a in blk_aio_write_entry (opaque=0x55555760aba0)
    at /home/lvivier/Projects/qemu/block/block-backend.c:1183
#8  0x0000555555b1639a in coroutine_trampoline (i0=<optimized out>,
    i1=<optimized out>)
    at /home/lvivier/Projects/qemu/util/coroutine-ucontext.c:79
#9  0x00007ffff3517d40 in ?? () from /lib64/libc.so.6
#10 0x00007fffffffcdd0 in ?? ()
---Type <return> to continue, or q <return> to quit---
#11 0x0000000000000000 in ?? ()

Laurent

  parent reply	other threads:[~2017-04-11 14:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11  8:01 [Qemu-devel] [Bug 1681688] [NEW] qemu live migration failed Lidong Chen
2017-04-11  8:21 ` [Qemu-devel] [Bug 1681688] " Lidong Chen
2017-04-11 13:35   ` 858585 jemmy
2017-04-11 13:57     ` Kevin Wolf
2017-04-11 14:00       ` Laurent Vivier
2017-04-11 14:05       ` Laurent Vivier [this message]
2017-04-18 19:42 ` pranith
2017-04-18 20:10 ` pranith
2020-11-17 11:52 ` Thomas Huth
2021-01-17  4:17 ` Launchpad Bug Tracker

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=2f46f9ff-ab18-3fe7-2551-11a8e36d522d@redhat.com \
    --to=lvivier@redhat.com \
    --cc=1681688@bugs.launchpad.net \
    --cc=jemmy858585@gmail.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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.