MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / max_apic_id

Method max_apic_id

vmm/src/vm_config.rs:1174–1185  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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}

Callers 2

vm_receive_configMethod · 0.80
newMethod · 0.80

Calls 1

get_max_x2apic_idFunction · 0.85

Tested by

no test coverage detected