Received: from eggs.gnu.org ([2001:4830:134:3::10]:54095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfPlK-0003nD-7w for qemu-devel@nongnu.org; Thu, 01 Sep 2016 07:02:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfPlH-0005JX-43 for qemu-devel@nongnu.org; Thu, 01 Sep 2016 07:02:26 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfPlG-0005JP-T8 for qemu-devel@nongnu.org; Thu, 01 Sep 2016 07:02:23 -0400 Received: by mail-wm0-x244.google.com with SMTP id w207so7855829wmw.0 for ; Thu, 01 Sep 2016 04:02:22 -0700 (PDT) Sender: Paolo Bonzini References: <1472660151-19517-1-git-send-email-armbru@redhat.com> From: Paolo Bonzini Message-ID: <5b3050ae-2cac-4457-b115-9dfda72bf0e7@redhat.com> Date: Thu, 1 Sep 2016 13:02:18 +0200 MIME-Version: 1.0 In-Reply-To: <1472660151-19517-1-git-send-email-armbru@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] i8257: Make device "i8257" unavailable with -device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , qemu-devel@nongnu.org Cc: mst@redhat.com On 31/08/2016 18:15, Markus Armbruster wrote: > The ISA DMA controller needs to be wired up to the ISA bus by > isa_bus_dma() to actually work. > > Signed-off-by: Markus Armbruster > --- > hw/dma/i8257.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c > index f345c54..f90df1d 100644 > --- a/hw/dma/i8257.c > +++ b/hw/dma/i8257.c > @@ -598,6 +598,8 @@ static void i8257_class_init(ObjectClass *klass, void *data) > idc->release_DREQ = i8257_dma_release_DREQ; > idc->schedule = i8257_dma_schedule; > idc->register_channel = i8257_dma_register_channel; > + /* Reason: needs to be wired up by isa_bus_dma() to work */ > + dc->cannot_instantiate_with_device_add_yet = true; > } > > static const TypeInfo i8257_info = { > Queued for 2.8, thanks. Paolo