From c4af9be4118b5486d35497cfea50aa91bb98e3ad Mon Sep 17 00:00:00 2001 From: Alex Lyn Date: Wed, 20 Aug 2025 13:56:42 +0800 Subject: [PATCH] kata-types: remove default setting of guest_hook_path To make it aligned with the setting of runtime-go, we should keep it as empty when users doesn't enable and set its specified path. Signed-off-by: Alex Lyn --- src/libs/kata-types/src/config/hypervisor/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libs/kata-types/src/config/hypervisor/mod.rs b/src/libs/kata-types/src/config/hypervisor/mod.rs index b381f1dbd5..f338b12367 100644 --- a/src/libs/kata-types/src/config/hypervisor/mod.rs +++ b/src/libs/kata-types/src/config/hypervisor/mod.rs @@ -951,9 +951,6 @@ fn default_qgs_port() -> u32 { impl SecurityInfo { /// Adjust the configuration information after loading from configuration file. pub fn adjust_config(&mut self) -> Result<()> { - if self.guest_hook_path.is_empty() { - self.guest_hook_path = default::DEFAULT_GUEST_HOOK_PATH.to_string(); - } Ok(()) }