Skip to content
Snippets Groups Projects
  1. Jul 19, 2022
  2. Jul 04, 2022
  3. Jun 27, 2022
  4. Jun 06, 2022
  5. May 08, 2022
  6. Apr 26, 2022
  7. Apr 06, 2022
  8. Feb 26, 2022
  9. Feb 09, 2022
  10. Jan 13, 2022
  11. Jan 08, 2022
  12. Nov 02, 2021
  13. Sep 30, 2021
  14. Sep 04, 2021
    • Ani Sinha's avatar
      hw/acpi: refactor acpi hp modules so that targets can just use what they need · fe8adae3
      Ani Sinha authored
      Currently various acpi hotplug modules like cpu hotplug, memory hotplug, pci
      hotplug, nvdimm hotplug are all pulled in when CONFIG_ACPI_X86 is turned on.
      This brings in support for whole lot of subsystems that some targets like
      mips does not need. They are added just to satisfy symbol dependencies. This
      is ugly and should be avoided. Targets should be able to pull in just what they
      need and no more. For example, mips only needs support for PIIX4 and does not
      need acpi pci hotplug support or cpu hotplug support or memory hotplug support
      etc. This change is an effort to clean this up.
      In this change, new config variables are added for various acpi hotplug
      subsystems. Targets like mips can only enable PIIX4 support and not the rest
      of all the other modules which were being previously pulled in as a part of
      CONFIG_ACPI_X86. Function stubs make sure that symbols which piix4 needs but
      are not required by mips (for example, symbols specific to pci hotplug etc)
      are available to satisfy the dependencies.
      
      Currently, this change only addresses issues with mips malta targets. In future
      we might be able to clean up other targets which are similarly pulling in lot
      of unnecessary hotplug modules by enabling ACPI_X86.
      
      This change should also address issues such as the following:
      https://gitlab.com/qemu-project/qemu/-/issues/221
      https://gitlab.com/qemu-project/qemu/-/issues/193
      
      
      
      Signed-off-by: default avatarAni Sinha <ani@anisinha.ca>
      Message-Id: <20210812071409.492299-1-ani@anisinha.ca>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      fe8adae3
  15. Jul 20, 2021
  16. Jul 09, 2021
Loading