ahci: Add test_hba_spec to ahci-test.
authorJohn Snow <jsnow@redhat.com>
Thu, 21 Aug 2014 17:44:37 +0000 (13:44 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 22 Sep 2014 10:39:42 +0000 (11:39 +0100)
commitc2f3029fbc5e7beb4cfb7ac264e10838fada524e
treedd5b88eb9ef9e3243e29454a0432f969198ee572
parentfac7aa7fc2ebc26803b0a7b44b010f47ce3e1dd8
ahci: Add test_hba_spec to ahci-test.

Add a test routine that checks the boot-up values of the HBA
configuration memory space against the AHCI 1.3 specification
and Intel ICH9 data sheet (for Q35 machines) for adherence and
sane values.

The HBA is not yet engaged or put into the idle state.

[Replaced g_assert_false(...) with g_assert(!...) for glib <2.38
compatibility, reported by Peter Maydell <peter.maydell@linaro.org>.
--Stefan]

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