libqos/ahci: Add ahci_port_select helper
commite77448a385dc72fa671752ec11c84c931f316d09
authorJohn Snow <jsnow@redhat.com>
Thu, 5 Feb 2015 17:41:12 +0000 (5 12:41 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:16 +0000 (16 15:07 +0000)
tree3910d33918ca8b913467b7c811942248458ecb9d
parentb0e5d90ebc3edb5cfc1d5d33dd3334482dee6d46
libqos/ahci: Add ahci_port_select helper

This helper identifies which port of the
AHCI HBA has a device we may run tests on.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1423158090-25580-2-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/ahci-test.c
tests/libqos/ahci.c
tests/libqos/ahci.h