mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
110c295edf
commit
7700f4b585
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user