[−][src]Struct kvm_sys::VirtualMachine
A Virtual Machine.
This allows the creation of Vcpu
s 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]
&mut self,
phys_addr: u64,
user_addr: &'a mut [u8],
flags: u32
) -> Result<()>
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
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,