pub struct CpuConfigArch {
pub force_calibrated_tsc_leaf: bool,
pub host_cpu_topology: bool,
pub enable_hwp: bool,
pub no_smt: bool,
pub itmt: bool,
pub hybrid_type: Option<CpuHybridType>,
}Expand description
Hold the CPU feature configurations that are needed to setup a vCPU.
Fields§
§force_calibrated_tsc_leaf: boolwhether to force using a calibrated TSC leaf (0x15).
host_cpu_topology: boolwhether enabling host cpu topology.
enable_hwp: boolwhether expose HWP feature to the guest.
no_smt: boolWheter diabling SMT (Simultaneous Multithreading).
itmt: boolwhether enabling ITMT scheduler
hybrid_type: Option<CpuHybridType>whether setting hybrid CPU type
Implementations§
Source§impl CpuConfigX86_64
impl CpuConfigX86_64
pub fn new( force_calibrated_tsc_leaf: bool, host_cpu_topology: bool, enable_hwp: bool, no_smt: bool, itmt: bool, hybrid_type: Option<CpuHybridType>, ) -> CpuConfigX86_64
Trait Implementations§
Source§impl Clone for CpuConfigX86_64
impl Clone for CpuConfigX86_64
Source§fn clone(&self) -> CpuConfigX86_64
fn clone(&self) -> CpuConfigX86_64
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CpuConfigX86_64
impl Debug for CpuConfigX86_64
Source§impl PartialEq for CpuConfigX86_64
impl PartialEq for CpuConfigX86_64
impl Eq for CpuConfigX86_64
impl StructuralPartialEq for CpuConfigX86_64
Auto Trait Implementations§
impl Freeze for CpuConfigX86_64
impl RefUnwindSafe for CpuConfigX86_64
impl Send for CpuConfigX86_64
impl Sync for CpuConfigX86_64
impl Unpin for CpuConfigX86_64
impl UnwindSafe for CpuConfigX86_64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.