pci_bridge: manually destroy memory regions within PCIBridgeWindows
commit9f6b2f1c6497adcce4dec9b3bd1f1e78877a03dd
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Aug 2014 15:50:05 +0000 (20 17:50 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 24 Aug 2014 22:16:06 +0000 (25 00:16 +0200)
tree157eeeecaf5a89ad64d13024819fa65dfbcba1c1
parent288d3322022d6ad646407f3ca6f1a6a746565b9a
pci_bridge: manually destroy memory regions within PCIBridgeWindows

The regions are destroyed and recreated on configuration space accesses.
We need to destroy them before the containing PCIBridgeWindows object
is freed.

Reported-by: Gonglei <arei.gonglei@huawei.com>
Reported-by: Knut Omang <knut.omang@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci_bridge.c