Home
last modified time | relevance | path

Searched refs:guest_mem (Results 1 – 20 of 20) sorted by relevance

/external/crosvm/x86_64/src/
Dtest_integration.rs41 |guest_mem| { in simple_kvm_kernel_irqchip_test()
43 let vm = KvmVm::new(&kvm, guest_mem).expect("failed to create kvm vm"); in simple_kvm_kernel_irqchip_test()
57 |guest_mem| { in simple_kvm_split_irqchip_test()
59 let vm = KvmVm::new(&kvm, guest_mem).expect("failed to create kvm vm"); in simple_kvm_split_irqchip_test()
99 let guest_mem = GuestMemory::new(&arch_mem_regions).unwrap(); in simple_vm_test() localVariable
101 let mut resources = X8664arch::get_resource_allocator(&guest_mem); in simple_vm_test()
103 let (hyp, mut vm) = create_vm(guest_mem.clone()); in simple_vm_test()
167 guest_mem.write_at_addr(&code[..], start_addr).unwrap(); in simple_vm_test()
192 &guest_mem, in simple_vm_test()
203 mptable::setup_mptable(&guest_mem, 1, pci_irqs).expect("failed to setup mptable"); in simple_vm_test()
[all …]
Dacpi.rs103 guest_mem: &GuestMemory, in create_acpi_tables()
116 guest_mem.write_at_addr(sdt.as_slice(), offset).ok()?; in create_acpi_tables()
131 guest_mem.write_at_addr(dsdt.as_slice(), offset).ok()?; in create_acpi_tables()
183 guest_mem.write_at_addr(facp.as_slice(), offset).ok()?; in create_acpi_tables()
219 guest_mem.write_at_addr(madt.as_slice(), offset).ok()?; in create_acpi_tables()
236 guest_mem.write_at_addr(xsdt.as_slice(), offset).ok()?; in create_acpi_tables()
240 guest_mem.write_at_addr(rsdp.as_slice(), rsdp_offset).ok()?; in create_acpi_tables()
Dfdt.rs38 guest_mem: &GuestMemory, in create_fdt()
67 guest_mem in create_fdt()
70 guest_mem in create_fdt()
75 let written = guest_mem in create_fdt()
Dbzimage.rs56 guest_mem: &GuestMemory, in load_bzimage()
97 guest_mem in load_bzimage()
Dregs.rs257 fn write_gdt_table(table: &[u64], guest_mem: &GuestMemory) -> Result<()> { in write_gdt_table()
260 let addr = guest_mem in write_gdt_table()
263 guest_mem in write_gdt_table()
270 fn write_idt_value(val: u64, guest_mem: &GuestMemory) -> Result<()> { in write_idt_value()
272 guest_mem in write_idt_value()
Dlib.rs236 guest_mem: &GuestMemory, in configure_system()
269 let mem_end = guest_mem.end_addr(); in configure_system()
295 guest_mem in configure_system()
298 guest_mem in configure_system()
540 guest_mem: &GuestMemory, in configure_vcpu()
558 let kernel_end = guest_mem in configure_vcpu()
569 regs::setup_sregs(guest_mem, vcpu).map_err(Error::SetupSregs)?; in configure_vcpu()
656 guest_mem: &GuestMemory, in debug_read_memory()
666 let (paddr, psize) = phys_addr(guest_mem, vaddr.0 + total_read, &sregs)?; in debug_read_memory()
668 guest_mem in debug_read_memory()
[all …]
Dcpuid.rs195 let guest_mem = in feature_and_vendor_name() localVariable
198 let vm = hypervisor::kvm::KvmVm::new(&kvm, guest_mem).unwrap(); in feature_and_vendor_name()
/external/crosvm/kernel_loader/src/
Dlib.rs74 guest_mem: &GuestMemory, in load_kernel()
133 guest_mem in load_kernel()
154 guest_mem: &GuestMemory, in load_cmdline()
166 if end > guest_mem.end_addr() { in load_cmdline()
170 guest_mem in load_cmdline()
/external/crosvm/aarch64/src/
Dfdt.rs59 fn create_memory_node(fdt: &mut FdtWriter, guest_mem: &GuestMemory) -> Result<()> { in create_memory_node()
60 let mem_size = guest_mem.memory_size(); in create_memory_node()
357 guest_mem: &GuestMemory, in create_fdt()
382 create_memory_node(&mut fdt, guest_mem)?; in create_fdt()
399 let written = guest_mem in create_fdt()
Dlib.rs484 guest_mem: &GuestMemory, in configure_vcpu_early()
516 let mem_size = guest_mem.memory_size(); in configure_vcpu_early()
/external/crosvm/kvm/tests/
Ddirty_log.rs21 let guest_mem = GuestMemory::new(&[]).unwrap(); in test_run() localVariable
32 let mut vm = Vm::new(&kvm, guest_mem).expect("new vm failed"); in test_run()
Dread_only_memory.rs23 let guest_mem = GuestMemory::new(&[]).unwrap(); in test_run() localVariable
34 let mut vm = Vm::new(&kvm, guest_mem).expect("new vm failed"); in test_run()
/external/crosvm/arch/src/
Dlib.rs185 guest_mem: &GuestMemory, in configure_vcpu()
207 guest_mem: &GuestMemory, in debug_read_memory()
216 guest_mem: &GuestMemory, in debug_write_memory()
544 guest_mem: &GuestMemory, in load_image()
565 guest_mem in load_image()
585 guest_mem: &GuestMemory, in load_image_high()
616 guest_mem in load_image_high()
/external/crosvm/devices/src/
Dvfio.rs166 fn init(&mut self, vm: &impl Vm, guest_mem: &GuestMemory) -> Result<(), VfioError> { in init()
177 guest_mem.with_regions(|_index, guest_addr, size, host_addr, _mmap, _fd_offset| { in init()
194 guest_mem: &GuestMemory, in get_group()
204 self.init(vm, guest_mem)?; in get_group()
357 guest_mem: &GuestMemory, in new()
370 let group = container.lock().get_group(group_id, vm, guest_mem)?; in new()
/external/crosvm/hypervisor/src/kvm/
Dmod.rs158 guest_mem: GuestMemory, field
166 pub fn new(kvm: &Kvm, guest_mem: GuestMemory) -> Result<KvmVm> { in new()
175 guest_mem.with_regions(|index, guest_addr, size, host_addr, _, _| { in new()
193 guest_mem, in new()
428 guest_mem: self.guest_mem.clone(), in try_clone()
447 &self.guest_mem in get_memory()
465 if self.guest_mem.range_overlap(guest_addr, end_addr) { in add_memory_region()
472 None => (regions.len() + self.guest_mem.num_regions() as usize) as MemSlot, in add_memory_region()
/external/crosvm/devices/src/virtio/
Dp9.rs221 guest_mem: GuestMemory, in activate()
246 mem: guest_mem, in activate()
/external/crosvm/disk/src/
Ddisk.rs506 let guest_mem = Arc::new(GuestMemory::new(&[(GuestAddress(0), 4096)]).unwrap()); in read_async() localVariable
512 Arc::clone(&guest_mem), in read_async()
526 let guest_mem = Arc::new(GuestMemory::new(&[(GuestAddress(0), 4096)]).unwrap()); in write_async() localVariable
532 Arc::clone(&guest_mem), in write_async()
/external/crosvm/devices/src/virtio/fs/
Dmod.rs240 guest_mem: GuestMemory, in activate()
289 let mem = guest_mem.clone(); in activate()
/external/crosvm/kvm/src/
Dlib.rs267 guest_mem: GuestMemory, field
274 pub fn new(kvm: &Kvm, guest_mem: GuestMemory) -> Result<Vm> { in new()
281 guest_mem.with_regions(|index, guest_addr, size, host_addr, _, _| { in new()
298 guest_mem, in new()
343 if self.guest_mem.range_overlap(guest_addr, end_addr) { in add_memory_region()
350 None => (regions.len() + self.guest_mem.num_regions() as usize) as u32, in add_memory_region()
431 &self.guest_mem in get_memory()
/external/crosvm/src/
Dlinux.rs1901 guest_mem: &GuestMemory, in handle_debug_msg()
1933 Arch::debug_read_memory(vcpu as &V, guest_mem, vaddr, len) in handle_debug_msg()
1942 Arch::debug_write_memory(vcpu as &V, guest_mem, vaddr, &buf) in handle_debug_msg()
2005 let guest_mem = vm.get_memory().clone(); in run_vcpu() localVariable
2103 cpu_id, &vcpu, &guest_mem, d, &ch, in run_vcpu()
2293 let guest_mem = GuestMemory::new(&guest_mem_layout).unwrap(); in run_config() localVariable
2298 guest_mem.set_memory_policy(mem_policy); in run_config()
2300 let vm = KvmVm::new(&kvm, guest_mem).map_err(Error::CreateVm)?; in run_config()