]> git.proxmox.com Git - mirror_qemu.git/commitdiff
intel-hda: Fix reset of MSI function
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 11 May 2012 14:42:35 +0000 (11:42 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Jun 2012 14:18:59 +0000 (17:18 +0300)
Call msi_reset on device reset as still required by the core.

CC: Gerd Hoffmann <kraxel@redhat.com>
CC: qemu-stable@nongnu.org
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/intel-hda.c

index bb11af286a81135d3c0384f5072411fa6dacd5b5..e38861e5de1f11f2c3f003d0ebaea0cb94fc3528 100644 (file)
@@ -1107,6 +1107,9 @@ 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);