Received: from eggs.gnu.org ([2001:4830:134:3::10]:33830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjrLq-0000DP-Iz for qemu-devel@nongnu.org; Tue, 13 Sep 2016 13:18:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjrLm-000693-Ea for qemu-devel@nongnu.org; Tue, 13 Sep 2016 13:18:30 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjrLm-00068k-85 for qemu-devel@nongnu.org; Tue, 13 Sep 2016 13:18:26 -0400 Received: by mail-wm0-f68.google.com with SMTP id b187so19221015wme.0 for ; Tue, 13 Sep 2016 10:18:26 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 13 Sep 2016 19:16:13 +0200 Message-Id: <1473786989-54823-43-git-send-email-pbonzini@redhat.com> In-Reply-To: <1473786989-54823-1-git-send-email-pbonzini@redhat.com> References: <1473786989-54823-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 42/58] 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: Markus Armbruster From: Markus Armbruster 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 Message-Id: <1472660151-19517-1-git-send-email-armbru@redhat.com> Signed-off-by: Paolo Bonzini --- hw/dma/i8257.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index bffbdea..8bd82e8 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -600,6 +600,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 = { -- 1.8.3.1