mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +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:
parent
b70b8dfa4c
commit
06e8d1c40c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user