mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-03 17:11:01 +00:00
migration: Remove masking for compression
Remove the mask in the call to ram_release_pages(). Nothing else does it, and if the offset has that bits set, we have a lot of trouble. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
0189c72291
commit
20d549cb0b
@ -1340,7 +1340,7 @@ static bool do_compress_ram_page(QEMUFile *f, z_stream *stream, RAMBlock *block,
|
||||
ram_addr_t offset, uint8_t *source_buf)
|
||||
{
|
||||
RAMState *rs = ram_state;
|
||||
uint8_t *p = block->host + (offset & TARGET_PAGE_MASK);
|
||||
uint8_t *p = block->host + offset;
|
||||
bool zero_page = false;
|
||||
int ret;
|
||||
|
||||
@ -1365,7 +1365,7 @@ static bool do_compress_ram_page(QEMUFile *f, z_stream *stream, RAMBlock *block,
|
||||
}
|
||||
|
||||
exit:
|
||||
ram_release_page(block->idstr, offset & TARGET_PAGE_MASK);
|
||||
ram_release_page(block->idstr, offset);
|
||||
return zero_page;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user