From: Peter Xu <peterx@redhat.com>
To: Alexey Perevalov <a.perevalov@samsung.com>
Cc: qemu-devel@nongnu.org, dgilbert@redhat.com, i.maximets@samsung.com
Subject: Re: [Qemu-devel] [PATCH v8 02/11] migration: pass MigrationIncomingState* into migration check functions
Date: Fri, 9 Jun 2017 15:14:55 +0800 [thread overview]
Message-ID: <20170609071455.GK3628@pxdev.xzpeter.org> (raw)
In-Reply-To: <b1260f4a-513e-b5c0-2cef-b9b6e0b65d17@samsung.com>
On Fri, Jun 09, 2017 at 09:21:38AM +0300, Alexey Perevalov wrote:
> On 06/09/2017 07:10 AM, Peter Xu wrote:
> >On Wed, Jun 07, 2017 at 12:46:29PM +0300, Alexey Perevalov wrote:
> >>That tiny refactoring is necessary to be able to set
> >>UFFD_FEATURE_THREAD_ID while requesting features, and then
> >>to create downtime context in case when kernel supports it.
> >>
> >>Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
> >>---
> >> migration/migration.c | 3 ++-
> >> migration/postcopy-ram.c | 10 +++++-----
> >> migration/postcopy-ram.h | 2 +-
> >> migration/savevm.c | 2 +-
> >> 4 files changed, 9 insertions(+), 8 deletions(-)
> >>
> >>diff --git a/migration/migration.c b/migration/migration.c
> >>index 48c94c9..2a77636 100644
> >>--- a/migration/migration.c
> >>+++ b/migration/migration.c
> >>@@ -726,6 +726,7 @@ void qmp_migrate_set_capabilities(MigrationCapabilityStatusList *params,
> >> Error **errp)
> >> {
> >> MigrationState *s = migrate_get_current();
> >>+ MigrationIncomingState *mis = migration_incoming_get_current();
> >If this patch is only servicing patch 6, I'd prefer in patch 6 we call
> >migration_incoming_get_current() (rather than here), then this patch
> >may be dropped?...
> I planed this patch as preparation, I used to separate refactoring from main
> change, for
> easy merging while rebasing.
> mis - is necessary here to have the same behaviour as before.
Could I ask what's the "same behavior" you mentioned?
I thought this patch is only used by patch 6 when creating the
blocktime struct (but not really a clean-up), no?
--
Peter Xu
next prev parent reply other threads:[~2017-06-09 7:15 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170607094720eucas1p24650bb7bb139ae209fc0ea8c5c57534b@eucas1p2.samsung.com>
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 00/11] calculate blocktime for postcopy live migration Alexey Perevalov
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 01/11] userfault: add pid into uffd_msg & update UFFD_FEATURE_* Alexey Perevalov
2017-06-12 12:27 ` Dr. David Alan Gilbert
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 02/11] migration: pass MigrationIncomingState* into migration check functions Alexey Perevalov
2017-06-09 4:10 ` Peter Xu
2017-06-09 6:21 ` Alexey Perevalov
2017-06-09 7:14 ` Peter Xu [this message]
2017-06-09 7:25 ` Alexey Perevalov
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 03/11] migration: fix hardcoded function name in error report Alexey Perevalov
2017-06-07 12:31 ` Juan Quintela
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 04/11] migration: split ufd_version_check onto receive/request features part Alexey Perevalov
2017-06-12 9:52 ` Dr. David Alan Gilbert
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 05/11] migration: introduce postcopy-blocktime capability Alexey Perevalov
2017-06-07 12:34 ` Juan Quintela
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 06/11] migration: add postcopy blocktime ctx into MigrationIncomingState Alexey Perevalov
2017-06-07 12:43 ` Juan Quintela
2017-06-07 12:53 ` Alexey Perevalov
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page Alexey Perevalov
2017-06-07 12:56 ` Juan Quintela
2017-06-07 14:46 ` Alexey Perevalov
2017-06-07 14:13 ` Alexey Perevalov
2017-06-09 6:06 ` Peter Xu
2017-06-09 7:16 ` Alexey Perevalov
2017-06-12 11:11 ` Dr. David Alan Gilbert
2017-06-13 5:59 ` Peter Xu
2017-06-13 6:10 ` Alexey Perevalov
2017-06-13 6:23 ` Peter Xu
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 08/11] migration: postcopy_place_page factoring out Alexey Perevalov
2017-06-07 12:58 ` Juan Quintela
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 09/11] migration: calculate vCPU blocktime on dst side Alexey Perevalov
2017-06-07 13:11 ` Juan Quintela
2017-06-12 11:34 ` Dr. David Alan Gilbert
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 10/11] migration: add postcopy total blocktime into query-migrate Alexey Perevalov
2017-06-07 9:46 ` [Qemu-devel] [PATCH v8 11/11] migration: postcopy_blocktime documentation Alexey Perevalov
2017-06-07 12:52 ` Juan Quintela
2017-06-07 13:08 ` Alexey Perevalov
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=20170609071455.GK3628@pxdev.xzpeter.org \
--to=peterx@redhat.com \
--cc=a.perevalov@samsung.com \
--cc=dgilbert@redhat.com \
--cc=i.maximets@samsung.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.