From b1109f732825d1516846b5342e39818f4f99fa97 Mon Sep 17 00:00:00 2001 From: Oliver Anderson Date: Wed, 8 Apr 2026 08:36:30 +0200 Subject: [PATCH] arch: CpuidProfileData struct Introduce a struct for holding CPUID adjustments related to a CPU profile. Instances of this struct will typically be de-serialized from JSON files describing a CPU profile. Signed-off-by: Oliver Anderson On-behalf-of: SAP oliver.anderson@sap.com --- arch/src/x86_64/cpu_profile/cpuid_adjustments.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/src/x86_64/cpu_profile/cpuid_adjustments.rs b/arch/src/x86_64/cpu_profile/cpuid_adjustments.rs index ac3f58dfc..ef20ed000 100644 --- a/arch/src/x86_64/cpu_profile/cpuid_adjustments.rs +++ b/arch/src/x86_64/cpu_profile/cpuid_adjustments.rs @@ -181,3 +181,10 @@ impl CpuidOutputRegisterAdjustments { } } } + +/// Data describing CPUID adjustments related to a CPU Profile. +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct CpuidProfileData { + /// Adjustments necessary to become compatible with the desired target. + pub adjustments: Vec<(CpuidParameters, CpuidOutputRegisterAdjustments)>, +}