Bug 18718 - [devel-6.6] Intel: Backport KVM fix for clearing SGX EDECCSSA to 6.6
Summary: [devel-6.6] Intel: Backport KVM fix for clearing SGX EDECCSSA to 6.6
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-11 09:28 UTC by zhiquan1-li
Modified: 2025-02-11 10:48 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhiquan1-li intel_group 2025-02-11 09:28:14 UTC
When SGX EDECCSSA support was added to KVM in commit 16a7fe3728a8 ("KVM/VMX: Allow exposing EDECCSSA user leaf function to KVM guest"), it forgot to clear the X86_FEATURE_SGX_EDECCSSA bit in KVM CPU caps when KVM SGX is disabled. Fix it.

Fixes: 16a7fe3728a8 ("KVM/VMX: Allow exposing EDECCSSA user leaf function to KVM guest")

This is backport the commit from upstream:

7efb4d8a392a KVM: VMX: Also clear SGX EDECCSSA in KVM CPU caps when SGX is disabled

Reference
- Link: https://lore.kernel.org/r/20240905120837.579102-1-kai.huang@intel.com
Comment 1 小龙 admin 2025-02-11 10:48:22 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4571