arch: Helper functions for u32 hex (de-) serialization

These helper functions will later be used to (de-) serialize CPUID
leaves and MSR register addresses.

Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de>
On-behalf-of: SAP oliver.anderson@sap.com
This commit is contained in:
Oliver Anderson
2026-03-20 11:57:01 +01:00
committed by Rob Bradford
parent 110c295edf
commit 7700f4b585
4 changed files with 84 additions and 0 deletions
+2
View File
@@ -14,6 +14,7 @@ pub mod regs;
#[cfg(feature = "tdx")]
pub mod tdx;
mod helpers;
mod mpspec;
mod mptable;
mod smbios;
@@ -21,6 +22,7 @@ mod smbios;
use std::arch::x86_64;
use std::mem;
use helpers::{deserialize_u32_hex, serialize_u32_hex};
use hypervisor::arch::x86::{CPUID_FLAG_VALID_INDEX, CpuIdEntry};
use hypervisor::{CpuVendor, HypervisorCpuError, HypervisorError};
use linux_loader::loader::bootparam::{boot_params, setup_header};