mbox series

[v4,0/2] AHCI cleanup

Message ID 20241212110926.23548-1-shentey@gmail.com (mailing list archive)
Headers show
Series AHCI cleanup | expand

Message

Bernhard Beschow Dec. 12, 2024, 11:09 a.m. UTC
This series fixes some runtime overhead when handling interrupts in AHCIState.
It then extracts the SysBus implementation into a dedicated file for separation
of concerns.

v4:
* Port away from qemu_allocate_irq() while at it

v3:
* Remove extra PCI include in ahci-internal.h
* Extract SysBus implementation into dedicated file

Supersedes: 20241205114453.1848-1-shentey@gmail.com

Bernhard Beschow (2):
  hw/ide/ahci: Decouple from PCI
  hw/ide/ahci: Extract TYPE_SYSBUS_AHCI into dedicated file

 hw/ide/ahci-internal.h    |   1 -
 include/hw/ide/ahci-pci.h |   2 +
 include/hw/ide/ahci.h     |   2 -
 hw/ide/ahci-sysbus.c      |  91 ++++++++++++++++++++++++++++++++
 hw/ide/ahci.c             | 106 ++------------------------------------
 hw/ide/ich.c              |  19 +++++--
 hw/arm/Kconfig            |  10 ++--
 hw/ide/Kconfig            |   4 ++
 hw/ide/meson.build        |   1 +
 9 files changed, 122 insertions(+), 114 deletions(-)
 create mode 100644 hw/ide/ahci-sysbus.c