[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs |
Date: |
Tue, 4 Apr 2017 08:51:13 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 04/04/2017 07:16 AM, Kevin Wolf wrote:
>
> Now the big question is how to implement this. Just not requesting the
> write permission initially if runstate_check(RUN_STATE_INMIGRATE) is
> easy. But we need to find a place to actually request it later, after
> the mirror has completed, and before the VM is running.
>
> My first thought was that we could add a VMChangeStateHandler and just
> request the permission in there. However, requesting the permission can
> fail (e.g. because the NBD server hasn't been shut down) and we can't
> let a state transition fail from a VMChangeStateHandler.
>
> Maybe the next best thing we could do is to have a BlockDevOps callback
> for invalidate_cache/inactivate and get the permissions there. This one
> could return an error, which would be passed up the stack and eventually
> cause qmp_cont() to fail (i.e. it would refuse to resume the VM). This
> sounds workable to me.
Having 'cont' refuse when write permissions can't be grabbed after all
sounds reasonable (assuming, of course, that the common case is that the
invalidate_cache/inactivate call that triggers the callback will
normally succeed, because it means the source is now done and the
destination _should_ be able to get write access at that point).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Kevin Wolf, 2017/04/03
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Max Reitz, 2017/04/03
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Kevin Wolf, 2017/04/03
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Peter Krempa, 2017/04/03
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Kevin Wolf, 2017/04/04
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs,
Eric Blake <=
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Paolo Bonzini, 2017/04/04
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Kevin Wolf, 2017/04/04
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Paolo Bonzini, 2017/04/04
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Kevin Wolf, 2017/04/05
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Paolo Bonzini, 2017/04/05
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Kevin Wolf, 2017/04/06
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Kevin Wolf, 2017/04/06
- Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Eric Blake, 2017/04/03
Re: [Qemu-devel] nbd: Possible regression in 2.9 RCs, Eric Blake, 2017/04/03