(hypervisor: &dyn hypervisor::Hypervisor, max_phys_bits: u8)
| 513 | } |
| 514 | |
| 515 | pub 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 | |
| 521 | pub struct Vm { |
| 522 | #[cfg(feature = "tdx")] |
no test coverage detected