Re: [RFC PATCH] PCI: Disable MSI/MSI-X only if device is shutdown

Paolo Bonzini
2015-03-13T13:03:19Z

On 13/03/2015 00:21, Fam Zheng wrote:
>> I think the bug here is also that virtio-pci
>> is not defining a .shutdown callback. It should define one and call
>> free_irq (for INTX) and pci_disable_msix.
>
> It's not enough. The device has to know we disabled msix, otherwise it will
> send us IRQ, which is wrong.

You can use pci_intx to disable INTX too. So I think this is a
virtio-pci bug.

Paolo