OSDN Git Service

ahci: Add test_identify case to ahci-test.
authorJohn Snow <jsnow@redhat.com>
Thu, 21 Aug 2014 17:44:39 +0000 (13:44 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 22 Sep 2014 10:39:43 +0000 (11:39 +0100)
commit0fa781e3d50ec2e7b45dda96709b16b38f88799b
treeaaf56cb84191f37a42b8d4057e400ffc1de1ac5e
parentdbc180e5725e4eb4fd1632d0af41189c7410e459
ahci: Add test_identify case to ahci-test.

Utilizing all of the bring-up code in pci_enable and hba_enable,
this test issues a simple IDENTIFY command via the HBA and retrieves
the response via the PIO receive mechanisms of the HBA.

Bugs: The DPS interrupt (Descriptor Processed Status) does not
currently get set. This will need to be adjusted in a future
patch series when the AHCI DMA pathways are reworked to allow
the feature, which may be utilized by OSX guests.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1408643079-30675-9-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/ahci-test.c