[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state |
Date: |
Thu, 24 Mar 2016 15:07:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 24/03/2016 14:38, Pavel Butsykin wrote:
> Look at the ide_sector_read_cb function. The ->dma_cmd field is used
> only for the DMA, we can't use the ide_cmd_is_read macro for PIO or
> ATAPI. In fact, the ide_handle_rw_error looks like a generic function
> and I do not see any good reason to move the handling of the dma_cmd
> field(especially in the context of bug fixes).
I agree now.
>> However, if it works, using dma_cmd would be better than using the
>> dma_cb.
>>
> We can't use the dma_cmd field to build the ATAPI ->error_status. Your
> proposal is quite logical, but please look at the 3rd patch, there to
> build ->error_status we can use the same dma_cb, it is very convenient.
Couldn't you just add a new dma_cmd value IDE_DMA_ATAPI, and set it
before every call to ide_start_dma(s, ide_atapi_cmd_read_dma_cb)?
Thanks,
Paolo
- [Qemu-devel] [PATCH for 2.6 0/3] ide: fix loss of the dma/atapi state during migration, Denis V. Lunev, 2016/03/23
- [Qemu-devel] [PATCH 3/3] ide: really restart pending and in-flight atapi dma, Denis V. Lunev, 2016/03/23
- [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Denis V. Lunev, 2016/03/23
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Paolo Bonzini, 2016/03/23
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Pavel Butsykin, 2016/03/24
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Paolo Bonzini, 2016/03/24
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Pavel Butsykin, 2016/03/24
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state,
Paolo Bonzini <=
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Pavel Butsykin, 2016/03/24
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Paolo Bonzini, 2016/03/24
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Pavel Butsykin, 2016/03/24
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Eric Blake, 2016/03/24
- Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, Pavel Butsykin, 2016/03/24
Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state, John Snow, 2016/03/30
[Qemu-devel] [PATCH 2/3] ide: restart atapi dma by re-evaluating command packet, Denis V. Lunev, 2016/03/23