summary refs log tree commit diff stats
path: root/hw/pci-bridge/pci_bridge_dev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-01-28 11:18:58 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2015-02-16 17:24:53 +0100
commit3a8f2a9ce51036ab2d25bcc31114b5cbb72ab44b (patch)
treef1c9ab87948f563285d67080b4c64d49cb968804 /hw/pci-bridge/pci_bridge_dev.c
parentac95190ea92f7625bb0065c2864321607b95c26b (diff)
downloadfocaccia-qemu-3a8f2a9ce51036ab2d25bcc31114b5cbb72ab44b.tar.gz
focaccia-qemu-3a8f2a9ce51036ab2d25bcc31114b5cbb72ab44b.zip
pcie: remove mmconfig memory leak and wrap mmconfig update with transaction
This memory leak was introduced inadvertently by omitting object_unparent.
A better fix is to use the new memory_region_set_size instead of destroying
and recreating the MMIO region on the fly.

Also, ensure that unmapping and remapping the region is done atomically.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci-bridge/pci_bridge_dev.c')
0 files changed, 0 insertions, 0 deletions