summary refs log tree commit diff stats
path: root/hw/timer/stm32f2xx_timer.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2015-02-23 11:18:05 -0500
committerKevin Wolf <kwolf@redhat.com>2015-03-10 14:02:23 +0100
commitc27c73aaf924655b2cc2e74384a639805acededb (patch)
tree65076713068cc1c0f9f3e1bef76caa8cbc821a8a /hw/timer/stm32f2xx_timer.c
parente8ef87433ee005d304ba19c56488474432eb0c53 (diff)
downloadfocaccia-qemu-c27c73aaf924655b2cc2e74384a639805acededb.tar.gz
focaccia-qemu-c27c73aaf924655b2cc2e74384a639805acededb.zip
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>
Diffstat (limited to 'hw/timer/stm32f2xx_timer.c')
0 files changed, 0 insertions, 0 deletions