[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 12/19] libqos/ahci: add ahci command function
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2 12/19] libqos/ahci: add ahci command functions |
Date: |
Thu, 5 Feb 2015 13:44:20 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Feb 03, 2015 at 04:46:32PM -0500, John Snow wrote:
> This patch adds the AHCICommand structure, and a set of functions to
> operate on the structure.
>
> ahci_command_create - Initialize and create a new AHCICommand in memory
> ahci_command_free - Destroy this object.
> ahci_command_set_buffer - Set where the guest memory DMA buffer is.
> ahci_command_commit - Write this command to the AHCI HBA.
> ahci_command_issue - Issue the committed command synchronously.
> ahci_command_issue_async - Issue the committed command asynchronously.
> ahci_command_wait - Wait for an asynchronous command to finish.
> ahci_command_slot - Get the number of the command slot we committed to.
>
> Helpers:
> size_to_prdtl - Calculate the required minimum PRDTL size from
> a buffer size.
> ahci_command_find - Given an ATA command mnemonic, look it up in the
> properties table to obtain info about the command.
> command_header_init - Initialize the command header with sane values.
> command_table_init - Initialize the command table with sane values.
>
> Signed-off-by: John Snow <address@hidden>
> ---
> tests/ahci-test.c | 73 +++++--------------
> tests/libqos/ahci.c | 202
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
> tests/libqos/ahci.h | 15 ++++
> 3 files changed, 234 insertions(+), 56 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
pgpHwaAtHvHGx.pgp
Description: PGP signature
- [Qemu-devel] [PATCH v2 07/19] libqos/ahci: Add port_check_nonbusy helper, (continued)
- [Qemu-devel] [PATCH v2 07/19] libqos/ahci: Add port_check_nonbusy helper, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 14/19] libqos/ahci: add ahci command size setters, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 09/19] qtest/ahci: Demagic ahci tests., John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 08/19] libqos/ahci: Add cmd response sanity check helpers, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 15/19] libqos/ahci: Add ahci_guest_io, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 06/19] libqos/ahci: Add ahci_port_check_interrupts helper, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 13/19] libqos/ahci: add ahci command verify, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 12/19] libqos/ahci: add ahci command functions, John Snow, 2015/02/03
- Re: [Qemu-devel] [PATCH v2 12/19] libqos/ahci: add ahci command functions,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH v2 16/19] libqos/ahci: add ahci_io, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 17/19] libqos/ahci: Add ahci_clean_mem, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 18/19] qtest/ahci: Assert sector size in identify test, John Snow, 2015/02/03
- [Qemu-devel] [PATCH v2 19/19] qtest/ahci: Adding simple dma read-write test, John Snow, 2015/02/03