Received: from eggs.gnu.org ([2001:4830:134:3::10]:57614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpfvQ-0007BP-GI for qemu-devel@nongnu.org; Thu, 29 Sep 2016 14:19:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpfvO-0004no-BC for qemu-devel@nongnu.org; Thu, 29 Sep 2016 14:19:15 -0400 References: <1474984441-28516-1-git-send-email-kwolf@redhat.com> <20160928093744.GH5236@noname.redhat.com> <20160929102507.GD5742@noname.redhat.com> <8a79dd86-4fbc-0a59-254a-0e537dd8b6e7@redhat.com> <8c6a5e31-7bfb-1947-f4a8-8667edfd17e8@redhat.com> From: John Snow Message-ID: Date: Thu, 29 Sep 2016 14:19:05 -0400 MIME-Version: 1.0 In-Reply-To: <8c6a5e31-7bfb-1947-f4a8-8667edfd17e8@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 00/18] Block layer patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Kevin Wolf , Peter Maydell Cc: pl@kamp.de, QEMU Developers , Qemu-block On 09/29/2016 02:17 PM, Paolo Bonzini wrote: > > > On 29/09/2016 19:02, John Snow wrote: >> >> >> On 09/29/2016 06:25 AM, Kevin Wolf wrote: >>> John, can you have a look at the IDE code and check whether we can get >>> rid of the deep recursion? It seems that the test issues a large request >>> that is then split into many small requests. But it should be possible >>> to do this iteratively rather than recursively. >> >> http://wiki.qemu.org/Features/IDE >> >> "Rewrite ide_atapi_cmd_reply_end to be fully non-recursive; and ideally >> less confusing." >> >> Guess I have to float this one to the top. > > Would it be enough to hide the call to s->bus->dma->ops->start_transfer > behind a bottom half? > > Paolo > Probably the simplest way, even if not the prettiest.