From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tb8up-0003SF-E3 for qemu-devel@nongnu.org; Wed, 21 Nov 2012 06:56:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tb8ul-0000eV-1o for qemu-devel@nongnu.org; Wed, 21 Nov 2012 06:56:27 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:41384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tb8uk-0000e8-SP for qemu-devel@nongnu.org; Wed, 21 Nov 2012 06:56:22 -0500 Received: by mail-pa0-f45.google.com with SMTP id bg2so2439792pad.4 for ; Wed, 21 Nov 2012 03:56:21 -0800 (PST) Message-ID: <50ACC161.5060402@gmail.com> Date: Wed, 21 Nov 2012 19:56:17 +0800 From: ching MIME-Version: 1.0 References: <50AB6DDC.8030200@gmail.com> <1353425269.2234.58.camel@bling.home> In-Reply-To: <1353425269.2234.58.camel@bling.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] VFIO VGA passthrough List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: qemu-devel@nongnu.org On 11/20/2012 11:27 PM, Alex Williamson wrote: > > Getting VGA to work in a guest is mostly black magic and luck at this > point. The warning you're getting isn't preventing anything. We use > device reset to try to clear the state of the hardware between runs. If > it's not available we can potentially leak data through the device and > may see issues with reproducibility since we can't return the device to > a known state. > > The assigned VGA device should not be used for anything on the host, > which it seems like you've taken care of. The host shouldn't even have > a blinking cursor on the display. > > It's been reported that "-cpu host" helps, but that's possibly very > similar to what you specify below. When I tested secondary VGA with an > ATI card I used "-vga std" and I made the devices appear as > multifunction in the guest, ex: > > -device vfio-pci,host=1:00.0,multifunction=on,addr=4.0 \ > -device vfio-pci,host=1:00.1,addr=4.1 > > I also first booted without the AMD Catalyst driver installed. The > assigned devices are unused, but the guest still boots. Then installed > the Catalyst driver, after which rebooting causes the std VGA to go > blank after an initial startup screen and Windows uses the assigned > device exclusively. Good luck, there's obviously still work to do in > this space. Thanks, > > Alex > > > > i am new in pci passthrough has a few more question: 1. is your vga card a PCI Express card? 2. there is a pci bridge in the same iommu group, do i need to pass to the guest? 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) 3. do i need to dump the vga bios and pass it to guest? Thanks in advance ching