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

ahci_port_check_error checks a given port's error registers and asserts
that everything from the port-level view is still OK.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1423158090-25580-6-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