[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 1/7] hw/mips/gt64xxx_pci: Fix PCI IRQ levels to be preserv
|
From: |
Peter Maydell |
|
Subject: |
Re: [PATCH v3 1/7] hw/mips/gt64xxx_pci: Fix PCI IRQ levels to be preserved during migration |
|
Date: |
Thu, 17 Feb 2022 11:57:52 +0000 |
On Wed, 16 Feb 2022 at 22:45, Bernhard Beschow <shentey@gmail.com> wrote:
>
> Based on commit e735b55a8c11dd455e31ccd4420e6c9485191d0c:
>
> piix_pci: eliminate PIIX3State::pci_irq_levels
>
> PIIX3State::pci_irq_levels are redundant which is already tracked by
> PCIBus layer. So eliminate them.
>
> The IRQ levels in the PCIBus layer are already preserved during
> migration. By reusing them and rather than having a redundant implementation
> the bug is avoided in the first place.
>
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Bernhard Beschow <shentey@gmail.com>
> ---
> hw/mips/gt64xxx_pci.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
Ah, this is definitely the best place in the series to make this
fix. I didn't realize we had access to the device pointer here, I
was just looking at the fact that the opaque was the irq array
rather than the device pointer and didn't realize there was a
global floating around with it.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH v3 0/7] malta: Fix PCI IRQ levels to be preserved during migration, cleanup, Bernhard Beschow, 2022/02/16
- [PATCH v3 1/7] hw/mips/gt64xxx_pci: Fix PCI IRQ levels to be preserved during migration, Bernhard Beschow, 2022/02/16
- Re: [PATCH v3 1/7] hw/mips/gt64xxx_pci: Fix PCI IRQ levels to be preserved during migration,
Peter Maydell <=
- [PATCH v3 3/7] hw/isa/piix4: Resolve redundant i8259[] attribute, Bernhard Beschow, 2022/02/16
- [PATCH v3 2/7] malta: Move PCI interrupt handling from gt64xxx_pci to piix4, Bernhard Beschow, 2022/02/16
- [PATCH v3 4/7] hw/isa/piix4: Pass PIIX4State as opaque parameter for piix4_set_irq(), Bernhard Beschow, 2022/02/16
- [PATCH v3 6/7] hw/isa/piix4: Replace some magic IRQ constants, Bernhard Beschow, 2022/02/16