From: Alexander Graf Subject: Re: [SeaBIOS] Graphics card pass-through working with two pass pci-initialization Date: Wed, 1 Jun 2011 11:56:38 +0200 Message-ID: <08A969ED-DDE7-48A0-AFED-283239FFF5CE@suse.de> References: <20110525023406.GG8517@valinux.co.jp> <20110525043353.GH8517@valinux.co.jp> <4DDCC7A5.60706@redhat.com> <4DDCF9ED.5050208@redhat.com> <4DDDDA8D.6080807@web.de> <4DDDF62C.2010603@redhat.com> <4DDF3768.5010002@web.de> <4DDF867A.9040700@siemens.com> <4DDFFE1E.1060900@web.de> <4DE3486F.10502@redhat.com> <20110531022922.GB10673@valinux.co.jp> <4DE5EA84.7040400@redhat.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Cc: Isaku Yamahata , =?iso-8859-1?Q?Andr=E9_Weidemann?= , Jan Kiszka , Alex Williamson , seabios@seabios.org, KVM list , "qemu-devel@nongnu.org Developers" To: Gerd Hoffmann Return-path: Received: from cantor2.suse.de ([195.135.220.15]:48428 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757574Ab1FAJ4p convert rfc822-to-8bit (ORCPT ); Wed, 1 Jun 2011 05:56:45 -0400 In-Reply-To: <4DE5EA84.7040400@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 01.06.2011, at 09:30, Gerd Hoffmann wrote: > Hi, > >> 0xE0000000 is hard-coded in the DSDT for both piix and q35 as below. >> If the range is determined dynamically, the area also needs to be >> updated somehow dynamically. >> >> ... >> Name (_CRS, ResourceTemplate () >> ... >> DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, >> 0x00000000, // Address Space Granularity >> 0xE0000000, // Address Range Minimum >> 0xFEBFFFFF, // Address Range Maximum >> 0x00000000, // Address Translation Offset >> 0x1EC00000, // Address Length >> ,, , AddressRangeMemory, TypeStatic) > > Uhm, indeed. I know next to nothing about ACPI though. Ideas anyone how this could be done? We're facing similar issues on PPC. The equivalent of the DSDT there is the device tree, which is currently passed in as binary blob and slightly appended for dynamic configuration. I'd much rather like to see it fully generated inside of Qemu from all the information we have available there, so we don't run into consistency issues. This will be even more required when we pass through SoC devices to the guest, which are not on a PCI bus. Without specifying them in the DT, the guest doesn't know about them. X86 has a similar issue. Take a look at the HPET for example. If you don't want an HPET inside the guest, the DSDT needs to be modified. So you need to change things at 2 places - the DSDT and Qemu. I don't know how much work it would be to generate the DSDT dynamically from Qemu, but IMHO that's the sanest way to make things flexible. We could probably even extract most information from the Qdev tree. Alex