From: Paolo Bonzini <pbonzini@redhat.com>
To: Pavel Butsykin <pbutsykin@virtuozzo.com>,
"Denis V. Lunev" <den@openvz.org>,
qemu-devel@nongnu.org
Cc: John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state
Date: Thu, 24 Mar 2016 12:23:00 +0100 [thread overview]
Message-ID: <56F3CE14.80300@redhat.com> (raw)
In-Reply-To: <56F3B249.50605@virtuozzo.com>
On 24/03/2016 10:24, Pavel Butsykin wrote:
>> For extra points, make ide_handle_rw_error convert IDE_DMA_* to
>> IDE_RETRY_* so that the callers only need to pass in IDE_RETRY_DMA
>>
> You mean to do something like that:
>
> ide_handle_rw_error(s, -ret, s->dma_cmd | IDE_RETRY_DMA)
Just ide_handle_rw_error(s, -ret, IDE_RETRY_DMA)
and in ide_handle_rw_error
if (op == IDE_RETRY_DMA) {
if (s->dma_cmd == IDE_DMA_READ)
op |= IDE_RETRY_READ;
else if (s->dma_cmd == IDE_DMA_TRIM)
op |= IDE_RETRY_TRIM;
}
But I'm not sure anymore this is a good idea.
However, if it works, using dma_cmd would be better than using the dma_cb.
Paolo
next prev parent reply other threads:[~2016-03-24 11:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 10:26 [Qemu-devel] [PATCH for 2.6 0/3] ide: fix loss of the dma/atapi state during migration Denis V. Lunev
2016-03-23 10:26 ` [Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state Denis V. Lunev
2016-03-23 20:34 ` Paolo Bonzini
2016-03-24 9:24 ` Pavel Butsykin
2016-03-24 11:23 ` Paolo Bonzini [this message]
2016-03-24 13:38 ` Pavel Butsykin
2016-03-24 14:07 ` Paolo Bonzini
2016-03-24 15:11 ` Pavel Butsykin
2016-03-24 15:12 ` Paolo Bonzini
2016-03-24 15:20 ` Pavel Butsykin
2016-03-24 14:47 ` Eric Blake
2016-03-24 15:40 ` Pavel Butsykin
2016-03-30 17:35 ` John Snow
2016-03-30 17:38 ` Denis V. Lunev
2016-03-30 17:44 ` John Snow
2016-03-23 10:26 ` [Qemu-devel] [PATCH 2/3] ide: restart atapi dma by re-evaluating command packet Denis V. Lunev
2016-03-23 10:26 ` [Qemu-devel] [PATCH 3/3] ide: really restart pending and in-flight atapi dma Denis V. Lunev
2016-03-23 19:36 ` John Snow
2016-03-24 8:34 ` Pavel Butsykin
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=56F3CE14.80300@redhat.com \
--to=pbonzini@redhat.com \
--cc=den@openvz.org \
--cc=jsnow@redhat.com \
--cc=pbutsykin@virtuozzo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.