summary refs log tree commit diff stats
path: root/hw/ide/pci.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2014-12-09 18:15:08 +0000
committerKevin Wolf <kwolf@redhat.com>2015-02-06 17:24:20 +0100
commit819fa276311ce328a8e38ad9306c1093961b3f4b (patch)
treec2c77e0df0838a77f2b29f850e2b6956711246da /hw/ide/pci.c
parentcebbae86b4f7ee3d3dd9df906b97d269e70d9cc7 (diff)
downloadfocaccia-qemu-819fa276311ce328a8e38ad9306c1093961b3f4b.tar.gz
focaccia-qemu-819fa276311ce328a8e38ad9306c1093961b3f4b.zip
Restore atapi_dma flag across migration
If a migration happens just after the guest has kicked
off an ATAPI command and kicked off DMA, we lose the atapi_dma
flag, and the destination tries to complete the command as PIO
rather than DMA.  This upsets Linux; modern libata based kernels
stumble and recover OK, older kernels end up passing bad data
to userspace.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/pci.c')
0 files changed, 0 insertions, 0 deletions