memory: add early bail out from cpu_physical_memory_set_dirty_range
commit8bafcb21643a39a5b29109f8bd5ee5a6f0f6850b
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Jan 2016 14:13:47 +0000 (25 15:13 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Feb 2016 14:45:26 +0000 (9 15:45 +0100)
tree9e2b35405d12137e18f8ad65d95889fe9fb2d651
parentac1be2ae6b2995b99430c48329eb971b0281acf1
memory: add early bail out from cpu_physical_memory_set_dirty_range

This condition is true in the common case, so we can cut out the body of
the function.  In addition, this makes it easier for the compiler to do
at least partial inlining, even if it decides that fully inlining the
function is unreasonable.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/exec/ram_addr.h