xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Jennifer Herbert <Jennifer.Herbert@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Wei Liu <wei.liu2@citrix.com>,
	xen-devel@lists.xenproject.org, jtotto@uwaterloo.ca
Subject: Re: [PATCH v3 2/3] Introduce migration precopy policy
Date: Tue, 26 Sep 2017 12:49:17 +0100	[thread overview]
Message-ID: <59CA3EBD.60105@citrix.com> (raw)
In-Reply-To: <88ec74c5-e76a-859a-efed-be5347e6d77c@citrix.com>


On 26/09/17 12:02, Andrew Cooper wrote:
> On 25/09/17 19:55, Jennifer Herbert wrote:
>> @@ -46,7 +60,22 @@ struct save_callbacks {
>>        */
>>       int (*suspend)(void* data);
>>   
>> -    /* Called after the guest's dirty pages have been
>> +    /*
>> +     * Called before and after every batch of page data sent during
>> +     * the precopy phase of a live migration to ask the caller what
>> +     * to do next based on the current state of the precopy migration.
> How is the callback supposed to determine whether it is before or ahead
> of the data batch?
>
> As far as I can tell, its not possible.
>
> ~Andrew

You look at the dirty_count.  It works well for me.
I can add that info to the comment.

-jenny

>> +     *
>> +     * Should return one of the values listed below:
>> +     */
>> +#define XGS_POLICY_ABORT          (-1) /* Abandon the migration entirely
>> +                                        * and tidy up. */
>> +#define XGS_POLICY_CONTINUE_PRECOPY 0  /* Remain in the precopy phase. */
>> +#define XGS_POLICY_STOP_AND_COPY    1  /* Immediately suspend and transmit the
>> +                                        * remaining dirty pages. */
>> +    precopy_policy_t precopy_policy;
>> +
>> +    /*
>> +     * Called after the guest's dirty pages have been
>>        *  copied into an output buffer.
>>        * Callback function resumes the guest & the device model,
>>        *  returns to xc_domain_save.
>>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-09-26 11:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25 18:55 [PATCH v3 0/3] Introduce migration precopy policy Jennifer Herbert
2017-09-25 18:55 ` [PATCH v3 1/3] Tidy libxc xc_domain_save Jennifer Herbert
2017-09-25 18:55 ` [PATCH v3 2/3] Introduce migration precopy policy Jennifer Herbert
2017-09-26  8:36   ` Wei Liu
2017-09-26 10:58   ` Andrew Cooper
2017-09-26 11:38     ` Jennifer Herbert
2017-09-26 11:02   ` Andrew Cooper
2017-09-26 11:49     ` Jennifer Herbert [this message]
2017-09-25 18:55 ` [PATCH v3 3/3] RFC: migration: defer precopy policy to libxl Jennifer Herbert
2017-09-26  8:48   ` Wei Liu
2017-09-26  9:42     ` Jennifer Herbert

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=59CA3EBD.60105@citrix.com \
    --to=jennifer.herbert@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jtotto@uwaterloo.ca \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).