Counts the number of active vCPUs (running vCPU threads).
(vcpu_states: &[VcpuState])
| 1661 | |
| 1662 | /// Counts the number of active vCPUs (running vCPU threads). |
| 1663 | fn active_vcpus(vcpu_states: &[VcpuState]) -> u32 { |
| 1664 | vcpu_states |
| 1665 | .iter() |
| 1666 | .fold(0, |acc, state| acc + state.active() as u32) |
| 1667 | } |
| 1668 | |
| 1669 | #[cfg(target_arch = "aarch64")] |
| 1670 | pub fn get_mpidrs(&self) -> Vec<u64> { |
nothing calls this directly
no test coverage detected