cpu: Implement AMD compatible topology handling

cpu: Pass APIC id explicitly where needed
topology: Set subleaf number explicitly

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2023-04-28 20:44:07 +02:00
committed by Anatol Belski
parent 31686b91d3
commit b52966a12c
4 changed files with 125 additions and 25 deletions
-2
View File
@@ -1668,7 +1668,6 @@ impl Vmm {
arch::generate_common_cpuid(
&hypervisor,
None,
None,
phys_bits,
vm_config.lock().unwrap().cpus.kvm_hyperv,
#[cfg(feature = "tdx")]
@@ -1858,7 +1857,6 @@ impl Vmm {
arch::generate_common_cpuid(
&self.hypervisor.clone(),
None,
None,
phys_bits,
vm_config.cpus.kvm_hyperv,
#[cfg(feature = "tdx")]