]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: drop find_ram_block()
authorGonglei <arei.gonglei@huawei.com>
Tue, 10 May 2016 02:04:59 +0000 (10:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 May 2016 14:53:44 +0000 (16:53 +0200)
commitfa53a0e53efdc7002497ea4a76aacf6cceb170ef
treeea02755b801884f1043e0eaa4127205a2bcee370
parente92a2d9cb3d8f589c9fe5d2eacc83d8dddea0e16
memory: drop find_ram_block()

On the one hand, we have already qemu_get_ram_block() whose function
is similar. On the other hand, we can directly use mr->ram_block but
searching RAMblock by ram_addr which is a kind of waste.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-Id: <1462845901-89716-2-git-send-email-arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c
include/exec/cpu-common.h
include/exec/ram_addr.h
memory.c
migration/ram.c
migration/savevm.c