]> Git Repo - qemu.git/commit
pci: avoid destroying bridge address space windows in a transaction
authorAvi Kivity <[email protected]>
Thu, 25 Oct 2012 10:37:57 +0000 (12:37 +0200)
committerAnthony Liguori <[email protected]>
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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/pci_bridge.c
hw/pci_internals.h
This page took 0.026057 seconds and 4 git commands to generate.