msi: Invoke msi/msix_reset from PCI core
commitcbd2d4342b3d42ab33baa99f5b7a23491b5692f2
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 15 May 2012 23:09:56 +0000 (15 20:09 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Jun 2012 14:19:00 +0000 (7 17:19 +0300)
tree34edef8be5a550587e9bae0c27d835d35bad1919
parent520064c8b15504fb75babce7be6b5800b54ec490
msi: Invoke msi/msix_reset from PCI core

There is no point in pushing this burden to the devices, they tend to
forget to call them (like intel-hda, ahci, xhci did). Instead, reset
functions are now called from pci_device_reset. They do nothing if
MSI/MSI-X is not in use.

CC: Alexander Graf <agraf@suse.de>
CC: Gerd Hoffmann <kraxel@redhat.com>
CC: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/ide/ich.c
hw/intel-hda.c
hw/ioh3420.c
hw/ivshmem.c
hw/pci.c
hw/pci_bridge.c
hw/pci_bridge_dev.c
hw/virtio-pci.c
hw/xio3130_downstream.c
hw/xio3130_upstream.c