[][src]Struct kvm_sys::VirtualMachine

pub struct VirtualMachine<'a> { /* fields omitted */ }

A Virtual Machine.

This allows the creation of Vcpus and establishing memory mappings

Methods

impl<'a> VirtualMachine<'a>[src]

pub fn create(s: &'a System) -> Result<Self>[src]

Create a VirtualMachine

pub fn check_capability(&mut self, cap: Capability) -> i32[src]

Check for a capability on this VirtualMachine

pub fn set_user_memory_region(
    &mut self,
    phys_addr: u64,
    user_addr: &'a mut [u8],
    flags: u32
) -> Result<()>
[src]

Establish a guest memory mapping.

The slice specified by user_addr is mapped at phys_addr. Flags is the bitwise or of MEM_LOG_DIRTY_PAGES and/or MEM_READONLY.

Trait Implementations

impl<'a> Debug for VirtualMachine<'a>[src]

Auto Trait Implementations

impl<'a> Send for VirtualMachine<'a>

impl<'a> Unpin for VirtualMachine<'a>

impl<'a> Sync for VirtualMachine<'a>

impl<'a> !UnwindSafe for VirtualMachine<'a>

impl<'a> RefUnwindSafe for VirtualMachine<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]