+15
−8
Loading
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.
[sean: relocate and enhance comment about PT / XSS[8] ]
Signed-off-by:
Yang Weijiang <weijiang.yang@intel.com>
Reviewed-by:
Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by:
Chao Gao <chao.gao@intel.com>
Tested-by:
Mathias Krause <minipli@grsecurity.net>
Tested-by:
John Allen <john.allen@amd.com>
Tested-by:
Rick Edgecombe <rick.p.edgecombe@intel.com>
Reviewed-by:
Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by:
Chao Gao <chao.gao@intel.com>
Reviewed-by:
Binbin Wu <binbin.wu@linux.intel.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-9-seanjc@google.com
Signed-off-by:
Sean Christopherson <seanjc@google.com>