]> git.proxmox.com Git - mirror_qemu.git/commit
ide: migrate initial request state via IDEBus
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Feb 2015 16:17:59 +0000 (11:17 -0500)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2015 13:02:22 +0000 (14:02 +0100)
commitd12b9ff2a4e21587e5b180008c88a0e6e1ec8ac5
tree18539547fcba9647d5bb2f9991eaf848f2b77b38
parentdc5d0af49a90571813b9cbcea90c0bbbea0d4a22
ide: migrate initial request state via IDEBus

This only breaks backwards migration compatibility if the bus is in
an error state.  It is in principle possible to avoid this by making
two subsections (one for version 1, and one for version 2, but with
the same name) with different "_needed" callbacks.  The v1 callback would
return true if error_status != 0 and the bus is PATA; the v2 callback
would return true if error_status != 0 and the bus is AHCI.

Forward migration keeps working.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1424708286-16483-11-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c