vmm: Delegate CPU related ACPI tables to CpuManager

Move the code for generating the MADT (APIC) table and the DSDT
generation for CPU related functionality into the CpuManager.

There is no functional change just code rearrangement.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2019-12-06 15:25:57 +00:00
parent defc5dcd9c
commit 60e6609011
3 changed files with 275 additions and 257 deletions
+1 -2
View File
@@ -539,12 +539,11 @@ impl Vm {
use crate::config::ConsoleOutputMode;
crate::acpi::create_acpi_tables(
&mem,
boot_vcpus,
_max_vcpus,
self.config.lock().unwrap().serial.mode != ConsoleOutputMode::Off,
start_of_device_area,
end_of_range,
self.devices.virt_iommu(),
&self.cpu_manager,
)
});
}