• Home
  • Raw
  • Download

Lines Matching refs:map_err

300         .map_err(|_| Error::ZeroPageSetup)?;  in configure_system()
356 VmImage::Bios(bios_file) => Some(bios_file.metadata().map_err(Error::LoadBios)?.len()), in guest_memory_layout()
394 create_irq_chip(&vm, vcpu_count).map_err(|e| Error::CreateIrqChip(Box::new(e)))?; in build_vm()
397 vm.set_tss_addr(tss_addr).map_err(Error::SetTssAddr)?; in build_vm()
401 let exit_evt = Event::new().map_err(Error::CreateEvent)?; in build_vm()
404 .map_err(|e| Error::CreateDevices(Box::new(e)))?; in build_vm()
413 .map_err(Error::CreatePciRoot)?; in build_vm()
417 let suspend_evt = Event::new().map_err(Error::CreateEvent)?; in build_vm()
421 exit_evt.try_clone().map_err(Error::CloneEvent)?, in build_vm()
437 suspend_evt.try_clone().map_err(Error::CloneEvent)?, in build_vm()
438 exit_evt.try_clone().map_err(Error::CloneEvent)?, in build_vm()
448 .map_err(Error::Pstore)?, in build_vm()
455 .map_err(Error::RegisterIrqfd)?; in build_vm()
466 mptable::setup_mptable(&mem, vcpu_count as u8, pci_irqs).map_err(Error::SetupMptable)?; in build_vm()
467 smbios::setup_smbios(&mem, components.dmi_path).map_err(Error::SetupSmbios)?; in build_vm()
478 .map_err(Error::GetSerialCmdline)?; in build_vm()
481 cmdline.insert_str(&param).map_err(Error::Cmdline)?; in build_vm()
498 .map_err(Error::Cmdline)?; in build_vm()
550 .map_err(Error::SetupCpuid)?; in configure_vcpu()
557 regs::setup_msrs(vcpu, END_ADDR_BEFORE_32BITS).map_err(Error::SetupMsrs)?; in configure_vcpu()
567 .map_err(Error::SetupRegs)?; in configure_vcpu()
568 regs::setup_fpu(vcpu).map_err(Error::SetupFpu)?; in configure_vcpu()
569 regs::setup_sregs(guest_mem, vcpu).map_err(Error::SetupSregs)?; in configure_vcpu()
570 interrupts::set_lint(vcpu_id, irq_chip).map_err(Error::SetLint)?; in configure_vcpu()
578 let gregs = vcpu.get_regs().map_err(Error::ReadRegs)?; in debug_read_registers()
590 let sregs = vcpu.get_sregs().map_err(Error::ReadRegs)?; in debug_read_registers()
612 let orig_gregs = vcpu.get_regs().map_err(Error::ReadRegs)?; in debug_write_registers()
634 vcpu.set_regs(&gregs).map_err(Error::WriteRegs)?; in debug_write_registers()
638 let mut sregs = vcpu.get_sregs().map_err(Error::ReadRegs)?; in debug_write_registers()
646 vcpu.set_sregs(&sregs).map_err(Error::WriteRegs)?; in debug_write_registers()
660 let sregs = vcpu.get_sregs().map_err(Error::ReadRegs)?; in debug_read_memory()
670 .map_err(Error::ReadingGuestMemory)? in debug_read_memory()
684 let sregs = vcpu.get_sregs().map_err(Error::ReadRegs)?; in debug_write_memory()
699 .map_err(Error::WritingGuestMemory)?; in debug_write_memory()
708 .map_err(Error::EnableSinglestep) in debug_enable_singlestep()
717 .map_err(Error::SetHwBreakpoint) in debug_set_hw_breakpoints()
742 .map_err(|_| Error::TranslatingVirtAddr)?; in phys_addr()
814 .map_err(Error::LoadBios)?; in load_bios()
826 .map_err(Error::LoadBios)?; in load_bios()
832 .map_err(Error::SetupGuestMemory)?; in load_bios()
847 .map_err(Error::LoadBzImage) in load_kernel()
849 let kernel_end = elf_result.map_err(Error::LoadKernel)?; in load_kernel()
872 .map_err(Error::LoadCmdline)?; in setup_system_memory()
887 .map_err(Error::CreateFdt)?; in setup_system_memory()
914 .map_err(Error::LoadInitrd)?; in setup_system_memory()
1011 exit_evt.try_clone().map_err(Error::CloneEvent)?, in setup_io_bus()
1068 .map_err(Error::AllocateIOResouce)?, in setup_acpi_devices()
1095 .map_err(Error::CreateBatDevices)?; in setup_acpi_devices()
1131 let com_evt_1_3 = Event::new().map_err(Error::CreateEvent)?; in setup_serial_devices()
1132 let com_evt_2_4 = Event::new().map_err(Error::CreateEvent)?; in setup_serial_devices()
1142 .map_err(Error::CreateSerialDevices)?; in setup_serial_devices()
1146 .map_err(Error::RegisterIrqfd)?; in setup_serial_devices()
1149 .map_err(Error::RegisterIrqfd)?; in setup_serial_devices()