Re: [Qemu-devel] [RFC PATCH] pci: deassert intx when pci device unrealize

2017-04-24 Thread Herongguang (Stephen)
On 2017/4/25 7:45, Michael S. Tsirkin wrote: On Mon, Apr 24, 2017 at 09:12:29PM +0800, Herongguang (Stephen) wrote: If a pci device is not reset by VM (by writing into config space) and unplugged by VM, after that when VM reboots, qemu may assert: pcibus_reset: Assertion `bus->irq_count[i] ==

Re: [Qemu-devel] [RFC PATCH] pci: deassert intx when pci device unrealize

2017-04-24 Thread Michael S. Tsirkin
On Mon, Apr 24, 2017 at 09:12:29PM +0800, Herongguang (Stephen) wrote: > If a pci device is not reset by VM (by writing into config space) > and unplugged by VM, after that when VM reboots, qemu may assert: > pcibus_reset: Assertion `bus->irq_count[i] == 0' failed > > Signed-off-by: herongguang

[Qemu-devel] [RFC PATCH] pci: deassert intx when pci device unrealize

2017-04-24 Thread Herongguang (Stephen)
If a pci device is not reset by VM (by writing into config space) and unplugged by VM, after that when VM reboots, qemu may assert: pcibus_reset: Assertion `bus->irq_count[i] == 0' failed Signed-off-by: herongguang --- Is there need to call pci_do_device_reset()?