memory: Don't call memory_region_update_coalesced_range if nothing changed
commitab5b3db5d711b290d63e954dc64647dd51cef962
authorFam Zheng <famz@redhat.com>
Fri, 13 Jun 2014 06:34:41 +0000 (13 14:34 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 13:32:50 +0000 (18 15:32 +0200)
treeb250b0591542b2dbdadbad252287e402b6956dd7
parentfeca4ac18b7e0df7cdc6e791a7e98cc303feb890
memory: Don't call memory_region_update_coalesced_range if nothing changed

With huge number of PCI devices in the system (for example, 200
virtio-blk-pci), this unconditional call can slow down emulation of
irrelevant PCI operations drastically, such as a BAR update on a device
that has no coalescing region. So avoid it.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c