From 7571e93a6913cbfd75560ddc9e1ef133cead8698 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Thu, 22 May 2025 09:54:39 -0700 Subject: [PATCH] vmm: Deprecate SGX support This commit adds the warning to deprecate the SGX support with the intention to remove the support from code base in two release cycles. See: #6960 Signed-off-by: Bo Chen --- vmm/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vmm/src/config.rs b/vmm/src/config.rs index b42f3ef44..d7c0f41e7 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -2893,6 +2893,7 @@ impl VmConfig { #[cfg(target_arch = "x86_64")] { if let Some(sgx_epc_list) = &vm_params.sgx_epc { + warn!("SGX support is deprecated and will be removed in a future release."); let mut sgx_epc_config_list = Vec::new(); for item in sgx_epc_list.iter() { let sgx_epc_config = SgxEpcConfig::parse(item)?;