qemu/hw/ide
John Snow c27c73aaf9 ahci: Recompute cur_cmd on migrate post load
When the AHCI HBA device is migrated, all of the information that
led to the request being created is stored in the AHCIDevice
structures, except for pointers into guest data where return
information needs to be stored.

The "cur_cmd" field is usually responsible for this.

To rebuild the cur_cmd pointer post-migration, we can utilize
the busy_slot index to figure out where the command header
we are still processing is.

This allows a machine in a halted state from rerror=stop or
werror=stop to be migrated and resume operations without issue.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1424708286-16483-17-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-03-10 14:02:23 +01:00
..
ahci.c ahci: Recompute cur_cmd on migrate post load 2015-03-10 14:02:23 +01:00
ahci.h ahci: replace SATA FIS type magic numbers with constants 2014-12-10 10:31:12 +01:00
atapi.c ide: commonize io_buffer_index initialization 2015-03-10 14:02:22 +01:00
cmd646.c ide: introduce ide_register_restart_cb 2015-03-10 14:02:22 +01:00
core.c ide: make more functions static 2015-03-10 14:02:22 +01:00
ich.c hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00
internal.h ahci: Migrate IDEStatus 2015-03-10 14:02:23 +01:00
isa.c ide: support PIO restart for the ISA controller 2015-03-10 14:02:23 +01:00
macio.c ide: replace set_unit callback with more IDEBus state 2015-03-10 14:02:22 +01:00
Makefile.objs hw: make all of hw/ide/ configurable via default-configs/ 2013-04-08 18:13:12 +02:00
microdrive.c hmp: Remove "info pcmcia" 2014-10-24 12:19:11 +01:00
mmio.c hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00
pci.c ide: place initial state of the current request to IDEBus 2015-03-10 14:02:22 +01:00
pci.h ide: place initial state of the current request to IDEBus 2015-03-10 14:02:22 +01:00
piix.c ide: introduce ide_register_restart_cb 2015-03-10 14:02:22 +01:00
qdev.c BlockConf: Call backend functions to detect geometry and blocksizes 2015-03-10 14:02:22 +01:00
via.c ide: introduce ide_register_restart_cb 2015-03-10 14:02:22 +01:00