qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] ahci: Fix byte count regression for ATAPI/PIO


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] ahci: Fix byte count regression for ATAPI/PIO
Date: Tue, 11 Nov 2014 17:16:35 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

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 <address@hidden>
> ---
>  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: pgpMmOsxlPzku.pgp
Description: PGP signature


reply via email to

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