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

Function physical_bits

vmm/src/vm.rs:515–519  ·  view source on GitHub ↗
(hypervisor: &dyn hypervisor::Hypervisor, max_phys_bits: u8)

Source from the content-addressed store, hash-verified

513}
514
515pub fn physical_bits(hypervisor: &dyn hypervisor::Hypervisor, max_phys_bits: u8) -> u8 {
516 let host_phys_bits = get_host_cpu_phys_bits(hypervisor);
517
518 cmp::min(host_phys_bits, max_phys_bits)
519}
520
521pub struct Vm {
522 #[cfg(feature = "tdx")]

Callers 6

vm_receive_configMethod · 0.85
send_migrationMethod · 0.85
populate_cpuidMethod · 0.85
newMethod · 0.85
snapshotMethod · 0.85

Calls 1

get_host_cpu_phys_bitsFunction · 0.50

Tested by

no test coverage detected