Expand description
Module for CPUID instruction related content Utility for configuring the CPUID (CPU identification) for the guest microVM.
Re-exports§
pub use amd::AmdCpuid;pub use intel::IntelCpuid;
Modules§
- amd
- AMD CPUID specification handling.
- common
- cpuid utility functions.
- intel
- Intel CPUID specification handling.
Structs§
- Cpuid
Entry - CPUID entry information stored for each leaf of
IntelCpuid. - Cpuid
Key - CPUID index values
leafandsubleaf. - Cpuid
Registers - To transmute this into leaves such that we can return mutable reference to it with leaf specific
accessors, requires this to have a consistent member ordering.
core::arch::x86_64::CpuidResultis notrepr(C). - KvmCpuid
Flags - Definitions from `kvm/arch/x86/include/uapi/asm/kvm.h
- Missing
Brand String Leaves - Error type for
CpuidTrait::apply_brand_string.
Enums§
- Cpuid
- CPUID information
- Cpuid
TryFrom KvmCpuid - Error type for conversion from
kvm_bindings::CpuIdtoCpuid. - Feature
Information Error - Error type for setting leaf 1 section of
IntelCpuid::normalize. - GetMax
Cpus PerPackage Error - Error type for
get_max_cpus_per_package. - Normalize
Cpuid Error - Error type for
super::Cpuid::normalize.
Constants§
- BRAND_
STRING_ LENGTH - To store the brand string we have 3 leaves, each with 4 registers, each with 4 bytes.
- VENDOR_
ID_ AMD - AMD brand string.
- VENDOR_
ID_ AMD_ STR - AMD brand string.
- VENDOR_
ID_ INTEL - Intel brand string.
- VENDOR_
ID_ INTEL_ STR - Intel brand string.
Traits§
- Cpuid
Trait - Trait defining shared behaviour between CPUID structures.
Functions§
- host_
brand_ string - Gets the Intel default brand. Gets host brand string.