All of lore.kernel.org
 help / color / mirror / Atom feed
* Migration with linear p2m list
@ 2015-12-03  7:41 Juergen Gross
  2015-12-03  9:37 ` Andrew Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Gross @ 2015-12-03  7:41 UTC (permalink / raw)
  To: xen-devel@lists.xen.org, Andrew Cooper

I'm just working on a patch series to support migration via using
the virtual mapped linear p2m list. Migration seems to work quite
nice and now I'm looking into how to support changes of the p2m
list structure during migration. For this purpose we introduced
p2m_generation in the shared info structure which is incremented
by the guest in case of changing a mapping of the p2m list.

The question is: what kind of support should I add initially:

1) none: same as for the p2m tree used today

2) minimal: detect a change and cancel migration in this case

3) medium: detect a change and restart migration (limited by a
   retry count)

4) full: detect a change and adapt the current migration to it
   (remap p2m list, resend it to receive side, adapt logdirty
   map)

As such a change should be rare I'm currently heading for the
minimal solution. Full support could be added later independent
from the initial p2m list support. Any thoughts?


Juergen

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Migration with linear p2m list
  2015-12-03  7:41 Migration with linear p2m list Juergen Gross
@ 2015-12-03  9:37 ` Andrew Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2015-12-03  9:37 UTC (permalink / raw)
  To: Juergen Gross, xen-devel@lists.xen.org

On 03/12/15 07:41, Juergen Gross wrote:
> I'm just working on a patch series to support migration via using
> the virtual mapped linear p2m list. Migration seems to work quite
> nice and now I'm looking into how to support changes of the p2m
> list structure during migration. For this purpose we introduced
> p2m_generation in the shared info structure which is incremented
> by the guest in case of changing a mapping of the p2m list.
>
> The question is: what kind of support should I add initially:
>
> 1) none: same as for the p2m tree used today
>
> 2) minimal: detect a change and cancel migration in this case
>
> 3) medium: detect a change and restart migration (limited by a
>    retry count)
>
> 4) full: detect a change and adapt the current migration to it
>    (remap p2m list, resend it to receive side, adapt logdirty
>    map)
>
> As such a change should be rare I'm currently heading for the
> minimal solution. Full support could be added later independent
> from the initial p2m list support. Any thoughts?

I would also opt for 2 to start with.

There is a substantial quantity of other infrastructure required to
correctly send an update once you have noticed that something has
changed.  It would be better not to conflate the two issues.

~Andrew

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-03  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-03  7:41 Migration with linear p2m list Juergen Gross
2015-12-03  9:37 ` Andrew Cooper

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.