mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
arch: CpuProfile enum
Introduce a CpuProfile enum that will be deserialized from the user's selected CPU profile. Currently we only have a "host" variant, but in the future there will be a build script automatically constructing this enum based on pre-generated CPU profiles. 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
b1109f7328
commit
d96de000f2
@@ -4,3 +4,13 @@
|
||||
//
|
||||
|
||||
pub mod cpuid_adjustments;
|
||||
|
||||
// TODO: Auto generate the CpuProfile enum with a build script once we introduce user facing CPU profiles.
|
||||
|
||||
/// A [`CpuProfile`] is a mechanism for ensuring live migration compatibility
|
||||
/// between hosts with potentially different CPU models.
|
||||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
pub enum CpuProfile {
|
||||
#[default]
|
||||
Host,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user