Files
xen/tools/libxc
Andrew Cooper d2aecd86c4 libxc/restore: Fix REC_TYPE_X86_PV_VCPU_XSAVE data auditing (take 2)
It turns out that a bug (since forever) in Xen causes XSAVE records to have
non-architectural behaviour on xsave-capable hardware, when a PV guest has not
touched the state.

In such a case, the data record returned from Xen is 2*uint64_t, both claiming
the (illegitimate) state of %xcr0 and %xcr0_accum being 0.

Adjust the bound in handle_x86_pv_vcpu_blob() to cope with this.

Fixes: 2a62c22715 "libxc/restore: Fix data auditing in handle_x86_pv_vcpu_blob()"
Reported-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
(cherry picked from commit 0729830cc4)
2020-05-05 15:49:10 +01:00
..
2010-08-24 18:42:59 +01:00
2019-05-13 11:28:27 +01:00
2019-03-20 16:52:01 +00:00
2020-03-05 11:02:02 +01:00
2017-10-11 12:20:17 +01:00
2017-03-15 10:31:16 +00:00