commit | 6977dfe6af975d72a8140dbc91effe8b8f2a58f8 | [log] [tgz] |
---|---|---|
author | Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp> | Wed Aug 18 15:41:49 2010 +0900 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Sun Aug 22 16:19:00 2010 -0500 |
tree | 1705a04720bb2f8ffa700313babea13443a59ea6 | |
parent | 9742bf26b1652eda6554bc2ebb11c515b89ec976 [diff] |
exec: remove code duplication in qemu_ram_alloc() and qemu_ram_alloc_from_ptr() Since most of the code in qemu_ram_alloc() and qemu_ram_alloc_from_ptr() are duplicated, let qemu_ram_alloc_from_ptr() to switch by checking void *host, and change qemu_ram_alloc() to a wrapper. Signed-off-by: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>