[PATCH v8 0/8] domain context infrastructure

Paul Durrant posted 8 patches 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20200915161800.1384-1-paul@xen.org
Maintainers: Andrew Cooper <andrew.cooper3@citrix.com>, George Dunlap <george.dunlap@citrix.com>, Stefano Stabellini <sstabellini@kernel.org>, Daniel De Graaf <dgdegra@tycho.nsa.gov>, Julien Grall <julien@xen.org>, Ian Jackson <iwj@xenproject.org>, Wei Liu <wl@xen.org>, Jan Beulich <jbeulich@suse.com>
.gitignore                               |   1 +
docs/specs/libxc-migration-stream.pandoc |  69 ++++-
tools/flask/policy/modules/xen.if        |   4 +-
tools/libxc/include/xenctrl.h            |   5 +
tools/libxc/xc_domain.c                  |  56 ++++
tools/libxc/xc_sr_common.c               |   1 +
tools/libxc/xc_sr_common.h               |   3 +
tools/libxc/xc_sr_common_x86.c           |  20 --
tools/libxc/xc_sr_common_x86.h           |   6 -
tools/libxc/xc_sr_restore.c              |  45 +++-
tools/libxc/xc_sr_save.c                 |  52 +++-
tools/libxc/xc_sr_save_x86_hvm.c         |   5 -
tools/libxc/xc_sr_save_x86_pv.c          |  22 --
tools/libxc/xc_sr_stream_format.h        |   1 +
tools/misc/Makefile                      |   4 +
tools/misc/xen-domctx.c                  | 289 +++++++++++++++++++++
tools/python/xen/migration/libxc.py      |   2 +
xen/arch/x86/time.c                      |  34 ++-
xen/common/Makefile                      |   1 +
xen/common/domain.c                      | 144 +++++++++++
xen/common/domctl.c                      | 173 +++++++++++++
xen/common/save.c                        | 315 +++++++++++++++++++++++
xen/include/asm-x86/time.h               |   5 +-
xen/include/public/arch-arm/hvm/save.h   |   5 +
xen/include/public/arch-x86/hvm/save.h   |   5 +
xen/include/public/domctl.h              |  41 +++
xen/include/public/save.h                | 111 ++++++++
xen/include/xen/save.h                   | 170 ++++++++++++
xen/xsm/flask/hooks.c                    |   6 +
xen/xsm/flask/policy/access_vectors      |   4 +
30 files changed, 1524 insertions(+), 75 deletions(-)
create mode 100644 tools/misc/xen-domctx.c
create mode 100644 xen/common/save.c
create mode 100644 xen/include/public/save.h
create mode 100644 xen/include/xen/save.h

[PATCH v8 0/8] domain context infrastructure

Posted by Paul Durrant 5 days ago
From: Paul Durrant <pdurrant@amazon.com>

Paul Durrant (8):
  xen/common: introduce a new framework for save/restore of 'domain'
    context
  xen/common/domctl: introduce XEN_DOMCTL_get/setdomaincontext
  tools/misc: add xen-domctx to present domain context
  docs/specs: add missing definitions to libxc-migration-stream
  docs / tools: specific migration v4 to include DOMAIN_CONTEXT
  common/domain: add a domain context record for shared_info...
  x86/time: add a domain context record for tsc_info...
  tools/libxc: add DOMAIN_CONTEXT records to the migration stream...

 .gitignore                               |   1 +
 docs/specs/libxc-migration-stream.pandoc |  69 ++++-
 tools/flask/policy/modules/xen.if        |   4 +-
 tools/libxc/include/xenctrl.h            |   5 +
 tools/libxc/xc_domain.c                  |  56 ++++
 tools/libxc/xc_sr_common.c               |   1 +
 tools/libxc/xc_sr_common.h               |   3 +
 tools/libxc/xc_sr_common_x86.c           |  20 --
 tools/libxc/xc_sr_common_x86.h           |   6 -
 tools/libxc/xc_sr_restore.c              |  45 +++-
 tools/libxc/xc_sr_save.c                 |  52 +++-
 tools/libxc/xc_sr_save_x86_hvm.c         |   5 -
 tools/libxc/xc_sr_save_x86_pv.c          |  22 --
 tools/libxc/xc_sr_stream_format.h        |   1 +
 tools/misc/Makefile                      |   4 +
 tools/misc/xen-domctx.c                  | 289 +++++++++++++++++++++
 tools/python/xen/migration/libxc.py      |   2 +
 xen/arch/x86/time.c                      |  34 ++-
 xen/common/Makefile                      |   1 +
 xen/common/domain.c                      | 144 +++++++++++
 xen/common/domctl.c                      | 173 +++++++++++++
 xen/common/save.c                        | 315 +++++++++++++++++++++++
 xen/include/asm-x86/time.h               |   5 +-
 xen/include/public/arch-arm/hvm/save.h   |   5 +
 xen/include/public/arch-x86/hvm/save.h   |   5 +
 xen/include/public/domctl.h              |  41 +++
 xen/include/public/save.h                | 111 ++++++++
 xen/include/xen/save.h                   | 170 ++++++++++++
 xen/xsm/flask/hooks.c                    |   6 +
 xen/xsm/flask/policy/access_vectors      |   4 +
 30 files changed, 1524 insertions(+), 75 deletions(-)
 create mode 100644 tools/misc/xen-domctx.c
 create mode 100644 xen/common/save.c
 create mode 100644 xen/include/public/save.h
 create mode 100644 xen/include/xen/save.h
---
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Cc: George Dunlap <george.dunlap@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Julien Grall <julien@xen.org>
Cc: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
Cc: "Roger Pau Monné" <roger.pau@citrix.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Cc: Wei Liu <wl@xen.org>
-- 
2.20.1