summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-05-11 11:42:35 -0300
committerMichael Roth <mdroth@linux.vnet.ibm.com>2012-06-25 08:55:06 -0500
commit0ec39075710ae15acc2a5825cd21e0c229fa04af (patch)
tree09a24a64fc41a243e4d4c358aca141e6bf56928c
parentahci: Fix reset of MSI function (diff)
downloadqemu-kvm-0ec39075710ae15acc2a5825cd21e0c229fa04af.tar.gz
qemu-kvm-0ec39075710ae15acc2a5825cd21e0c229fa04af.tar.bz2
qemu-kvm-0ec39075710ae15acc2a5825cd21e0c229fa04af.zip
intel-hda: Fix reset of MSI function
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> (cherry picked from commit 8e729e3b521d9fcd87fc2e40b6322e684f58bb2e) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r--hw/intel-hda.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/intel-hda.c b/hw/intel-hda.c
index bb11af286..e38861e5d 100644
--- a/hw/intel-hda.c
+++ b/hw/intel-hda.c
@@ -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);