mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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 <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
e81c51c49b
commit
b1109f7328
@@ -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)>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user