From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJMjW-0008QW-LA for qemu-devel@nongnu.org; Thu, 05 Feb 2015 08:44:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJMjT-0007nl-Ga for qemu-devel@nongnu.org; Thu, 05 Feb 2015 08:44:38 -0500 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:46366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJMjT-0007nY-9K for qemu-devel@nongnu.org; Thu, 05 Feb 2015 08:44:35 -0500 Received: by mail-we0-f172.google.com with SMTP id x3so2218221wes.3 for ; Thu, 05 Feb 2015 05:44:34 -0800 (PST) Date: Thu, 5 Feb 2015 13:44:20 +0000 From: Stefan Hajnoczi Message-ID: <20150205134420.GD19277@stefanha-thinkpad.redhat.com> References: <1422999999-25868-1-git-send-email-jsnow@redhat.com> <1422999999-25868-13-git-send-email-jsnow@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6Nae48J/T25AfBN4" Content-Disposition: inline In-Reply-To: <1422999999-25868-13-git-send-email-jsnow@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 12/19] libqos/ahci: add ahci command functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: famz@redhat.com, mst@redhat.com, armbru@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. >=20 > 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. >=20 > Signed-off-by: John Snow > --- > 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 --6Nae48J/T25AfBN4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU03O0AAoJEJykq7OBq3PIty0H/RDSt/9mKz+VTF8ZRbuvGFBN Ik1m5ojiiPewnmVaWqLBlL2Dji9YKUky71NZDLZsrf53gtcDUGVgn3Kyd/Gp+qf7 RQPoWDgUp82oKalpsk/RIUgZDwT9Epv9TNwnbVBzmKWjjG0McIBzHZf0lcO3qkMz PyWpDRUOL6yz/+IdEoo/3CRznZZNvUDy6tfLfADS5SQK/aIAqqiYqYUfSEYLHKZE ZCIffoCgtF8S1wY3JSYd2f4VTJraKRtXhr7Nn5XReAijoYxWIbLCh/MIb1xppKgG GsPAUeNaoA8dl1PBw5GYdbAc432RKNlKQc+/JWvdVGDHda2914919rcr+odlizQ= =waOx -----END PGP SIGNATURE----- --6Nae48J/T25AfBN4--