libqos/ahci: create libqos/ahci.c
commit9a75b0a037e3a8030992244353f17b62f6daf2ab
authorJohn Snow <jsnow@redhat.com>
Mon, 19 Jan 2015 20:16:03 +0000 (19 15:16 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:14 +0000 (16 15:07 +0000)
treef2c222694f830c31a516c581afcd6b3d763faf0a
parentf3dd2da4cc8c17921cb50920600adafb02959abf
libqos/ahci: create libqos/ahci.c

With global state removed, code responsible for booting up,
verifying, and initializing the AHCI HBA is extracted and
inserted into libqos/ahci.c, which would allow for other
qtests in the future to quickly grab a meaningfully initialized
reference to an AHCI HBA.

Even without other users, functionalizing and isolating the code
assists future AHCI tests that exercise Q35 migration.

For now, libqos/ahci.o will be PC-only, but can be expanded into
something arch-agnostic in the future, if needed.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1421698563-6977-16-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/Makefile
tests/ahci-test.c
tests/libqos/ahci.c [new file with mode: 0644]
tests/libqos/ahci.h