mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
bf9f79081a
If using the ACPI based hotplug only memory can be added so if the hotplug RAM size is the same as the boot RAM size then do not include the memory manager DSDT entries. Also: this change simplifies the code marginally by making the HotplugMethod enum Copyable. This was identified from the following perf output: 1.78% 0.00% vmm cloud-hypervisor [.] <vmm::memory_manager::MemorySlots as acpi_tables::aml::Aml>::append_aml_bytes | ---<vmm::memory_manager::MemorySlots as acpi_tables::aml::Aml>::append_aml_bytes <vmm::memory_manager::MemorySlot as acpi_tables::aml::Aml>::append_aml_bytes acpi_tables::aml::Name::new <acpi_tables::aml::Path as acpi_tables::aml::Aml>::append_aml_bytes __libc_malloc Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |