Searched refs:guest_addr (Results 1 – 5 of 5) sorted by relevance
/external/crosvm/sys_util/src/ |
D | guest_memory.rs | 286 pub fn write_at_addr(&self, buf: &[u8], guest_addr: GuestAddress) -> Result<usize> { in write_at_addr() 287 self.do_in_region(guest_addr, move |mapping, offset| { in write_at_addr() 290 .map_err(|e| Error::MemoryAccess(guest_addr, e)) in write_at_addr() 312 pub fn write_all_at_addr(&self, buf: &[u8], guest_addr: GuestAddress) -> Result<()> { in write_all_at_addr() 314 let completed = self.write_at_addr(buf, guest_addr)?; in write_all_at_addr() 344 pub fn read_at_addr(&self, buf: &mut [u8], guest_addr: GuestAddress) -> Result<usize> { in read_at_addr() 345 self.do_in_region(guest_addr, move |mapping, offset| { in read_at_addr() 348 .map_err(|e| Error::MemoryAccess(guest_addr, e)) in read_at_addr() 370 pub fn read_exact_at_addr(&self, buf: &mut [u8], guest_addr: GuestAddress) -> Result<()> { in read_exact_at_addr() 372 let completed = self.read_at_addr(buf, guest_addr)?; in read_exact_at_addr() [all …]
|
/external/crosvm/arch/src/ |
D | lib.rs | 316 guest_addr: GuestAddress, in load_image() 336 .read_to_memory(guest_addr, image, size) in load_image() 381 let guest_addr = GuestAddress((max_guest_addr.offset() - size) & !(align - 1)); in load_image_high() localVariable 387 .read_to_memory(guest_addr, image, size) in load_image_high() 390 Ok((guest_addr, size)) in load_image_high()
|
/external/crosvm/kernel_loader/src/ |
D | lib.rs | 150 guest_addr: GuestAddress, in load_cmdline() 158 let end = guest_addr in load_cmdline() 166 .write_at_addr(cmdline.to_bytes_with_nul(), guest_addr) in load_cmdline()
|
/external/crosvm/kvm/src/ |
D | lib.rs | 72 guest_addr: u64, in set_user_memory_region() 83 guest_phys_addr: guest_addr, in set_user_memory_region() 308 guest_mem.with_regions(|index, guest_addr, size, host_addr, _| { in new() 316 guest_addr.offset() as u64, in new() 340 guest_addr: u64, in set_user_memory_region() 358 guest_addr, in set_user_memory_region() 405 guest_addr: GuestAddress, in add_device_memory() 410 if guest_addr < self.guest_mem.end_addr() { in add_device_memory() 422 guest_addr.offset() as u64, in add_device_memory() 464 guest_addr: GuestAddress, in add_mmap_arena() [all …]
|
/external/crosvm/vhost/src/ |
D | lib.rs | 135 .with_regions::<_, ()>(|index, guest_addr, size, host_addr, _| { in set_mem_table() 137 guest_phys_addr: guest_addr.offset() as u64, in set_mem_table()
|