mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Use new CpuManager accessor to get boot vCPUs
When initialising the ACPI tables and configuring the VM use the new accessor on the CpuManager to get the number of boot vCPUs. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -512,7 +512,7 @@ impl Vm {
|
||||
&cmdline_cstring,
|
||||
)
|
||||
.map_err(|_| Error::CmdLine)?;
|
||||
let vcpu_count = self.config.cpus.cpu_count;
|
||||
let boot_vcpus = self.cpu_manager.lock().unwrap().boot_vcpus();
|
||||
|
||||
#[allow(unused_mut, unused_assignments)]
|
||||
let mut rsdp_addr: Option<GuestAddress> = None;
|
||||
@@ -532,7 +532,7 @@ impl Vm {
|
||||
use crate::config::ConsoleOutputMode;
|
||||
crate::acpi::create_acpi_tables(
|
||||
&mem,
|
||||
vcpu_count,
|
||||
boot_vcpus,
|
||||
self.config.serial.mode != ConsoleOutputMode::Off,
|
||||
start_of_device_area,
|
||||
end_of_range,
|
||||
@@ -547,7 +547,7 @@ impl Vm {
|
||||
&mem,
|
||||
arch::layout::CMDLINE_START,
|
||||
cmdline_cstring.to_bytes().len() + 1,
|
||||
vcpu_count,
|
||||
boot_vcpus,
|
||||
Some(hdr),
|
||||
rsdp_addr,
|
||||
)
|
||||
@@ -566,7 +566,7 @@ impl Vm {
|
||||
&mem,
|
||||
arch::layout::CMDLINE_START,
|
||||
cmdline_cstring.to_bytes().len() + 1,
|
||||
vcpu_count,
|
||||
boot_vcpus,
|
||||
None,
|
||||
rsdp_addr,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user