History | View | Annotate | Download (5 kB)
remove some double-includes
Some source files #include the same header more thanonce for no good reason. Remove second #includes insuch cases.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Fix page_cache leak in cache_resize
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Juan Quintela <quintela@redhat.com>
Fix cache_resize to keep old entry age
Instead of using cache_insert do the update itself
page_cache: fix memory leak
XBZRLE encoded migration introduced a MRU page cachemeachnism. Unfortunately, cached items where never freed incase of a collision in the page cache on cache_insert().
This lead to out of memory conditions during XBZRLE migration...
page_cache: dup memory on insert
The page cache frees all data on finish, on resize andif there is collision on insert. So it should be the cachesresponsibility 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>...
migration: move include files to include/migration/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Add cache handling functions
Add MRU page cache mechanism.The page are accessed by their address.
Signed-off-by: Benoit Hudzia <benoit.hudzia@sap.com>Signed-off-by: Petter Svard <petters@cs.umu.se>Signed-off-by: Aidan Shribman <aidan.shribman@sap.com>...