qemu-devel
[Top][All Lists]
Advanced

[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>

Attachment: pgpHjIIct53Gr.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]