[PATCH v4 0/2] AHCI cleanup

Bernhard Beschow posted 2 patches 3 months, 3 weeks ago
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
[PATCH v4 0/2] AHCI cleanup
Posted by Bernhard Beschow 3 months, 3 weeks ago
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

-- 
2.47.1

Re: [PATCH v4 0/2] AHCI cleanup
Posted by Philippe Mathieu-Daudé 3 months, 3 weeks ago
On 12/12/24 12:09, Bernhard Beschow wrote:

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

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

and queued, thanks!