Skip to content

Support CPUID/MSR data in migration streams

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12libxc/save: Shrink code volume where possibletools/libxc/xc_sr_save.c tools/libxc/xc_sr_save_x86_hvm.c tools/libxc/xc_sr_save_x86_pv.c+16 -707 replies
2/12libxc/restore: Introduce functionality to simplify blob handlingtools/libxc/xc_sr_common.h tools/libxc/xc_sr_restore_x86_hvm.c tools/libxc/xc_sr_restore_x86_pv.c+68 -651 reply
3/12libxc/migration: Rationalise the 'checkpointed' field to 'stream_type'tools/libxc/include/xenguest.h tools/libxc/xc_nomigrate.c tools/libxc/xc_sr_common.h +3 more+61 -481 reply
4/12libxc/migration: Adjust layout of struct xc_sr_contexttools/libxc/xc_sr_common.h tools/libxc/xc_sr_common_x86_pv.c tools/libxc/xc_sr_common_x86_pv.h +4 more+294 -2901 reply
5/12tools/migration: Drop IHDR_VERSION constant from libxc and pythontools/libxc/xc_sr_restore.c tools/libxc/xc_sr_save.c tools/libxc/xc_sr_stream_format.h +3 more+12 -142 replies
6/12docs/migration Specify migration v3 and STATIC_DATA_ENDdocs/specs/libxc-migration-stream.pandoc tools/libxc/xc_sr_common.c tools/libxc/xc_sr_stream_format.h +1 more+40 -33 replies
7/12python/migration: Update validation logic to understand a v3 streamtools/python/xen/migration/libxc.py+22 -40 replies
8/12libxc/restore: Support v3 streams, and cope with v2 compatibiltytools/libxc/xc_sr_common.h tools/libxc/xc_sr_common_x86.c tools/libxc/xc_sr_common_x86.h +3 more+95 -21 reply
9/12libxc/save: Write a v3 streamtools/libxc/xc_sr_common.h tools/libxc/xc_sr_save.c tools/libxc/xc_sr_save_x86_hvm.c +2 more+41 -81 reply
10/12docs/migration: Specify X86_{CPUID, MSR}_POLICY recordsdocs/specs/libxc-migration-stream.pandoc tools/libxc/xc_sr_common.c tools/libxc/xc_sr_stream_format.h +1 more+89 -08 replies
11/12libxc/restore: Handle X86_{CPUID, MSR}_DATA recordstools/libxc/xc_sr_common.h tools/libxc/xc_sr_common_x86.c tools/libxc/xc_sr_common_x86.h +2 more+82 -01 reply
12/12libxc/save: Write X86_{CPUID, MSR}_DATA recordstools/libxc/xc_sr_common_x86.c tools/libxc/xc_sr_common_x86.h tools/libxc/xc_sr_save_x86_hvm.c +1 more+59 -22 replies

Reviews trailers per patch

6 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIan Jackson
SeriesA-b A-b A-b A-b A-b
1/12
2/12A-b
3/12A-b
4/12A-b
5/12
6/12A-b
7/12
8/12
9/12A-b
10/12
11/12A-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Xen-devel] [PATCH 00/12] Support CPUID/MSR data in migration streams

As an early christmas present, here is the pumbing work to include CPUID/MSR data in migration streams.

For bisectability reasons, this is a large amount of plumbing with no overall change in behaviour. Switching to use the CPUID/MSR data in the stream is going to require some careful coordinated changes with libxl, which I haven't quite managed to get working yet.

However, this subset of the work is now in a position to review.

The first 6 patches are various bits of cleanup. Patches 7-9 introduce Migration v3 and the STATIC_DATA_END record. Patches 10-12 introduce the X86_{CPUID,MSR}_POLICY records.

~Andrew

Andrew Cooper (12):
libxc/save: Shrink code volume where possible libxc/restore: Introduce functionality to simplify blob handling libxc/migration: Rationalise the 'checkpointed' field to 'stream_type' libxc/migration: Adjust layout of struct xc_sr_context tools/migration: Drop IHDR_VERSION constant from libxc and python docs/migration Specify migration v3 and STATIC_DATA_END python/migration: Update validation logic to understand a v3 stream libxc/restore: Support v3 streams, and cope with v2 compatibilty libxc/save: Write a v3 stream
docs/migration: Specify X86_{CPUID,MSR}_POLICY records libxc/restore: Handle X86_{CPUID,MSR}_DATA records libxc/save: Write X86_{CPUID,MSR}_DATA records

 docs/specs/libxc-migration-stream.pandoc   |  81 +++++++-
 tools/libxc/include/xenguest.h             |  15 +-
 tools/libxc/xc_nomigrate.c                 |   4 +-
 tools/libxc/xc_sr_common.c                 |   3 +
 tools/libxc/xc_sr_common.h                 | 205 ++++++++++++-------
 tools/libxc/xc_sr_common_x86.c             |  97 +++++++++
 tools/libxc/xc_sr_common_x86.h             |  25 +++
 tools/libxc/xc_sr_common_x86_pv.c          |  50 ++---
 tools/libxc/xc_sr_common_x86_pv.h          |   4 +-
 tools/libxc/xc_sr_restore.c                |  82 ++++++--
 tools/libxc/xc_sr_restore_x86_hvm.c        |  35 ++--
 tools/libxc/xc_sr_restore_x86_pv.c         | 316 +++++++++++++++--------------
 tools/libxc/xc_sr_save.c                   |  65 +++---
 tools/libxc/xc_sr_save_x86_hvm.c           |  31 +--
 tools/libxc/xc_sr_save_x86_pv.c            | 225 +++++++++-----------
 tools/libxc/xc_sr_stream_format.h          |   4 +-
 tools/libxl/libxl_save_helper.c            |   4 +-
 tools/python/scripts/convert-legacy-stream |  13 +-
 tools/python/scripts/verify-stream-v2      |   2 +-
 tools/python/xen/migration/libxc.py        |  74 ++++++-
 20 files changed, 854 insertions(+), 481 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel