pub struct DriverCapabilities {
pub vsock: bool,
pub vsock_listen: bool,
pub checkpoint: bool,
pub diff_checkpoint: bool,
pub adopt: bool,
pub prepare: bool,
pub staging: bool,
pub balloon: bool,
pub console: bool,
pub debug: bool,
pub nested_virt: NestedVirt,
}Expand description
What a driver can do, independent of any one VM.
capabilities() describes the driver; a handle exposes a capability only
when the spec also asked for the device (a VM booted without
crate::VsockSpec has nothing to dial). The contract test-kit boots a
spec that asks for everything the driver claims and checks that each
flag here agrees with the matching handle accessor.
Fields§
§vsock: boolHandles can dial guest vsock ports (Vsock).
vsock_listen: boolHandles can listen for guest-initiated vsock connections
(VsockListen).
checkpoint: boolHandles can be checkpointed (Checkpoint) and the driver can
restore the result.
diff_checkpoint: boolCheckpoints can be incremental
(CheckpointKind::Diff).
adopt: bool§prepare: boolThe VMM can be spawned ahead of a boot (Prepare).
staging: boolPrepared VMs and handles expose Staging: the files a VM boots
from are brought into an area of its own and named by where they
landed.
balloon: boolHandles expose a memory balloon.
console: boolHandles expose the guest console output.
debug: boolHandles expose a debug snapshot.
nested_virt: NestedVirtWhether guests may run their own hypervisor.
Trait Implementations§
Source§impl Clone for DriverCapabilities
impl Clone for DriverCapabilities
Source§impl Debug for DriverCapabilities
impl Debug for DriverCapabilities
Source§impl Default for DriverCapabilities
impl Default for DriverCapabilities
impl Eq for DriverCapabilities
Source§impl PartialEq for DriverCapabilities
impl PartialEq for DriverCapabilities
impl StructuralPartialEq for DriverCapabilities
Auto Trait Implementations§
impl Freeze for DriverCapabilities
impl RefUnwindSafe for DriverCapabilities
impl Send for DriverCapabilities
impl Sync for DriverCapabilities
impl Unpin for DriverCapabilities
impl UnsafeUnpin for DriverCapabilities
impl UnwindSafe for DriverCapabilities
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
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§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
key and return true if they are equal.