pub struct Region {
pub slot: u32,
pub gpa: u64,
pub size: u64,
pub host: usize,
}Expand description
One slot of guest RAM mapped into this process.
Fields§
§slot: u32KVM memory-slot id (as passed to KVM_SET_USER_MEMORY_REGION).
gpa: u64First guest-physical address.
size: u64Size in bytes.
host: usizeHost virtual address of the first byte.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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
Mutably borrows from an owned value. Read more