]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
qtest/ahci: add ahci_write_fis
authorJohn Snow <jsnow@redhat.com>
Thu, 5 Feb 2015 17:41:21 +0000 (12:41 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:17 +0000 (15:07 +0000)
commit52515766f1e18b596a6dc31421ca14a63114c9eb
tree651c3dc0fc798901afea7aefa4e652bf9dd98728
parent36e367261c15f0fa9acfbe9f4301c96e19be7f52
qtest/ahci: add ahci_write_fis

Similar to ahci_set_command_header, add a helper that takes an
in-memory representation of a command FIS and writes it to guest
memory, handling endianness as-needed.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1423158090-25580-11-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