arch, vmm: Clear AMX CPUID bits if the feature is not enabled

Fixes: #5833

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2023-10-11 15:06:27 -07:00
committed by Bo Chen
parent 7dd260f82f
commit 0b4c153d4d
4 changed files with 16 additions and 0 deletions
+1
View File
@@ -745,6 +745,7 @@ impl CpuManager {
kvm_hyperv: self.config.kvm_hyperv,
#[cfg(feature = "tdx")]
tdx,
amx: self.config.features.amx,
},
)
.map_err(Error::CommonCpuId)?