]> git.proxmox.com Git - qemu.git/commit
page_cache: dup memory on insert
authorPeter Lieven <pl@dlhnet.de>
Mon, 25 Feb 2013 17:12:04 +0000 (19:12 +0200)
committerJuan Quintela <quintela@redhat.com>
Mon, 11 Mar 2013 12:32:03 +0000 (13:32 +0100)
commitee0b44aa9d9450e873a761ca2030b2fa3ec52eb0
tree1f8f203f961610e5b5a1d23e8985df071e847d1b
parent32a1c08b60a8ac0e63b54a5793a26b5e32b36618
page_cache: dup memory on insert

The page cache frees all data on finish, on resize and
if there is collision on insert. So it should be the caches
responsibility to dup the data that is stored in the cache.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Juan Quintela <quintela@redhat.com>
arch_init.c
include/migration/page_cache.h
page_cache.c