pub struct Kvm { /* private fields */ }
Expand description
Wrapper for /dev/kvm
ioctls.
Representation of the file descriptor obtained by opening /dev/kvm
.
This wrapper provides access to the system ioctls
as described in KVM API.
Implementations
sourceimpl Kvm
impl Kvm
sourcepub fn create_vm(&self) -> Result<Vm>
pub fn create_vm(&self) -> Result<Vm>
Create a new virtual machine with the KVM_CREATE_VM
ioctl.
Returns a wrapper vm::Vm
representing the VM.
sourcepub fn check_extenstion(&self, cap: CapBool) -> bool
pub fn check_extenstion(&self, cap: CapBool) -> bool
Check availability of an extension with the KVM_CHECK_EXTENSION
ioctl.
sourcepub fn check_extenstion_int(&self, cap: CapInt) -> i32
pub fn check_extenstion_int(&self, cap: CapInt) -> i32
Check availability of an extension with the KVM_CHECK_EXTENSION
ioctl.
Auto Trait Implementations
impl RefUnwindSafe for Kvm
impl Send for Kvm
impl Sync for Kvm
impl Unpin for Kvm
impl UnwindSafe for Kvm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more