]> git.proxmox.com Git - mirror_qemu.git/commit
ahci: explicitly reject bad engine states on post_load
authorJohn Snow <jsnow@redhat.com>
Wed, 10 Feb 2016 18:29:40 +0000 (13:29 -0500)
committerJohn Snow <jsnow@redhat.com>
Wed, 10 Feb 2016 18:29:40 +0000 (13:29 -0500)
commitf8a6c5f3188b32db5c63e0759d390cb341888497
tree1176962b7852f11f3c05df4c0c04653669958eda
parentf32a2f33c2e765addcca7748f9df692e4131a0e2
ahci: explicitly reject bad engine states on post_load

Currently, we let ahci_cond_start_engines reject weird configurations
where either the DMA (CLB) or FIS engines are said to be started, but
their matching on/off control bit is toggled off.

There should be no way to achieve this, since any time you toggle the
control bit off, the status bit should always follow synchronously.

Preparing for a refactor in cond_start_engines, move the rejection logic
straight up into post_load.

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