]> xenbits.xensource.com Git - xen.git/commit
tools/libxc: Tolerate specific zero-content records in migration v2 streams
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 30 Mar 2017 16:32:31 +0000 (17:32 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 6 Apr 2017 09:37:32 +0000 (10:37 +0100)
commit119ee4d77377aa1fc62efdadc1cc87df4f1270bf
tree1268b0cd56a46c0016ff93c5040cc606448ed52a
parentef78bf31077aae1f60b97ac57b36bc66a17b12dd
tools/libxc: Tolerate specific zero-content records in migration v2 streams

The migration v2 save code was written to avoid sending data records with no
content, as such records serve no purpose but come with a performance hit.
The restore code sanity checks this expectation.

Under some circumstances (most notably, on AMD hardware with Debug Extensions,
and a PV guest kernel which is not using the feature), the save code would
generate a record with no content, which trips the sanity check in the restore
code.

As the stream is otherwise fine, tolerate these records and avoid failing the
migration.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_sr_restore_x86_hvm.c
tools/libxc/xc_sr_restore_x86_pv.c