From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN7W9-0002Dz-7t for qemu-devel@nongnu.org; Thu, 28 Aug 2014 17:46:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN7W1-0006kb-1z for qemu-devel@nongnu.org; Thu, 28 Aug 2014 17:46:05 -0400 Date: Thu, 28 Aug 2014 23:46:21 +0200 From: "Michael S. Tsirkin" Message-ID: <20140828214621.GA18917@redhat.com> References: <1408407718-10835-1-git-send-email-mdroth@linux.vnet.ibm.com> <1408407718-10835-9-git-send-email-mdroth@linux.vnet.ibm.com> <20140827134751.GA18523@redhat.com> <20140828212157.21832.67572@loki> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 08/12] pci: allow 0 address for PCI IO regions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Alexey Kardashevskiy , Alexander Graf , Michael Roth , Mike Day , "qemu-ppc@nongnu.org" , tyreld@linux.vnet.ibm.com, nfont@linux.vnet.ibm.com On Thu, Aug 28, 2014 at 10:33:02PM +0100, Peter Maydell wrote: > On 28 August 2014 22:21, Michael Roth wrote: > > But I guess there's still a separate issue, where there's a high liklihood that > > a 0 address would conflict with some hard-wired IO address? Wouldn't this be a > > guest bug though? Real hardware behaves in a specific way. the problem is we don't always emulate it properly, and PCI has some work arounds for that. > Even if it's a guest bug, we should act like the hardware does > if the guest does this. If that differs between PCI controllers > then we need a flag so the host controller model can select > the required behaviour. (The versatile PB PCI controller we > model does have "address 0 is valid", and we'd need to have > this working if we implemented DMA accesses properly.) > > -- PMM Exactly. Actually, I forgot that I might have already fixed it for PC: 83d08f2673504a299194dcac1657a13754b5932a pc: map PCI address space as catchall region for not mapped addresses But need to go back and re-check other systems. -- MST