Method
get_cpuid2
(&self, num_entries: usize)
Source from the content-addressed store, hash-verified
| 2259 | /// |
| 2260 | #[cfg(target_arch = "x86_64")] |
| 2261 | fn get_cpuid2(&self, num_entries: usize) -> cpu::Result<Vec<CpuIdEntry>> { |
| 2262 | let kvm_cpuid = self |
| 2263 | .fd |
| 2264 | .get_cpuid2(num_entries) |
| 2265 | .map_err(|e| cpu::HypervisorCpuError::GetCpuid(e.into()))?; |
| 2266 | |
| 2267 | let v = kvm_cpuid.as_slice().iter().map(|e| (*e).into()).collect(); |
| 2268 | |
| 2269 | Ok(v) |
| 2270 | } |
| 2271 | |
| 2272 | #[cfg(target_arch = "x86_64")] |
| 2273 | /// |
Tested by
no test coverage detected