[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 04/19] libqos/ahci: Add command header helper
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v3 04/19] libqos/ahci: Add command header helpers |
Date: |
Fri, 6 Feb 2015 16:10:54 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Thu, Feb 05, 2015 at 12:41:15PM -0500, John Snow wrote:
> Adds command header helper functions:
> -ahci_command_header_set
> -ahci_command_header_get,
> -ahci_command_destroy, and
> -ahci_cmd_pick
>
> These helpers help to quickly manage the command header information in
> the AHCI device.
>
> ahci_command_header_set and get will store or retrieve an AHCI command
> header, respectively.
>
> ahci_cmd_pick chooses the first available but least recently used
> command slot to allow us to cycle through the available command slots.
>
> ahci_command_destroy obliterates all information contained within a
> given slot's command header, and frees its associated command table,
> but not its DMA buffer!
>
> Lastly, the command table pointer fields (dba and dbau) are merged into
> a single 64bit value to make managing 64bit tests simpler.
>
> Signed-off-by: John Snow <address@hidden>
> ---
> tests/ahci-test.c | 43 ++++++++++++++++--------------
> tests/libqos/ahci.c | 75
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
> tests/libqos/ahci.h | 17 ++++++++----
> 3 files changed, 110 insertions(+), 25 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
pgpHjIIct53Gr.pgp
Description: PGP signature
- [Qemu-devel] [PATCH v3 00/19] qtest/ahci: add dma test, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 03/19] qtest/ahci: rename 'Command' to 'CommandHeader', John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 01/19] libqos/ahci: Add ahci_port_select helper, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 04/19] libqos/ahci: Add command header helpers, John Snow, 2015/02/05
- Re: [Qemu-devel] [PATCH v3 04/19] libqos/ahci: Add command header helpers,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH v3 02/19] libqos/ahci: Add ahci_port_clear helper, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 06/19] libqos/ahci: Add ahci_port_check_interrupts helper, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 05/19] libqos/ahci: Add ahci_port_check_error helper, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 07/19] libqos/ahci: Add port_check_nonbusy helper, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 14/19] libqos/ahci: add ahci command size setters, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 13/19] libqos/ahci: add ahci command verify, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 08/19] libqos/ahci: Add cmd response sanity check helpers, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 17/19] libqos/ahci: Add ahci_clean_mem, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 16/19] libqos/ahci: add ahci_io, John Snow, 2015/02/05
- [Qemu-devel] [PATCH v3 09/19] qtest/ahci: Demagic ahci tests., John Snow, 2015/02/05