All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jennifer Herbert <Jennifer.Herbert@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:02:18 +0100	[thread overview]
Message-ID: <88ec74c5-e76a-859a-efed-be5347e6d77c@citrix.com> (raw)
In-Reply-To: <1506365735-133776-3-git-send-email-Jennifer.Herbert@citrix.com>

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

> +     *
> +     * 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

  parent reply	other threads:[~2017-09-26 11:02 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 [this message]
2017-09-26 11:49     ` Jennifer Herbert
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=88ec74c5-e76a-859a-efed-be5347e6d77c@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=Jennifer.Herbert@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 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.