memory: Use transaction_begin/commit also for single-step operations
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 23 Aug 2012 11:02:30 +0000 (13:02 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Sep 2012 21:15:29 +0000 (18:15 -0300)
commit59023ef41179f61bfc1e2500c406ad28d046b09d
treedcce1f4eae5ee19dab446f88aeda67b64b65e8eb
parentd410515e035ccb7433c6a3a8157742f6f679f57f
memory: Use transaction_begin/commit also for single-step operations

Wrap also simple operations consisting only of a single step with
memory_region_transaction_begin/commit. This allows to perform
additional steps like coalesced MMIO flushing from a single place.

This requires dropping some micro-optimizations: The skipping of
topology updates after updating disabled or unregistered regions.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
memory.c