From f77d70a64928b9cb17f518d63e1444f40c310824 Mon Sep 17 00:00:00 2001 From: Alex Lyn Date: Tue, 19 Aug 2025 16:16:35 +0800 Subject: [PATCH] kata-types: let cc_init_data go DO-NOT-MERGE: just for testing Signed-off-by: Alex Lyn --- src/libs/kata-types/src/config/hypervisor/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/kata-types/src/config/hypervisor/mod.rs b/src/libs/kata-types/src/config/hypervisor/mod.rs index b381f1dbd5..88b70ea843 100644 --- a/src/libs/kata-types/src/config/hypervisor/mod.rs +++ b/src/libs/kata-types/src/config/hypervisor/mod.rs @@ -23,7 +23,7 @@ //! hypervisors, so let's contain it... use super::{default, ConfigOps, ConfigPlugin, TomlConfig}; -use crate::annotations::KATA_ANNO_CFG_HYPERVISOR_PREFIX; +use crate::annotations::{KATA_ANNO_CFG_HYPERVISOR_PREFIX, KATA_ANNO_CFG_RUNTIME_INIT_DATA}; use crate::{eother, resolve_path, sl, validate_path}; use byte_unit::{Byte, Unit}; use lazy_static::lazy_static; @@ -964,6 +964,9 @@ impl SecurityInfo { /// Check whether annotation key is enabled or not. pub fn is_annotation_enabled(&self, path: &str) -> bool { + if matches!(path, KATA_ANNO_CFG_RUNTIME_INIT_DATA) { + return true; + } if !path.starts_with(KATA_ANNO_CFG_HYPERVISOR_PREFIX) { return false; }