#[non_exhaustive]pub struct CpuConfig {
pub reg_modifiers: Vec<Value>,
pub vcpu_features: Vec<Value>,
pub cpuid_modifiers: Vec<Value>,
pub msr_modifiers: Vec<Value>,
pub kvm_capabilities: Vec<Value>,
}Expand description
Validated /cpu-config PUT body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reg_modifiers: Vec<Value>aarch64 reg_modifiers, capped at MAX_REG_MODIFIERS.
vcpu_features: Vec<Value>aarch64 vcpu_features, capped at MAX_REG_MODIFIERS.
cpuid_modifiers: Vec<Value>x86 cpuid_modifiers — recorded, will warn at the controller.
msr_modifiers: Vec<Value>x86 msr_modifiers — recorded, will warn at the controller.
kvm_capabilities: Vec<Value>kvm_capabilities — recorded, will warn at the controller.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuConfig
impl RefUnwindSafe for CpuConfig
impl Send for CpuConfig
impl Sync for CpuConfig
impl Unpin for CpuConfig
impl UnsafeUnpin for CpuConfig
impl UnwindSafe for CpuConfig
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