AHCI: Protect cmd register
commitfc3d8e1138cd0c843d6fd75272633a31be6554ef
authorJohn Snow <jsnow@redhat.com>
Fri, 27 Mar 2015 19:48:11 +0000 (27 15:48 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 27 Mar 2015 19:48:11 +0000 (27 15:48 -0400)
tree574c1e3c0687d8379ea17dc95aa0316cdab2dc36
parenta13ab5a35bc0435fcfdacb3e171ceedcc077573d
AHCI: Protect cmd register

Many bits in the CMD register are supposed to be strictly read-only.
We should not be deleting them on every write.

As a side-effect: pay explicit attention to when a guest marks off
the FIS Receive or Start bits, and disable the status bits ourselves,
instead of letting them implicitly fall off.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1426283454-15590-3-git-send-email-jsnow@redhat.com
hw/ide/ahci.c
hw/ide/ahci.h