piix_pci: wrap memory update in a transaction
commitc2c1b0f84b3dd56f5a8e192b97881e62e82e3b14
authorAvi Kivity <avi@redhat.com>
Mon, 1 Aug 2011 08:04:39 +0000 (1 11:04 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 25 Aug 2011 07:56:33 +0000 (25 10:56 +0300)
tree0ae01f586be25041eb7b3d82d832339cb895747f
parentcf9182e2290732be9f8d4f73ba3d6f3484380450
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