From: Lennert Buytenhek Subject: Re: graphics card pci passthrough success report Date: Thu, 13 Sep 2012 11:40:27 +0200 Message-ID: <20120913094027.GI778@wantstofly.org> References: <20120912155042.GD778@wantstofly.org> <50517534.9030304@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, Dirk Teurlings To: Gerd Hoffmann Return-path: Received: from fw.wantstofly.org ([80.101.37.227]:61928 "EHLO mail.wantstofly.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812Ab2IMJkd (ORCPT ); Thu, 13 Sep 2012 05:40:33 -0400 Content-Disposition: inline In-Reply-To: <50517534.9030304@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Sep 13, 2012 at 07:55:00AM +0200, Gerd Hoffmann wrote: > Hi, Hi, > > - Apply the patches at the end of this mail to kvm and SeaBIOS to > > allow for more BAR space under 4G. (The relevant BARs on the > > graphics cards _are_ 64 bit BARs, but kvm seemed to turn those > > into 32 bit BARs in the guest.) > > Which qemu/seabios versions have you used? > > qemu-1.2 (+ bundled seabios) should handle that just fine without > patching. There is no fixed I/O window any more, all memory space above > lowmem is available for pci, i.e. if you give 2G to your guest > everything above 0x80000000. > > And if there isn't enougth address space below 4G (if you assign lot of > memory to your guest so qemu keeps only the 0xe0000000 - 0xffffffff > window free) seabios should try to map 64bit bars above 4G. This was some time ago, on (L)ubuntu 12.04, which has qemu-kvm 1.0 and seabios 0.6.2. We'll retry on a newer distro soon. > > - Apply the hacky patch at the end of this mail to SeaBIOS to > > always skip initialising the Radeon's option ROMs, or the VM > > would hang inside the Radeon option ROM if you boot the VM > > without the default cirrus video. > > A better way to handle that would probably be to add an pci passthrough > config option to not expose the rom to the guest. > > Any clue *why* the rom doesn't run? No idea, we didn't look into that -- this was just a one afternoon hacking session. thanks, Lennert