vmm: acpi: Create the CPU entries in the DSDT for all vCPUs

CPU entries need to be created for every potential vCPU in the system.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2019-11-27 17:12:42 +00:00
parent 791ca3388f
commit ae9359c859
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -513,7 +513,7 @@ impl Vm {
)
.map_err(|_| Error::CmdLine)?;
let boot_vcpus = self.cpu_manager.lock().unwrap().boot_vcpus();
let max_vcpus = self.cpu_manager.lock().unwrap().max_vcpus();
let _max_vcpus = self.cpu_manager.lock().unwrap().max_vcpus();
#[allow(unused_mut, unused_assignments)]
let mut rsdp_addr: Option<GuestAddress> = None;
@@ -534,7 +534,7 @@ impl Vm {
crate::acpi::create_acpi_tables(
&mem,
boot_vcpus,
max_vcpus,
_max_vcpus,
self.config.serial.mode != ConsoleOutputMode::Off,
start_of_device_area,
end_of_range,