tools/libx[cl]: Plumb 'missing' through static_data_done() up into libxl
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 16 Dec 2019 19:03:14 +0000 (19:03 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 16:33:03 +0000 (17:33 +0100)
commit63350b3fda28a6ee9073127aa368144b0eaa3e45
treea0b0f89dd460fa6c7f7486120426ae3d7ac5df9b
parentf6b2b8ec53de8a6f178e53b180e47b05d6d2ea72
tools/libx[cl]: Plumb 'missing' through static_data_done() up into libxl

Pre Xen-4.14 streams will not contain any CPUID/MSR information.  There is
nothing libxc can do about this, and will have to rely on the higher level
toolstack to provide backwards compatibility.

To facilitate this, extend the static_data_done() callback, highlighting the
missing information, and modify libxl to use it.  At the libxc level, this
requires an arch-specific hook which, for now, always reports CPUID and MSR as
missing.  This will be adjusted in a later change.

No overall functional change - this is just plumbing.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/include/xenguest.h
tools/libxc/xc_sr_common.h
tools/libxc/xc_sr_common_x86.c
tools/libxc/xc_sr_common_x86.h
tools/libxc/xc_sr_restore.c
tools/libxc/xc_sr_restore_x86_hvm.c
tools/libxc/xc_sr_restore_x86_pv.c
tools/libxl/libxl_create.c
tools/libxl/libxl_save_msgs_gen.pl