pub struct CpuConfig {
pub cpuid_modifiers: Option<Value>,
pub kvm_capabilities: Option<Value>,
pub msr_modifiers: Option<Value>,
pub reg_modifiers: Option<Value>,
pub vcpu_features: Option<Value>,
}
Expand description
Provides fine-grained control over CPU features exposed to the guest VM. This allows for platform-specific optimizations and security configurations by enabling or disabling specific CPU capabilities on both x86_64 and aarch64 architectures.
Fields§
§cpuid_modifiers: Option<Value>
A collection of CPUIDs to be modified (x86_64)
kvm_capabilities: Option<Value>
A collection of kvm capabilities to be modified (aarch64)
msr_modifiers: Option<Value>
A collection of model specific registers to be modified (x86_64)
reg_modifiers: Option<Value>
A collection of registers to be modified (aarch64)
vcpu_features: Option<Value>
A collection of vcpu features to be modified (aarch64)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CpuConfig
impl<'de> Deserialize<'de> for CpuConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CpuConfig
impl RefUnwindSafe for CpuConfig
impl Send for CpuConfig
impl Sync for CpuConfig
impl Unpin 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