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

2014-11-11 Thread Stefan Hajnoczi
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

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

2014-11-10 Thread John Snow
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 i