Received: from eggs.gnu.org ([2001:4830:134:3::10]:48190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf8BF-0008LO-Lm for qemu-devel@nongnu.org; Wed, 31 Aug 2016 12:16:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bf8B9-00074r-Lx for qemu-devel@nongnu.org; Wed, 31 Aug 2016 12:16:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf8B9-00074d-G4 for qemu-devel@nongnu.org; Wed, 31 Aug 2016 12:15:55 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4D9C7C0567A0 for ; Wed, 31 Aug 2016 16:15:54 +0000 (UTC) From: Markus Armbruster Date: Wed, 31 Aug 2016 18:15:51 +0200 Message-Id: <1472660151-19517-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH] i8257: Make device "i8257" unavailable with -device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mst@redhat.com, pbonzini@redhat.com 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 = { -- 2.5.5