Configure the specified VCPU, and return its MPIDR.
(
vcpu: &dyn hypervisor::Vcpu,
id: u32,
boot_setup: Option<(EntryPoint, &GuestMemoryAtomic<GuestMemoryMmap>)>,
)
| 81 | |
| 82 | /// Configure the specified VCPU, and return its MPIDR. |
| 83 | pub fn configure_vcpu( |
| 84 | vcpu: &dyn hypervisor::Vcpu, |
| 85 | id: u32, |
| 86 | boot_setup: Option<(EntryPoint, &GuestMemoryAtomic<GuestMemoryMmap>)>, |
| 87 | ) -> super::Result<()> { |
| 88 | if let Some((kernel_entry_point, _guest_memory)) = boot_setup { |
| 89 | vcpu.setup_regs( |
| 90 | id, |
| 91 | kernel_entry_point.entry_addr.raw_value(), |
| 92 | layout::FDT_START.raw_value(), |
| 93 | ) |
| 94 | .map_err(Error::RegsConfiguration)?; |
| 95 | } |
| 96 | |
| 97 | Ok(()) |
| 98 | } |
| 99 | |
| 100 | pub fn arch_memory_regions() -> Vec<(GuestAddress, usize, RegionType)> { |
| 101 | vec![ |
nothing calls this directly
no test coverage detected