From: Stefan Hajnoczi <stefanha@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org,
armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH] ahci: Fix byte count regression for ATAPI/PIO
Date: Tue, 11 Nov 2014 17:16:35 +0000 [thread overview]
Message-ID: <20141111171635.GA22150@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1415666500-861-1-git-send-email-jsnow@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 973 bytes --]
On Mon, Nov 10, 2014 at 07:41:40PM -0500, John Snow wrote:
> This patch fixes a regression caused by commit
> 659142ecf71a0da240ab0ff7cf929ee25c32b9bc.
> The problem occurs when we wish to return early
> from the ahci_start_transfer function, but are now
> updating the transferred byte count in the AHCI
> command header via ahci_commit_buf.
>
> This will cause problems in the Windows 8 installer.
>
> Don't update the byte count in the command header
> for the transmission of ATAPI packets: These commands
> will distort the final byte count of the actual data
> payload.
>
> The call to ahci_commit_buf remains in the "out"
> portion of the call in order to clean up the sglist.
> The byte count is maintained by forcing size to be 0.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> hw/ide/ahci.c | 1 +
> 1 file changed, 1 insertion(+)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2014-11-11 17:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 0:41 [Qemu-devel] [PATCH] ahci: Fix byte count regression for ATAPI/PIO John Snow
2014-11-11 17:16 ` Stefan Hajnoczi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141111171635.GA22150@stefanha-thinkpad.redhat.com \
--to=stefanha@redhat.com \
--cc=armbru@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).