diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2014-02-13 19:44:45 +0000 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2014-02-25 14:30:28 +0100 |
commit | 6d3cb1f970ee85361618f7ff02869180394e012d (patch) | |
tree | ba96f77f01344e8efc15eea039358fc4f3bbe719 /include/migration/page_cache.h | |
parent | 24a370ef2351dc596a7e47508b952ddfba79ef94 (diff) | |
download | qemu-6d3cb1f970ee85361618f7ff02869180394e012d.zip |
Fix two XBZRLE corruption issues
Push zero'd pages into the XBZRLE cache
A page that was cached by XBZRLE, zero'd and then XBZRLE'd again
was being compared against a stale cache value
Don't use 'qemu_put_buffer_async' to put pages from the XBZRLE cache
Since the cache might change before the data hits the wire
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration/page_cache.h')
-rw-r--r-- | include/migration/page_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/migration/page_cache.h b/include/migration/page_cache.h index d156f0d398..2d5ce2dd7a 100644 --- a/include/migration/page_cache.h +++ b/include/migration/page_cache.h @@ -66,7 +66,7 @@ uint8_t *get_cached_data(const PageCache *cache, uint64_t addr); * @addr: page address * @pdata: pointer to the page */ -int cache_insert(PageCache *cache, uint64_t addr, uint8_t *pdata); +int cache_insert(PageCache *cache, uint64_t addr, const uint8_t *pdata); /** * cache_resize: resize the page cache. In case of size reduction the extra |