]> git.proxmox.com Git - mirror_qemu.git/commit
spapr/irq: Drop spapr_irq_msi_reset()
authorGreg Kurz <groug@kaod.org>
Fri, 26 Jul 2019 14:44:49 +0000 (16:44 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Aug 2019 07:17:39 +0000 (17:17 +1000)
commite1588bcdd2ceca232021a626aa3b8e835ea49c52
tree026d527819c31daf6acfca20c8ccaab62fc60808
parentea52074d3a1c5fbe70f3014dc1b1f2e7d5ced5de
spapr/irq: Drop spapr_irq_msi_reset()

PHBs already take care of clearing the MSIs from the bitmap during reset
or unplug. No need to do this globally from the machine code. Rather add
an assert to ensure that PHBs have acted as expected.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <156415228966.1064338.190189424190233355.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
[dwg: Fix crash in qtest case where spapr->irq_map can be NULL at the
 new assert()]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_irq.c
include/hw/ppc/spapr_irq.h