MSI is still terminated at unrealize time. Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- hw/audio/intel-hda.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c index 1016af0..4f2dcf3 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -1148,6 +1148,13 @@ static void intel_hda_exit(PCIDevice *pci) IntelHDAState *d = DO_UPCAST(IntelHDAState, pci, pci); msi_uninit(&d->pci); +} + +static void intel_hda_instance_finalize(Object *obj) +{ + PCIDevice *pci = PCI_DEVICE(obj); + IntelHDAState *d = DO_UPCAST(IntelHDAState, pci, pci); + memory_region_destroy(&d->mmio); } @@ -1273,6 +1280,7 @@ static const TypeInfo intel_hda_info_ich6 = { .parent = TYPE_PCI_DEVICE, .instance_size = sizeof(IntelHDAState), .class_init = intel_hda_class_init_ich6, + .instance_finalize = intel_hda_instance_finalize, }; static const TypeInfo intel_hda_info_ich9 = { -- 1.8.1.4