libxc/restore: Fix data auditing in handle_x86_pv_vcpu_blob()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Dec 2019 20:32:20 +0000 (20:32 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Dec 2019 12:12:00 +0000 (12:12 +0000)
commit2a62c22715bf81c5695ae0511f89a940c7c6a492
treeec22b9f82876948120815e15c517002ed12da15b
parentaafae0e800e9936b9eb6566e5fcdbe823625a7d1
libxc/restore: Fix data auditing in handle_x86_pv_vcpu_blob()

The current logic only works by chance, in that XSAVE records also tend to be
a multiple of 128.  Implement the missing logic for XSAVE.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_sr_restore_x86_pv.c