All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/9] Migration Stream v2
@ 2014-04-30 18:36 Andrew Cooper
  2014-04-30 18:36 ` [PATCH v4 1/9] libxc: add DECLARE_HYPERCALL_BUFFER_SHADOW() Andrew Cooper
                   ` (10 more replies)
  0 siblings, 11 replies; 39+ messages in thread
From: Andrew Cooper @ 2014-04-30 18:36 UTC (permalink / raw)
  To: Xen-devel
  Cc: Keir Fraser, Ian Campbell, Andrew Cooper, Ian Jackson, Tim Deegan,
	Frediano Ziglio, David Vrabel, Jan Beulich

Hello,

Presented here for review is v4 of the Migration Stream v2 work.  David,
Frediano and myself have worked together on the implementation, and we have
now managed to get PV and HVM migration working using the new format (even
when transparently inserted underneath Xapi).

This series is based on staging, as 9f2f1298d0211962 is a prerequisite
hypercall for a bugfix.

Draft F of the design document is available from
  xenbits.xen.org/people/andrewcoop/domain-save-format-F.pdf

The series is available from the branch 'saverestore2-v4' of
  git://xenbits.xen.org/people/andrewcoop/xen.git
  http://xenbits.xen.org/git-http/people/andrewcoop/xen.git


The code has been a clean rewrite, using the v1 code as a reference but
avoiding obsolete areas (e.g. how to modify the pagetables of a 32 non-pae
guest on 32bit pae Xen).

There are certainly some areas still in need improvement.  There are plans to
combine the save logic for PV and HVM guests by adding a few more hooks to
save_restore_ops.  While reviewing the series for posting, I have noticed some
accidental duplication from attempting to merge PV and HVM together
(ctx->save.p2m_size and ctx->x86_pv.max_pfn) which can be consolidated.

Moving forward will be work to do with converting a legacy image to a v2
image.

Questions/issues needing discussing are:

1) What level should the conversion happen.  The v2 format is capable of
   detecting a legacy stream, but libxc is arguably too low level for the
   conversion decision to happen.

2) What to do about the layer violations which is the toolstack record and
   device model record.  Libxl for HVM guests is the only known user of the
   'toolstack' chunk, which contains some xenstore key/value pairs.  This data
   should not be a blob in the middle of the libxc layer, and should be
   promoted to a first class member of a libxl migration stream.

Anyway - the code is presented here for initial comment/query/critism.

~Andrew

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

end of thread, other threads:[~2014-05-08  8:29 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30 18:36 [PATCH v4 0/9] Migration Stream v2 Andrew Cooper
2014-04-30 18:36 ` [PATCH v4 1/9] libxc: add DECLARE_HYPERCALL_BUFFER_SHADOW() Andrew Cooper
2014-05-07 11:45   ` Ian Campbell
2014-05-07 12:00     ` David Vrabel
2014-05-07 12:06       ` Ian Campbell
2014-04-30 18:36 ` [PATCH v4 2/9] [HACK] tools/libxc: save/restore v2 framework Andrew Cooper
2014-04-30 18:36 ` [PATCH v4 3/9] tools/libxc: Stream specification and some common code Andrew Cooper
2014-05-07 11:57   ` Ian Campbell
2014-05-07 12:06     ` David Vrabel
2014-05-07 12:14     ` Andrew Cooper
2014-05-07 13:07       ` Ian Campbell
2014-05-07 13:20         ` Andrew Cooper
2014-04-30 18:36 ` [PATCH v4 4/9] tools/libxc: Scripts for inspection/valdiation of legacy and new streams Andrew Cooper
2014-05-07 12:03   ` Ian Campbell
2014-05-07 12:08     ` David Vrabel
2014-05-07 12:27     ` Andrew Cooper
2014-04-30 18:36 ` [PATCH v4 5/9] tools/libxc: common code Andrew Cooper
2014-05-07 13:03   ` Ian Campbell
2014-05-07 14:38     ` Andrew Cooper
2014-05-07 16:08       ` Ian Campbell
2014-05-07 16:30         ` Andrew Cooper
2014-05-07 16:35           ` Ian Campbell
2014-05-08  8:29       ` David Vrabel
2014-04-30 18:36 ` [PATCH v4 6/9] tools/libxc: x86 pv save implementation Andrew Cooper
2014-05-07 13:58   ` Ian Campbell
2014-05-07 15:20     ` Andrew Cooper
2014-05-07 16:15       ` Ian Campbell
2014-04-30 18:36 ` [PATCH v4 7/9] tools/libxc: x86 pv restore implementation Andrew Cooper
2014-05-07 14:10   ` Ian Campbell
2014-05-07 15:37     ` Andrew Cooper
2014-05-07 16:17       ` Ian Campbell
2014-04-30 18:36 ` [PATCH v4 8/9] tools/libxc: x86 hvm save implementation Andrew Cooper
2014-05-07 14:14   ` Ian Campbell
2014-05-07 15:39     ` Andrew Cooper
2014-04-30 18:36 ` [PATCH v4 9/9] tools/libxc: x86 hvm restore implementation Andrew Cooper
2014-05-07 14:15   ` Ian Campbell
2014-05-01 16:41 ` [PATCH v4 0/9] Migration Stream v2 Konrad Rzeszutek Wilk
2014-05-01 17:32   ` Andrew Cooper
2014-05-07 14:23 ` Ian Campbell

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.