From: Juan Quintela <quintela@redhat.com>
To: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>
Cc: qemu-devel@nongnu.org, kwolf@redhat.com, jdenemar@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 for 2.13] migration: Don't activate block devices if using -S
Date: Mon, 30 Apr 2018 16:15:38 +0200 [thread overview]
Message-ID: <87zi1k3hmd.fsf@secure.laptop> (raw)
In-Reply-To: <20180416170930.35504-1-dgilbert@redhat.com> (David Alan Gilbert's message of "Mon, 16 Apr 2018 18:09:30 +0100")
"Dr. David Alan Gilbert (git)" <dgilbert@redhat.com> wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> Activating the block devices causes the locks to be taken on
> the backing file. If we're running with -S and the destination libvirt
> hasn't started the destination with 'cont', it's expecting the locks are
> still untaken.
I will try to change the naming, because we have:
- don't activate block device
- and we stop calling bdrv_invalidate_cache_all
i.e. behind the scenes bdrv_invalidate_cache activates a block device,
not bad O:-)
> Don't activate the block devices if we're not going to autostart the VM;
> 'cont' already will do that anyway. This change is tied to the new
> migration capability 'late-block-activate' that defaults to off, keeping
> the old behaviour by default.
I have read the old discussion, and we have:
- current patch (not call bdrv_invalidate_cache() at bottom_handler)
- kevin approach: create two commands
activate_devices/deactivate_devices and make libvirt use them correctly
I am not really sure which one is better, but as the patch author is
Dave ....
> bz: https://bugzilla.redhat.com/show_bug.cgi?id=1560854
> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> migration/migration.c | 34 +++++++++++++++++++++++++++-------
> qapi/migration.json | 6 +++++-
> 2 files changed, 32 insertions(+), 8 deletions(-)
Reviewed-by: Juan Quintela <quintela@redhat.com>
> +# @late-block-activate: If enabled, the destination will not activate block
> +# devices (and thus take locks) immediately at the end of migration.
> +# (since 2.13)
> +#
> # Since: 1.2
> ##
> { 'enum': 'MigrationCapability',
> 'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks',
> 'compress', 'events', 'postcopy-ram', 'x-colo', 'release-ram',
> 'block', 'return-path', 'pause-before-switchover', 'x-multifd',
> - 'dirty-bitmaps' ] }
> + 'dirty-bitmaps', 'late-block-activate' ] }
>
> ##
> # @MigrationCapabilityStatus:
Just wondering, is there a way to enable a capability for 2.13 and
newer, and not activate it for older versions? I *think* that this
feature should be on in new releases, and off by default with old
machine types. But I haven't through long enough to know what needs to
be changed.
Later, Juan.
next prev parent reply other threads:[~2018-04-30 14:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-16 17:09 [Qemu-devel] [PATCH v2 for 2.13] migration: Don't activate block devices if using -S Dr. David Alan Gilbert (git)
2018-04-30 14:15 ` Juan Quintela [this message]
2018-06-04 3:56 ` Juan Quintela
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=87zi1k3hmd.fsf@secure.laptop \
--to=quintela@redhat.com \
--cc=dgilbert@redhat.com \
--cc=jdenemar@redhat.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.