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

Chao Gao
2024-01-26T01:35:37Z

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@intel.com>
>Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>

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