piix_pci: wrap memory update in a transaction
authorAvi Kivity <avi@redhat.com>
Mon, 1 Aug 2011 08:04:39 +0000 (11:04 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 4 Sep 2011 14:46:51 +0000 (17:46 +0300)
commit6304929b8730bdd39b55c15f6fef3bb6e5521c23
tree23049d3346a84b9abf77eca971ca5d3856597553
parent95db4cb4fddb1519392a4e344c6e52db2a6b5ec1
piix_pci: wrap memory update in a transaction

The code will remap all PAMs, even if just one is updated, resulting
in reduced performance.  Wrap in a transaction to detect that those
other PAMs have not changed.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/piix_pci.c