[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH 2/6] ide: push end_transfer_func ou
From: |
John Snow |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH 2/6] ide: push end_transfer_func out of start_transfer callback, rename callback |
Date: |
Mon, 4 Jun 2018 13:42:25 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 06/04/2018 11:48 AM, Paolo Bonzini wrote:
> On 02/06/2018 02:24, John Snow wrote:
>>> - if (s->bus->dma->ops->start_transfer) {
>>> - s->bus->dma->ops->start_transfer(s->bus->dma);
>>> + if (!s->bus->dma->ops->pio_transfer) {
>>> + s->end_transfer_func = end_transfer_func;
>>> + return;
>>> }
>>> + s->bus->dma->ops->pio_transfer(s->bus->dma);
>>> + end_transfer_func(s);
>> Does not setting s->end_transfer_func mess with some of our dumb hacks
>> in e.g. ide_restart_bh or ide_is_pio_out?
>
> No, ide_is_pio_out is not used by AHCI and ide_restart_bh looks at the
> flags passed to ide_handle_rw_error.
>
> Thanks,
>
> Paolo
>
Yes, that's right -- ide_restart_bh relies less on this now (thanks to
you, if I recall correctly) and ide_is_pio_out is only used by
ide_data_(read|write)[lw] ...
Hmm, it'd be nice to get rid of our reliance on ETF to determine state,
but that's nothing you've caused.
Reviewed-by: John Snow <address@hidden>