diff --git a/src/vmm/src/arch/aarch64/cache_info.rs b/src/vmm/src/arch/aarch64/cache_info.rs index 90a97c8d204..cd61cabeb02 100644 --- a/src/vmm/src/arch/aarch64/cache_info.rs +++ b/src/vmm/src/arch/aarch64/cache_info.rs @@ -38,7 +38,7 @@ pub(crate) struct CacheEntry { // Type of cache: Unified, Data, Instruction. pub type_: CacheType, pub size_: Option, - pub number_of_sets: Option, + pub number_of_sets: Option, pub line_size: Option, // How many CPUS share this cache. pub cpus_per_unit: u16, @@ -114,7 +114,7 @@ impl CacheEntry { } if let Ok(number_of_sets) = store.get_by_key(index, "number_of_sets") { - cache.number_of_sets = Some(number_of_sets.parse::().map_err(|err| { + cache.number_of_sets = Some(number_of_sets.parse::().map_err(|err| { CacheInfoError::InvalidCacheAttr("number_of_sets".to_string(), err.to_string()) })?); } else { diff --git a/src/vmm/src/arch/aarch64/fdt.rs b/src/vmm/src/arch/aarch64/fdt.rs index cd13e434aa9..ff8c561910a 100644 --- a/src/vmm/src/arch/aarch64/fdt.rs +++ b/src/vmm/src/arch/aarch64/fdt.rs @@ -147,7 +147,7 @@ fn create_cpu_nodes(fdt: &mut FdtWriter, vcpu_mpidr: &[u64]) -> Result<(), FdtEr fdt.property_u32(cache.type_.of_cache_line_size(), u32::from(line_size))?; } if let Some(number_of_sets) = cache.number_of_sets { - fdt.property_u32(cache.type_.of_cache_sets(), u32::from(number_of_sets))?; + fdt.property_u32(cache.type_.of_cache_sets(), number_of_sets)?; } } @@ -197,7 +197,7 @@ fn create_cpu_nodes(fdt: &mut FdtWriter, vcpu_mpidr: &[u64]) -> Result<(), FdtEr fdt.property_u32(cache.type_.of_cache_line_size(), u32::from(line_size))?; } if let Some(number_of_sets) = cache.number_of_sets { - fdt.property_u32(cache.type_.of_cache_sets(), u32::from(number_of_sets))?; + fdt.property_u32(cache.type_.of_cache_sets(), number_of_sets)?; } if let Some(cache_type) = cache.type_.of_cache_type() { fdt.property_null(cache_type)?; diff --git a/src/vmm/src/arch/aarch64/mod.rs b/src/vmm/src/arch/aarch64/mod.rs index 17ff63f5b87..08ca1b65edb 100644 --- a/src/vmm/src/arch/aarch64/mod.rs +++ b/src/vmm/src/arch/aarch64/mod.rs @@ -28,7 +28,7 @@ use crate::vstate::memory::{Address, Bytes, GuestAddress, GuestMemory, GuestMemo /// Errors thrown while configuring aarch64 system. #[derive(Debug, thiserror::Error, displaydoc::Display)] pub enum ConfigurationError { - /// Failed to create a Flattened Device Tree for this aarch64 microVM. + /// Failed to create a Flattened Device Tree for this aarch64 microVM: {0} SetupFDT(#[from] fdt::FdtError), /// Failed to compute the initrd address. InitrdAddress,