Received: from eggs.gnu.org ([2001:4830:134:3::10]:39970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoaIa-00065H-3z for qemu-devel@nongnu.org; Wed, 12 Nov 2014 10:57:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoaIS-0002lx-Ez for qemu-devel@nongnu.org; Wed, 12 Nov 2014 10:57:36 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:65257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoaIS-0002lq-4V for qemu-devel@nongnu.org; Wed, 12 Nov 2014 10:57:28 -0500 From: Arnd Bergmann Date: Wed, 12 Nov 2014 16:57:21 +0100 Message-ID: <1690954.Y528jzYjum@wuerfel> In-Reply-To: <54638239.8090901@redhat.com> References: <20141030180216.GD31629@leverpostej> <54638239.8090901@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [Qemu-devel] [Linaro-acpi] [RFC PATCH 0/7] hw/arm/virt: Dynamic ACPI v5.1 table generation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: linaro-acpi@lists.linaro.org Cc: Peter Maydell , "Ian.Campbell@citrix.com" , Claudio Fontana , QEMU Developers , "stefano.stabellini@citrix.com" , Paolo Bonzini , "tech@virtualopensystems.com" , Parth Dixit , Christoffer Dall On Wednesday 12 November 2014 16:52:25 Paolo Bonzini wrote: > On 12/11/2014 16:39, Peter Maydell wrote: > > > Definitely, I think having the OS manually program the BARs only makes sense > > > in an environment where you don't have a full-featured boot loader or you > > > don't trust it. In servers and virtual machines, the PCI bus should always come > > > fully set up. This also implies that the OS should not have to deal with > > > registers for setting up the translation between PCI and system address > > > ranges. > > > > It seems to me like complicated stuff like that definitely belongs > > in the UEFI/bootloader blob, though. I'd rather QEMU just modelled > > the hardware and let the guest (or the firmware, which is guest > > code from QEMU's point of view) set it up however it wants. > > It definitely doesn't belong in QEMU! The easiest option would probably be not make all PCI devices have fixed BARs and not even allow them to be changed. I believe this is what kvmtool does, but I can see how supporting both modes is much harder than either one. How does it work on x86 with qemu? Arnd