ahci: Remove unused AHCIDevice fields
'dma_status' and 'dma_cb' are written to, but never read.Remove these fields in preparation for AHCI migration bits.
Signed-off-by: Jason Baron <jbaron@redhat.com>Reviewed-by: Juan Quintela <quintela@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ahci: Change data types in preparation for migration
The size of an int depends on the host, so in order to be able tomigrate these fields, make them either int32_t or bool, depending on theuse.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ahci: Add migration support
Jason tested these patches by migrating Windows 7 and Fedora 17 guests(while under I/O) on both piix with ahci attached and on q35 (which hasa built-in AHCI controller).
Signed-off-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Jason Baron <jbaron@redhat.com>...
block: Add special error code for wrong format
The block drivers need a special error code for "wrong format".From the available error codes EMEDIUMTYPE fits best.It is not available on all platforms, so a definition inqemu-common.h and a specific error report are needed....
block: Use error code EMEDIUMTYPE for wrong format in some block drivers
This improves error reports for bochs, cow, qcow, qcow2, qed and vmdkwhen a file with the wrong format is selected.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Eric Blake <eblake@redhat.com>...
block/vdi: Improve debug output for signature
The signature is a 32 bit value and needs up to 8 hex digits for printing.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vdi: Improved return values from vdi_open
vdi_open returned -1 in case of any error, but it should return anerror code (negative value of errno or -EMEDIUMTYPE).
block/vdi: Check for bad signature
vdi_open did not check for a bad signature.This check was only in vdi_probe.
mirror: do nothing on zero-sized disk
On a zero-sized disk we need to break out of the job successfullybefore bdrv_dirty_iter_init is called, otherwise you will get anassertion failure with the next patch.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
hbitmap: add assertion on hbitmap_iter_init
hbitmap_iter_init causes an out-of-bounds access when the "first" argument is or greater than or equal to the size of the bitmap.Forbid this with an assertion, and remove the failing testcase.
Reported-by: Kevin Wolf <kwolf@redhat.com>...
View all revisions | View revisions
Also available in: Atom