ahci: prohibit "restarting" the FIS or CLB engines
commitd590474922d37372c56075adb229c86d3aeae967
authorJohn Snow <jsnow@redhat.com>
Wed, 10 Feb 2016 18:29:40 +0000 (10 13:29 -0500)
committerJohn Snow <jsnow@redhat.com>
Wed, 10 Feb 2016 18:29:40 +0000 (10 13:29 -0500)
tree5744004235a3818fe0298e36989309d783269bad
parentf8a6c5f3188b32db5c63e0759d390cb341888497
ahci: prohibit "restarting" the FIS or CLB engines

If the FIS or DMA engines are already started, do not allow them to be
"restarted." As a side-effect of this change, the migration post-load
routine must be modified to cope. If the engines are listed as "on"
in the migrated registers, they must be cleared to allow the startup
routine to see the transition from "off" to "on".

As a second side-effect, the extra argument to ahci_cond_engine_start
is removed in favor of consistent behavior.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1454103689-13042-5-git-send-email-jsnow@redhat.com
hw/ide/ahci.c