Struct kvm_rs::kvm::Kvm [−][src]
pub struct Kvm { /* fields omitted */ }
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
impl Kvm
[src]
impl Kvm
[src]pub fn new() -> Result<Kvm>
[src]
Open the /dev/kvm
device.
pub fn create_vm(&self) -> Result<Vm>
[src]
Create a new virtual machine with the KVM_CREATE_VM
ioctl.
Returns a wrapper vm::Vm
representing the VM.
pub fn check_extenstion(&self, cap: CapBool) -> bool
[src]
Check availability of an extension with the KVM_CHECK_EXTENSION
ioctl.
pub fn check_extenstion_int(&self, cap: CapInt) -> i32
[src]
Check availability of an extension with the KVM_CHECK_EXTENSION
ioctl.