From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbUkH-0001ST-WF for qemu-devel@nongnu.org; Wed, 30 Oct 2013 08:19:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbUk9-0001n4-K2 for qemu-devel@nongnu.org; Wed, 30 Oct 2013 08:19:33 -0400 Received: from mail-qa0-x22d.google.com ([2607:f8b0:400d:c00::22d]:49813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbUk9-0001my-EQ for qemu-devel@nongnu.org; Wed, 30 Oct 2013 08:19:25 -0400 Received: by mail-qa0-f45.google.com with SMTP id ii20so3630548qab.4 for ; Wed, 30 Oct 2013 05:19:25 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5270F948.5020202@redhat.com> Date: Wed, 30 Oct 2013 13:19:20 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1382978620-16641-1-git-send-email-pbonzini@redhat.com> <1382978620-16641-19-git-send-email-pbonzini@redhat.com> In-Reply-To: <1382978620-16641-19-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 18/24] ide: pass IDEBus to the restart_cb List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Stefan Hajnoczi Cc: qemu-devel@nongnu.org, mst@redhat.com Il 28/10/2013 17:43, Paolo Bonzini ha scritto: > @@ -199,8 +199,8 @@ static void ide_restart_dma(IDEState *s, enum ide_dma_cmd dma_cmd) > /* TODO This should be common IDE code */ > static void bmdma_restart_bh(void *opaque) > { > - BMDMAState *bm = opaque; > - IDEBus *bus = bm->bus; > + IDEBus *bus = opaque; > + BMDMAState *bm = DO_UPCAST(BMDMAState, dma, bus->dma); > IDEState *s; > bool is_read; > int error_status; The corresponding change in qemu_bh_new is mistakenly in patch 19, rather than in this one. Paolo