From 976d10150c6c774232b23f2bec6863071ec4057f Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 11 Sep 2023 09:32:19 +0100 Subject: [PATCH] runtime-rs: hypervisor: Remove debug kernel options Removed the following kernel command line options: - `earlyprintk=ttyS0` - `initcall_debug` Both these options are only useful when debugging a guest kernel failure which is not a common occurrence. Further, the `earlyprintk=` option can have a large negative performance impact (it can increase the VM boot time significantly). If the user wishes to use either of these options, they can add them to the `kernel_params=` setting in the Kata configuration file's hypervisor stanza. Fixes: #7886. Signed-off-by: James O. D. Hunt --- src/runtime-rs/crates/hypervisor/src/kernel_param.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/runtime-rs/crates/hypervisor/src/kernel_param.rs b/src/runtime-rs/crates/hypervisor/src/kernel_param.rs index e2804dd95c..9521ebac7e 100644 --- a/src/runtime-rs/crates/hypervisor/src/kernel_param.rs +++ b/src/runtime-rs/crates/hypervisor/src/kernel_param.rs @@ -56,8 +56,6 @@ impl KernelParams { // default kernel params let mut params = vec![ Param::new("reboot", "k"), - Param::new("earlyprintk", "ttyS0"), - Param::new("initcall_debug", ""), Param::new("panic", "1"), Param::new("systemd.unit", "kata-containers.target"), Param::new("systemd.mask", "systemd-networkd.service"),