Re: [PATCH v9 14/27] KVM: x86: Initialize kvm_caps.supported_xss

From: Chao Gao
Date: Thu Jan 25 2024 - 20:36:14 EST


On Tue, Jan 23, 2024 at 06:41:47PM -0800, Yang Weijiang wrote:
>Set original kvm_caps.supported_xss to (host_xss & KVM_SUPPORTED_XSS) if
>XSAVES is supported. host_xss contains the host supported xstate feature
>bits for thread FPU context switch, KVM_SUPPORTED_XSS includes all KVM
>enabled XSS feature bits, the resulting value represents the supervisor
>xstates that are available to guest and are backed by host FPU framework
>for swapping {guest,host} XSAVE-managed registers/MSRs.
>
>Signed-off-by: Yang Weijiang <weijiang.yang@xxxxxxxxx>
>Reviewed-by: Maxim Levitsky <mlevitsk@xxxxxxxxxx>

Reviewed-by: Chao Gao <chao.gao@xxxxxxxxx>