ahci: add cmd header to ncq transfer state
commitc82bd3c893825fc76af3634f5461f5eabd94e9df
authorJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:05 +0000 (4 02:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:05 +0000 (4 02:06 -0400)
tree1923f2cac9d3ea441dac00806796fe34832d0db8
parent7f6cf5ee1236d94fc25830a47438e57aa294d9fe
ahci: add cmd header to ncq transfer state

While the rest of the AHCI device can rely on a single bookmarked
pointer for the AHCI Command Header currently being processed, NCQ
is asynchronous and may have many commands in flight simultaneously.

Add a cmdh pointer to the ncq_tfs object and make the sglist prepare
function take an AHCICmdHeader pointer so we can be explicit about
where we'd like to build SGlists from.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1435767578-32743-11-git-send-email-jsnow@redhat.com
hw/ide/ahci.c
hw/ide/ahci.h