From: Jan Kiszka Date: Fri, 11 May 2012 14:42:35 +0000 (-0300) Subject: intel-hda: Fix reset of MSI function X-Git-Tag: v1.2.0-rc0~270^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e729e3b521d9fcd87fc2e40b6322e684f58bb2e;p=thirdparty%2Fqemu.git intel-hda: Fix reset of MSI function Call msi_reset on device reset as still required by the core. CC: Gerd Hoffmann CC: qemu-stable@nongnu.org Signed-off-by: Jan Kiszka Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/intel-hda.c b/hw/intel-hda.c index bb11af286a8..e38861e5de1 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);