mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
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>
This commit is contained in:
parent
520064c8b1
commit
cbd2d4342b
10 changed files with 11 additions and 20 deletions
|
@ -88,7 +88,6 @@ static void pci_ich9_reset(DeviceState *dev)
|
|||
{
|
||||
struct AHCIPCIState *d = DO_UPCAST(struct AHCIPCIState, card.qdev, dev);
|
||||
|
||||
msi_reset(&d->card);
|
||||
ahci_reset(&d->ahci);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue