Skip to content

OpenPIC refactoring and MSI support

Alexander Graf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19openpic: Remove unused codehw/openpic.c+0 -1633 replies
2/19mpic: Unify numbering schemehw/openpic.c hw/ppc/e500.c+43 -2484 replies
3/19openpic: update to proper memory apihw/openpic.c+48 -900 replies
4/19openpic: combine mpic and openpic src handlershw/openpic.c+5 -470 replies
5/19openpic: Convert subregions to memory apihw/openpic.c+61 -450 replies
6/19openpic: combine mpic and openpic irq raise functionshw/openpic.c hw/openpic.h+19 -180 replies
7/19openpic: merge mpic and openpic timer handlinghw/openpic.c+31 -1000 replies
8/19openpic: combine openpic and mpic reset functionshw/openpic.c+42 -610 replies
9/19openpic: unify memory api subregionshw/openpic.c+56 -520 replies
10/19openpic: remove unused type variablehw/openpic.c+2 -252 replies
11/19openpic: convert simple reg operations to builtin bitopshw/openpic.c+36 -310 replies
12/19openpic: rename openpic_t to OpenPICStatehw/openpic.c+34 -340 replies
13/19openpic: remove irq_outhw/openpic.c hw/openpic.h hw/ppc/e500.c +1 more+6 -100 replies
14/19openpic: convert to qdevhw/openpic.c hw/openpic.h hw/ppc/e500.c +1 more+180 -1556 replies
15/19openpic: make brr1 model specifichw/openpic.c+4 -10 replies
16/19openpic: add Shared MSI supporthw/openpic.c+130 -206 replies
17/19PPC: e500: Add MSI supporthw/ppc/e500.c+23 -00 replies
18/19PPC: e500: Declare pci bridge as bridgehw/ppce500_pci.c+6 -00 replies
19/19MSI-X: Fix endiannesshw/msix.c+2 -41 reply

Reviews trailers per patch

2 of 19 patches have a Reviewed-by or Acked-by.

PatchAndreas FärberHervé PoussineauMichael S. Tsirkin
1/19R-b A-b
2/19
3/19
4/19
5/19
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/19] OpenPIC refactoring and MSI support

The OpenPIC implemtation has been a sad piece of code in the QEMU tree for a long time now. It's ugly, doesn't stick to the coding style and misses out on a few of the recent infrastructure improvements.

This patch set is a first stab at moving the OpenPIC further towards maintainable code. It cleans up the OpenPIC/MPIC code duplication that was in there (MPIC is just an implementation of the OpenPIC spec, so the naming didn't make sense). It doesn't fully clean up everything yet.

While at it, this patch set also adds support for MSI(-X) to the MPC8544 variant of the OpenPIC. I have successfully tested MSI and MSI-X with ahci and virtio-net.

Please beware that savevm support is broken after this patch set. I have quite big doubts that saving a ppc vm works at all right now though, so let's just leave it broken for now and replace it with a new version that is going to be savevm based later.

Alex

Alexander Graf (19):
openpic: Remove unused code
mpic: Unify numbering scheme
openpic: update to proper memory api
openpic: combine mpic and openpic src handlers
openpic: Convert subregions to memory api
openpic: combine mpic and openpic irq raise functions
openpic: merge mpic and openpic timer handling
openpic: combine openpic and mpic reset functions
openpic: unify memory api subregions
openpic: remove unused type variable
openpic: convert simple reg operations to builtin bitops
openpic: rename openpic_t to OpenPICState
openpic: remove irq_out
openpic: convert to qdev
openpic: make brr1 model specific
openpic: add Shared MSI support
PPC: e500: Add MSI support
PPC: e500: Declare pci bridge as bridge
MSI-X: Fix endianness

 hw/msix.c         |    6 +-
 hw/openpic.c      | 1369 ++++++++++++++++++-----------------------------------
 hw/openpic.h      |    7 +-
 hw/ppc/e500.c     |   51 ++-
 hw/ppc_newworld.c |   25 +-
 hw/ppce500_pci.c  |    6 +
 6 files changed, 544 insertions(+), 920 deletions(-)