Skip to content

Commit

Permalink
Updating the error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhutet committed Feb 5, 2025
1 parent 4ec654a commit 85aa825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhcl/virt_mshv_vtl/src/cvm_cpuid/tdx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl CpuidArchInitializer for TdxCpuidInitializer {
if (extended_topology_ecx_0.level_number() != super::CPUID_LEAF_B_LEVEL_NUMBER_SMT)
|| (extended_topology_ecx_0.level_type() != super::CPUID_LEAF_B_LEVEL_TYPE_SMT)
{
tracing::error!("Incorrect values received: {:?}", extended_topology_ecx_0);
tracing::error!("Incorrect values received: {:?}. Level Number should represent sub-leaf 0, while Level Type should represent domain type 1 for logical processor.", extended_topology_ecx_0);
}

// Validation for Leaf 0xB subleaf 1
Expand All @@ -238,7 +238,7 @@ impl CpuidArchInitializer for TdxCpuidInitializer {
if (extended_topology_ecx_1.level_number() != super::CPUID_LEAF_B_LEVEL_NUMBER_CORE)
|| (extended_topology_ecx_1.level_type() != super::CPUID_LEAF_B_LEVEL_TYPE_CORE)
{
tracing::error!("Incorrect values received: {:?}", extended_topology_ecx_1);
tracing::error!("Incorrect values received: {:?}. Level Number should represent sub-leaf 1, while Level Type should represent domain type 2 for Core.", extended_topology_ecx_1);
}

Ok(super::ExtendedTopologyResult {
Expand Down

0 comments on commit 85aa825

Please sign in to comment.