]> git.proxmox.com Git - qemu.git/commit
pci: avoid destroying bridge address space windows in a transaction
authorAvi Kivity <avi@redhat.com>
Thu, 25 Oct 2012 10:37:57 +0000 (12:37 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Oct 2012 16:18:46 +0000 (11:18 -0500)
commitb308c82cbda44e138ef990af64d44a5613c16092
tree1b57ee77bf7ed2819efdde202808b55c05b12d93
parent6b0e6468e33883c1739a7474fe6baca170eec9aa
pci: avoid destroying bridge address space windows in a transaction

Calling memory_region_destroy() in a transaction is illegal (and aborts),
as until the transaction is committed, the region remains live.

Fix by moving destruction until after the transaction commits.  This requires
having an extra set of regions, so the new and old regions can coexist.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci_bridge.c
hw/pci_internals.h