+2
−1
+2
−0
Loading
Update CPUID.(EAX=0DH,ECX=1).EBX to reflect current required xstate size due to XSS MSR modification. CPUID(EAX=0DH,ECX=1).EBX reports the required storage size of all enabled xstate features in (XCR0 | IA32_XSS). The CPUID value can be used by guest before allocate sufficient xsave buffer. Note, KVM does not yet support any XSS based features, i.e. supported_xss is guaranteed to be zero at this time. Opportunistically skip CPUID updates if XSS value doesn't change. Suggested-by:Sean Christopherson <seanjc@google.com> Co-developed-by:
Zhang Yi Z <yi.z.zhang@linux.intel.com> Signed-off-by:
Zhang Yi Z <yi.z.zhang@linux.intel.com> Signed-off-by:
Yang Weijiang <weijiang.yang@intel.com> Reviewed-by:
Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by:
Chao Gao <chao.gao@intel.com> Reviewed-by:
Xiaoyao Li <xiaoyao.li@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> 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-8-seanjc@google.com Signed-off-by:
Sean Christopherson <seanjc@google.com>