From patchwork Mon Oct 12 20:55:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Gordeev X-Patchwork-Id: 529629 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B0C471402A8 for ; Tue, 13 Oct 2015 19:23:57 +1100 (AEDT) Received: from localhost ([::1]:33003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlusF-0006d2-4l for incoming@patchwork.ozlabs.org; Tue, 13 Oct 2015 04:23:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlk84-0006Tu-IE for qemu-devel@nongnu.org; Mon, 12 Oct 2015 16:55:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlk81-0001k4-9M for qemu-devel@nongnu.org; Mon, 12 Oct 2015 16:55:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlk81-0001jw-2M for qemu-devel@nongnu.org; Mon, 12 Oct 2015 16:55:29 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id EF5E48A179; Mon, 12 Oct 2015 20:55:27 +0000 (UTC) Received: from agbook.brq.redhat.com (dhcp-27-122.brq.redhat.com [10.34.27.122]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9CKtQGU011889; Mon, 12 Oct 2015 16:55:26 -0400 From: Alexander Gordeev To: qemu-devel@nongnu.org Date: Mon, 12 Oct 2015 22:55:08 +0200 Message-Id: <1444683308-30543-1-git-send-email-agordeev@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-Mailman-Approved-At: Tue, 13 Oct 2015 04:23:27 -0400 Cc: Peter Maydell , Andrew Jones , Alexander Gordeev Subject: [Qemu-devel] [PATCH] hw/arm/virt: Allow zero address for PCI IO space X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Currently PCI IO address 0 is not allowed even though the IO space starts from 0. As result, PCI IO is not possible to use at all. CC: Peter Maydell CC: Andrew Jones Signed-off-by: Alexander Gordeev --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index d25d6cf..3620489 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -1157,6 +1157,7 @@ static void virt_class_init(ObjectClass *oc, void *data) mc->has_dynamic_sysbus = true; mc->block_default_type = IF_VIRTIO; mc->no_cdrom = 1; + mc->pci_allow_0_address = true; } static const TypeInfo machvirt_info = {