From: Lennert Buytenhek Subject: Re: graphics card pci passthrough success report Date: Thu, 13 Sep 2012 19:22:02 +0200 Message-ID: <20120913172202.GL778@wantstofly.org> References: <20120912155042.GD778@wantstofly.org> <50517534.9030304@redhat.com> <20120913094027.GI778@wantstofly.org> <1347555907.24938.286.camel@ul30vt.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Gerd Hoffmann , kvm@vger.kernel.org, Dirk Teurlings To: Alex Williamson Return-path: Received: from fw.wantstofly.org ([80.101.37.227]:62117 "EHLO mail.wantstofly.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932279Ab2IMRWH (ORCPT ); Thu, 13 Sep 2012 13:22:07 -0400 Content-Disposition: inline In-Reply-To: <1347555907.24938.286.camel@ul30vt.home> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Sep 13, 2012 at 11:05:07AM -0600, Alex Williamson wrote: > > > > - 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 for the report. Spawned by your success, I tested a Radeon HD > 5450 using VFIO based device assignment. I can get it to work on > Windows XP, with no changes (from the version I'll post soon), Yay! > but Win7 dies (still need to play around more with your suggestions > of cpu type). ACK. That's a nasty one, don't ask how we found that out... Note that the bluescreen I described when the cpu type is wrong only actually happened for us if the AMD drivers were installed in the VM -- maybe you can try without AMD drivers to see if that makes it go away. If you still have a bluescreen without the AMD drivers installed, it's probably a different issue. > For skipping the option rom, is it sufficient to not expose it > (rombar=0) or does the guest OS driver need it as well? I don't actually know. Something to try out when we get round to testing this again, I suppose.. cheers, Lennert