]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: VMX: Also clear SGX EDECCSSA in KVM CPU caps when SGX is disabled
authorKai Huang <kai.huang@intel.com>
Thu, 5 Sep 2024 12:08:37 +0000 (00:08 +1200)
committerSean Christopherson <seanjc@google.com>
Tue, 10 Sep 2024 03:13:55 +0000 (20:13 -0700)
commit7efb4d8a392a18e37fcdb5e77c111af6e9a9e2f2
tree17f80aa0d345ab5f225e693876b7a97326d609d6
parent2ab637df5f68d4e0cfa9becd10f43400aee785b3
KVM: VMX: Also clear SGX EDECCSSA in KVM CPU caps when SGX is disabled

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")
Signed-off-by: Kai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20240905120837.579102-1-kai.huang@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c