Skip to content

malta: Fix PCI IRQ levels to be preserved during migration, cleanup

Bernhard Beschow qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 5 repliesIn review
  2. v37 patches 11 repliesSuperseded
  3. v25 patches 21 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches11 repliesSuperseded

Changes in v4 from the cover letter

As suggested by BALATON Zoltan, gt64120_register() is now resolved by
sysbus_create_simple() etc. This also fixes the nitpick pointed out by Philippe.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7hw/mips/gt64xxx_pci: Fix PCI IRQ levels to be preserved during migrationhw/mips/gt64xxx_pci.c+2 -51 reply
2/7malta: Move PCI interrupt handling from gt64xxx_pci to piix4hw/isa/piix4.c hw/mips/gt64xxx_pci.c hw/mips/malta.c +1 more+62 -610 replies
3/7hw/isa/piix4: Resolve redundant i8259[] attributehw/isa/piix4.c+1 -60 replies
4/7hw/isa/piix4: Pass PIIX4State as opaque parameter for piix4_set_irq()hw/isa/piix4.c+3 -30 replies
5/7hw/isa/piix4: Resolve global instance variablehw/isa/piix4.c include/hw/southbridge/piix.h+3 -90 replies
6/7hw/isa/piix4: Replace some magic IRQ constantshw/isa/piix4.c+3 -30 replies
7/7hw/mips/gt64xxx_pci: Resolve gt64120_register()hw/mips/gt64xxx_pci.c hw/mips/malta.c include/hw/mips/mips.h+6 -211 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéMichael S. TsirkinPeter MaydellBALATON Zoltan
1/7R-b
2/7R-b
3/7R-b A-b
4/7R-b A-b R-b
5/7R-b A-b
6/7R-b A-b
7/7R-b R-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 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/7] malta: Fix PCI IRQ levels to be preserved during migration, cleanup

Tested with [1]:

  qemu-system-mipsel -M malta -kernel vmlinux-3.2.0-4-4kc-malta -hda \
  debian_wheezy_mipsel_standard.qcow2 -append "root=/dev/sda1 console=tty0"

It was possible to log in as root and poweroff the machine.

[1] https://people.debian.org/~aurel32/qemu/mips/

v4:
As suggested by BALATON Zoltan, gt64120_register() is now resolved by
sysbus_create_simple() etc. This also fixes the nitpick pointed out by Philippe.

v3:
The migration bug now gets fixed in gt64xxx_pci before any cleanup. As
suggested by PMM the patch is based on commit e735b55a8c11.
The code movement patch now moves the already fixed code. I might be a bit
too conservative here by removing Philippe's Reviewed-By tag.
As suggested by BALATON Zoltan, the redundant i8259[] attribute is now
resolved immediately after the code movement. As a side effect, it also removes moved code which doesn't adhere to the coding style (local loop variable).
To address BALATON Zoltan's comment and to reduce the number of required
Reviewed-By's, only piix4_set_irq() is modified to expect own DeviceState paremeter. Up to v2, all remaining set_irq() functions were changed this way.
The patch resolving piix4's singleton variable got split into two patches:
One which resolves the singleton variable and one which replaces magic constants. The split patches should be more comprehensible.
Suggested by BALATON Zoltan, I took a chance to resolve gt64120_register(),
a method akin to the legacy init functions we're trying to get rid of.

v2:
isa/piix4: Fix PCI IRQ levels to be preserved in VMState isa/piix4: Resolve redundant i8259[] attribute

Bernhard Beschow (7):
hw/mips/gt64xxx_pci: Fix PCI IRQ levels to be preserved during
migration
malta: Move PCI interrupt handling from gt64xxx_pci to piix4 hw/isa/piix4: Resolve redundant i8259[] attribute hw/isa/piix4: Pass PIIX4State as opaque parameter for piix4_set_irq() hw/isa/piix4: Resolve global instance variable hw/isa/piix4: Replace some magic IRQ constants hw/mips/gt64xxx_pci: Resolve gt64120_register()

 hw/isa/piix4.c                | 54 +++++++++++++++++++++--
 hw/mips/gt64xxx_pci.c         | 80 +++--------------------------------
 hw/mips/malta.c               |  7 +--
 include/hw/mips/mips.h        |  3 --
 include/hw/southbridge/piix.h |  2 -
 5 files changed, 59 insertions(+), 87 deletions(-)
Signature · 1 line
2.35.1