(&self)
| 1172 | |
| 1173 | #[cfg(all(feature = "kvm", target_arch = "x86_64"))] |
| 1174 | pub(crate) fn max_apic_id(&self) -> u32 { |
| 1175 | if let Some(topology) = &self.cpus.topology { |
| 1176 | arch::x86_64::get_max_x2apic_id(( |
| 1177 | topology.threads_per_core, |
| 1178 | topology.cores_per_die, |
| 1179 | topology.dies_per_package, |
| 1180 | topology.packages, |
| 1181 | )) |
| 1182 | } else { |
| 1183 | self.cpus.max_vcpus |
| 1184 | } |
| 1185 | } |
| 1186 | } |
no test coverage detected