]> git.proxmox.com Git - qemu.git/commit - memory.c
memory: optimize empty transactions due to mutators
authorAvi Kivity <avi@redhat.com>
Wed, 14 Sep 2011 09:16:20 +0000 (12:16 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Dec 2011 10:04:09 +0000 (12:04 +0200)
commite87c099f1c9e461dcaa093b1b40b14e7e899e70f
tree24486d10a71baa1baec5c50c3838ab7f29868867
parent4703359e0eeb27c382fdf2951b842cf8bde26672
memory: optimize empty transactions due to mutators

The mutating memory APIs can easily cause empty transactions,
where the mutators don't actually change anything, or perhaps
only modify disabled regions.  Detect these conditions and
avoid regenerating the memory topology.

Signed-off-by: Avi Kivity <avi@redhat.com>
memory.c