From 0caa3ee73f5aae5faf73b048720efb2e2681b0e3 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Wed, 24 Jun 2026 12:52:23 +0200 Subject: [PATCH] vmm: silence some info! messages We have larger cloud deployments and analyzed the logs. Let's silence some messages that generally provide little value on the `info!` level. On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster --- vmm/src/cpu.rs | 11 +++-------- vmm/src/migration/transport.rs | 1 - 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/vmm/src/cpu.rs b/vmm/src/cpu.rs index dd1eaf685..c8473242b 100644 --- a/vmm/src/cpu.rs +++ b/vmm/src/cpu.rs @@ -58,12 +58,7 @@ use hypervisor::{CpuState, HypervisorCpuError, VmExit, VmOps}; use libc::{c_void, siginfo_t}; #[cfg(all(target_arch = "x86_64", feature = "guest_debug"))] use linux_loader::elf::Elf64_Nhdr; -#[cfg(any( - target_arch = "aarch64", - all(target_arch = "x86_64", feature = "guest_debug") -))] -use log::debug; -use log::{error, info, warn}; +use log::{debug, error, info, warn}; use seccompiler::{SeccompAction, apply_filter}; use thiserror::Error; use tracer::trace_scoped; @@ -979,7 +974,7 @@ impl CpuManager { cpu_id: u32, snapshot: Option<&Snapshot>, ) -> Result>> { - info!("Creating vCPU: cpu_id = {cpu_id}"); + debug!("Creating vCPU: cpu_id = {cpu_id}"); #[cfg(target_arch = "x86_64")] let topology = self.get_vcpu_topology(); @@ -1229,7 +1224,7 @@ impl CpuManager { #[cfg(target_arch = "x86_64")] let interrupt_controller_clone = self.interrupt_controller.as_ref().cloned(); - info!("Starting vCPU: cpu_id = {vcpu_id}"); + debug!("Starting vCPU: cpu_id = {vcpu_id}"); let handle = Some( thread::Builder::new() diff --git a/vmm/src/migration/transport.rs b/vmm/src/migration/transport.rs index a93f6a813..3dfc380bd 100644 --- a/vmm/src/migration/transport.rs +++ b/vmm/src/migration/transport.rs @@ -656,7 +656,6 @@ impl SendAdditionalConnections { worker_error: &AtomicBool, notify_tx: &Sender, ) -> Result<(), MigratableError> { - info!("Spawned thread to send VM memory."); loop { // Every memory sending thread receives messages from the main thread through this // channel. The lock is necessary to synchronize the multiple consumers. If the