mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -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
|
@ -1107,9 +1107,6 @@ static void intel_hda_reset(DeviceState *dev)
|
|||
DeviceState *qdev;
|
||||
HDACodecDevice *cdev;
|
||||
|
||||
if (d->msi) {
|
||||
msi_reset(&d->pci);
|
||||
}
|
||||
intel_hda_regs_reset(d);
|
||||
d->wall_base_ns = qemu_get_clock_ns(vm_clock);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue