cloud-hypervisor/vmm/src
Rob Bradford bf9f79081a vmm: Only create ACPI memory manager DSDT when resizable
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>
2022-04-26 13:07:19 +02:00
..
api vmm: api: Don't use clashing struct name for Error 2022-04-22 17:46:41 +01:00
acpi.rs aarch64: Align the data types in layout 2022-04-08 11:08:43 -07:00
clone3.rs vmm: notify virtio-console of pty resizes 2021-09-14 15:43:25 +01:00
config.rs vmm: Only create ACPI memory manager DSDT when resizable 2022-04-26 13:07:19 +02:00
cpu.rs vmm: cpu: Improve Error reporting 2022-04-22 17:46:41 +01:00
device_manager.rs pci: Store MSI interrupt manager in VfioCommon 2022-04-22 16:16:48 +02:00
device_tree.rs pci, vmm: Update DeviceNode to store PciBdf instead of u32 2022-02-16 11:57:23 +00:00
gdb.rs vmm: Implement GDB event handler to enable --gdb flag 2022-02-23 11:16:09 +00:00
interrupt.rs vm-device, pci, devices: Remove InterruptSourceGroup::{un}mask 2022-04-11 22:56:48 +01:00
lib.rs vmm: Improve error handling for vmm::vm::Error 2022-04-22 17:46:41 +01:00
memory_manager.rs vmm: Only create ACPI memory manager DSDT when resizable 2022-04-26 13:07:19 +02:00
migration.rs vmm: Split VM config and VM state for snapshot/restore 2022-02-08 15:06:49 +00:00
pci_segment.rs arch, devices, vmm: Remove "acpi" feature gate 2022-03-28 09:18:29 -07:00
seccomp_filters.rs vmm: seccomp: Allow SYS_rseq as required by newer glibc 2022-04-21 13:02:51 +01:00
serial_buffer.rs vmm: Refactor serial buffer to allow flush on PTY when writable 2021-09-27 14:18:21 +01:00
serial_manager.rs vmm: Refactor serial buffer to allow flush on PTY when writable 2021-09-27 14:18:21 +01:00
sigwinch_listener.rs vmm: Fix panic in SIGWINCH listener thread when no seccomp filter set 2021-11-16 14:28:02 +00:00
vm.rs vmm: Improve error handling for vmm::vm::Error 2022-04-22 17:46:41 +01:00