On 29.04.2024 20:28, Andrew Cooper wrote: > HVM_CPU_XSAVE_SIZE() may rewrite %xcr0 twice. Defer the caluclation it until > after we've decided to write out an XSAVE record. > > Note in hvm_load_cpu_xsave_states() that there were versions of Xen which > wrote out a useless XSAVE record. This sadly limits out ability to tidy up > the existing infrastructure. Also leave a note in xstate_ctxt_size() that 0 > still needs tolerating for now. > > No functional change. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com> with a nit that there are a few spelling/grammar issues in the text above. Jan