mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: mshv: fix topology for Intel HW on MSHV
Populating these cpuid with default values so that CLH can patch with topology information. Otherwise it gets skipped while setting some topology information. Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
@@ -374,7 +374,16 @@ impl hypervisor::Hypervisor for MshvHypervisor {
|
||||
/// Get the supported CpuID
|
||||
///
|
||||
fn get_supported_cpuid(&self) -> hypervisor::Result<Vec<CpuIdEntry>> {
|
||||
Ok(Vec::new())
|
||||
let mut cpuid = Vec::new();
|
||||
let functions: [u32; 2] = [0x1, 0xb];
|
||||
|
||||
for function in functions {
|
||||
cpuid.push(CpuIdEntry {
|
||||
function,
|
||||
..Default::default()
|
||||
});
|
||||
}
|
||||
Ok(cpuid)
|
||||
}
|
||||
|
||||
/// Get maximum number of vCPUs
|
||||
|
||||
Reference in New Issue
Block a user