Don't abort on memory allocation error
It is better to fail migration in case of failure toallocate new cache item
Signed-off-by: Orit Wasserman <owasserm@redhat.com>Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>Signed-off-by: Juan Quintela <quintela@redhat.com>
Don't abort on out of memory when creating page cache
XBZRLE cache size should not be larger than guest memory size
Add check for cache size smaller than page size
Signed-off-by: Orit Wasserman <owasserm@redhat.com>Reviewed-by: Juan Quintela <quintela@redhat.com>Signed-off-by: Juan Quintela <quintela@redhat.com>
migration:fix free XBZRLE decoded_buf wrong
When qemu do live migration with xbzrle, qemu malloc decoded_bufat destination end but free it at source end. It will crash qemuby double free error in some scenarios. Splitting the XBZRLE structurefor clear logic distinguishing src/dst side....
Set xbzrle buffers to NULL after freeing them to avoid double free errors
Signed-off-by: Orit Wasserman <owasserm@redhat.com>Reviewed-by: Juan Quintela <quintela@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Juan Quintela <quintela@redhat.com>
exec: fix ram_list dirty map optimization
The ae2810c4bb3b383176e8e1b33931b16c01483aab patch introducedoptimization for ram_list.dirty_memory update. However it can onlywork correctly if hpratio is 1 as the @bitmap parameter stores 1 bitsper system page size (may vary, 4K or 64K on PPC64) and...
vmstate: Make VMSTATE_STRUCT_POINTER take type, not ptr-to-type
The VMSTATE_STRUCT_POINTER macros are a bit odd in that theymust be passed an argument "FooType *" rather than just takingthe FooType. They're only used in one place, so it's easy totidy this up. This also lets us use the macro to replace the...
cris: Remove the CRIS PIC glue
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
linux-user: Fix trampoline code for CRIS
__put_user can write bytes, words (2 bytes) or longwords (4 bytes).Here obviously words should have been written, but bytes were written,so values like 0x9c5f were truncated to 0x5f.
Fix this by changing retcode from uint8_t to to uint16_t in...
View all revisions | View revisions
Also available in: Atom