libxc/save: Write a v3 stream
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Dec 2019 12:29:42 +0000 (12:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 16:33:03 +0000 (17:33 +0100)
commita6a2b9d1eae3e18ee8d9be5da448655ac918a827
treea907178989496f35780f36e60e744991e9e8c264
parent4f8b684117f7e6cc02dfbb21cde15aa431259d2c
libxc/save: Write a v3 stream

Introduce a new static_data() hook which is responsible for writing out
any static data records.  The HVM side continues to be a no-op, while
the PV side moves write_x86_pv_info() into this earlier hook.  The the
common code writes out a STATIC_DATA_END record, and the stream version
is bumped to 3.

Update convert-legacy-stream to write a v3 stream, because this will
bypass the compatibly logic in libxc.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_sr_common.h
tools/libxc/xc_sr_save.c
tools/libxc/xc_sr_save_x86_hvm.c
tools/libxc/xc_sr_save_x86_pv.c
tools/python/scripts/convert-legacy-stream