pub struct VmMemConfig {
pub gpa: usize,
pub size: usize,
pub flags: usize,
pub map_type: VmMemMappingType,
}
Expand description
Configuration for a virtual machine memory region.
Represents a contiguous memory region within the guest’s physical address space. Each region has specific properties including address, size, access permissions, and mapping type that determine how it’s handled by the hypervisor.
Fields§
§gpa: usize
The start address of the memory region in GPA (Guest Physical Address).
size: usize
The size of the memory region in bytes.
flags: usize
The mappings flags of the memory region, refers to MappingFlags
provided by axaddrspace
.
Defines access permissions (read, write, execute) and caching behavior.
map_type: VmMemMappingType
The type of memory mapping. Determines whether memory is allocated dynamically or mapped identically.
Trait Implementations§
Source§impl Clone for VmMemConfig
impl Clone for VmMemConfig
Source§fn clone(&self) -> VmMemConfig
fn clone(&self) -> VmMemConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VmMemConfig
impl Debug for VmMemConfig
Source§impl Default for VmMemConfig
impl Default for VmMemConfig
Source§fn default() -> VmMemConfig
fn default() -> VmMemConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VmMemConfig
impl<'de> Deserialize<'de> for VmMemConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VmMemConfig
impl RefUnwindSafe for VmMemConfig
impl Send for VmMemConfig
impl Sync for VmMemConfig
impl Unpin for VmMemConfig
impl UnwindSafe for VmMemConfig
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