pub fn map_user_memory(&self, user_memory_region: mshv_user_mem_region) -> Result<()> {
        // SAFETY: IOCTL with correct types
        let ret = unsafe { ioctl_with_ref(self, MSHV_MAP_GUEST_MEMORY(), &user_memory_region) };
        if ret == 0 {
            Ok(())
        } else {
            Err(errno::Error::last())
        }
    }
/// Creates/modifies a guest physical memory.
Creates/modifies a guest physical memory.
Creates / modifies a guest physical memory .
pub fn map_user_memory(&self, user_memory_region: mshv_user_mem_region) -> Result<()> {
        // SAFETY: IOCTL with correct types
        let ret = unsafe { ioctl_with_ref(self, MSHV_MAP_GUEST_MEMORY(), &user_memory_region) };
        if ret == 0 {
            Ok(())
        } else {
            Err(errno::Error::last())
        }
    }
pub fn map_user_memory ( & self , user_memory_region : mshv_user_mem_region ) -> Result < ( ) > { // SAFETY: IOCTL with correct types let ret = unsafe { ioctl_with_ref ( self , MSHV_MAP_GUEST_MEMORY ( ) , & user_memory_region ) } ; if ret == 0 { Ok ( ( ) ) } else { Err ( errno :: Error :: last ( ) ) } }
Creates/modifies a guest physical memory.
Creates / modifies a guest physical memory .
&self
user_memory_region
mshv_user_mem_region
&self
user_memory_region
mshv_user_mem_region