Re: [RFC PATCH 03/18] hw/pci: use PCIDevice gpio for device IRQ

2023-05-12 Thread Mark Cave-Ayland
On 12/05/2023 06:51, Michael S. Tsirkin wrote: On Thu, May 11, 2023 at 09:44:51PM +, Bernhard Beschow wrote: Am 11. Mai 2023 08:57:16 UTC schrieb Mark Cave-Ayland : Change pci_set_irq() to call qemu_set_irq() on the PCI device IRQ rather than calling PCI bus IRQ handler function directl

Re: [RFC PATCH 03/18] hw/pci: use PCIDevice gpio for device IRQ

2023-05-12 Thread Mark Cave-Ayland
On 11/05/2023 22:44, Bernhard Beschow wrote: Am 11. Mai 2023 08:57:16 UTC schrieb Mark Cave-Ayland : Change pci_set_irq() to call qemu_set_irq() on the PCI device IRQ rather than calling PCI bus IRQ handler function directly. In order to preserve the existing behaviour update pci_qdev_realize(

Re: [RFC PATCH 03/18] hw/pci: use PCIDevice gpio for device IRQ

2023-05-11 Thread Michael S. Tsirkin
On Thu, May 11, 2023 at 09:44:51PM +, Bernhard Beschow wrote: > > > Am 11. Mai 2023 08:57:16 UTC schrieb Mark Cave-Ayland > : > >Change pci_set_irq() to call qemu_set_irq() on the PCI device IRQ rather than > >calling PCI bus IRQ handler function directly. In order to preserve the > >existin

Re: [RFC PATCH 03/18] hw/pci: use PCIDevice gpio for device IRQ

2023-05-11 Thread Bernhard Beschow
Am 11. Mai 2023 08:57:16 UTC schrieb Mark Cave-Ayland : >Change pci_set_irq() to call qemu_set_irq() on the PCI device IRQ rather than >calling PCI bus IRQ handler function directly. In order to preserve the >existing behaviour update pci_qdev_realize() so that it automatically connects >the PC

[RFC PATCH 03/18] hw/pci: use PCIDevice gpio for device IRQ

2023-05-11 Thread Mark Cave-Ayland
Change pci_set_irq() to call qemu_set_irq() on the PCI device IRQ rather than calling PCI bus IRQ handler function directly. In order to preserve the existing behaviour update pci_qdev_realize() so that it automatically connects the PCI device IRQ to the PCI bus IRQ handler. Finally add a "QEMU in