All of lore.kernel.org
 help / color / mirror / Atom feed
* save/restore race
@ 2007-01-23 22:01 John Levon
  2007-01-23 22:15 ` Ian Pratt
  0 siblings, 1 reply; 10+ messages in thread
From: John Levon @ 2007-01-23 22:01 UTC (permalink / raw)
  To: xen-devel


save requires a valid arch.pfn_to_mfn_frame_list_list MFN. However,
there is no guarantee that this is up to date, since a previous
restore is considered complete as soon as the domain is unpaused:

        if not paused:
            dominfo.unpause()

        dominfo.completeRestore(handler.store_mfn, handler.console_mfn)

It seems that Linux is being lucky here, in that rebuilding the MFNs is
the first thing it does after suspend(). On Solaris, it occurs somewhat
later in the resume process due to constraints on locking within our MMU
code.

This doesn't seem specific to migration either, a save just after a
restore has completed can hit this race as far as I can see. I'm short
on ideas that don't involve a new interface (like the domain writing
back a xenstore value when it's done resuming). Suggestions?

regards
john

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

end of thread, other threads:[~2007-02-06 15:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-23 22:01 save/restore race John Levon
2007-01-23 22:15 ` Ian Pratt
2007-01-23 22:48   ` John Levon
2007-01-23 23:38     ` Ian Pratt
2007-01-24  2:10       ` John Levon
2007-01-24  2:19         ` Ian Pratt
2007-01-24  3:13           ` [PATCH] " John Levon
2007-01-24 10:07             ` Steven Hand
2007-02-06 15:04             ` Srikanth SM
2007-02-06 15:13               ` John Levon

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.