From: "Teo En Ming (Zhang Enming)" Subject: RE: nVidia Geforce 8400 GS PCI Express x16 VGA Pass Through to Windows XP Home 32-bit HVM Virtual Machine with Intel Desktop Board DQ45CB Date: Wed, 26 Aug 2009 17:21:44 +0800 Message-ID: <2DABCD389F9741218B632A562A667FD3@ASOITIS16> References: <715D42877B251141A38726ABF5CABF2C054B533109@pdsmsx503.ccr.corp.intel.com> Reply-To: enming.teo@asiasoftsea.net Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <715D42877B251141A38726ABF5CABF2C054B533109@pdsmsx503.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: weidong.han@intel.com, djmagee@mageenet.net Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Weidong, Could you share with us the hack codes for making Geforce 8400 GS work = and also how to let the Windows HVM guest boot up using the real BIOS of = Geforce 8400 GS instead of an emulated VGA BIOS? Thank you. Regards, =20 Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering)=20 Technical Support Engineer=20 Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza=20 Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Han, Weidong Sent: Wednesday, August 26, 2009 4:27 PM To: 'djmagee@mageenet.net'; 'enming.teo@asiasoftsea.net' Cc: 'xen-devel@lists.xensource.com' Subject: RE: [Xen-devel] nVidia Geforce 8400 GS PCI Express x16 VGAPassThroughto Windows XP Home 32-bit HVM Virtual Machine with IntelDesktop BoardDQ45CB I suppose you just use the patch posted in mailing list before. nVidia Geforce 8400 passthrough needs extra hacks. We can make it work in our experiments with 1:1 map of its MMIO BARs.=20 We are working on gfx passthrough on latest xen-unstable. Firstly, we = want to cook a simple patch including generic changes to support passthrough = of virtualization friendly gfx cards, such as Nvidia FX3800. This patch is basically done. Then, we will add some hacks for more gfx cards = passthrough, such as iGFX and some Nvidia and ATI cards. Regards, Weidong djmagee@mageenet.net wrote: > As I've pointed out on this list before, there are not enough PCIe > lanes on the DQ45CB to drive both the internal graphics adapter and > the add-on adapter at the same time. I believe the onboard one may > be able to operate in some sort of VGA only mode when there is a card > installed and used as the primary adapter. =20 >=20 > I have a similar setup, using the same motherboard, and an ATI 4770.=20 > I used the VGA passthrough patches from an earlier posting (I saw you > followed the same set of instructions), with limited success. I've > been using 3.4-testing, and 'xenified' 2.6.29.6 kernel. I made > modifications to the dom0 portion of the patches so they would apply > to my xenified 2.6.29 kernel. These patches include code that will > copy the VGA bios to the guest bios instead of using the emulated vga > bios. I've had very little success, however. I have only tried > passing through the ATI adapter. In all instances, the guest bios > messages appear on my monitor, so this much works. In some cases, > the guest essentially stops there; xm list show's about 2sec CPU > usage and nothing ever happens after that point. In other cases, the > guest (win xp/vista/7, as well as KNOPPIX 5.3.1 DVD) will boot all > the way, but in very low res/color mode, and cannot properly > initialize the video device. Once or twice, it actually did > recognize the device and had a reasonable default color/resolution > combination. In all cases where the guest actually boots, the system > eventually freezes. In some cases, I get endless streams of iommu > page faults. =20 >=20 > I have 8GB ram installed. In all cases I've limited dom0 memory to > 2GB. In all cases, my guest has been assigned 2GB of memory.=20 >=20 > I have a dual core e6600. I've tried allowing dom0 to use both > cores, offlining one core (using xend dom0_vcpu setting) after boot, > and restricting dom0 to only one core using the dom0_max_vcpus xen > hypervisor parameter. In all of these cases I've tried both one and > two vcpus for the guest. My success with VGA passthrough seems > somewhat random and no combination of cpu assignment seems to have > any effect. =20 >=20 > I have not tried with the 2.6.18-xen kernel as I haven't gotten it to > boot on my hardware; it can never find my volume group, even if I > create a initrd with all of the required modules, or build those > drivers into the kernel. I have not spent more than maybe a half an > hour on this problem; I suspect it may have something to do with the > version of mkinitrd I'm using (from Fedora 9 x64). =20 >=20 > If anyone else has any insight or similar experience I'd also love to > hear it.=20 >=20 > Doug Magee > djmagee@mageenet.com >=20 > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mr. Teo > En Ming (Zhang Enming) =20 > Sent: Tuesday, August 25, 2009 11:57 AM > To: enming.teo@asiasoftsea.net > Cc: xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] nVidia Geforce 8400 GS PCI Express x16 VGA > PassThroughto Windows XP Home 32-bit HVM Virtual Machine with Intel > Desktop BoardDQ45CB =20 >=20 > I have uninstalled Xen 3.4.1 and installed Xen 3.5-unstable as > suggested=20 > by Weidong. >=20 >=20 > On 08/25/2009 11:47 PM, Mr. Teo En Ming (Zhang Enming) wrote: >> Dear All, >>=20 >> I have managed to do PCI-e VGA passthrough with the open source Xen >> but the work is still in progress because although Windows XP guest >> can see the REAL PCI-e x16 graphics card instead of an emulated >> graphics driver, it cannot be initialized yet. >>=20 >> Thanks to Intel Engineer Han Weidong, Pasi K=E4rkk=E4inen, Boris >> Derzhavets, Marc, Caz Yokoyama, and others who have helped me and >> shared their knowledge with me along the way. >>=20 >> System Configuration: >>=20 >> Intel Desktop Board DQ45CB with BIOS upgraded to 0093 >> Onboard Intel GMA 4500 Graphics (IGD) >> nVidia Geforce 8400 GS PCI Express x16 Graphics Card >>=20 >> Fedora 11 Linux 64-bit Xen paravirt operations Domain 0 Host >> Operating System Xen 3.5 Unstable/Development Type 1 Hypervisor >> Jeremy Fitzhardinge's Xen paravirt-ops domain 0 Kernel 2.6.31-rc6 >> Primary Video Adapter in BIOS: IGD >>=20 >> Please see the screenshots and my blog at the link here: >>=20 >> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/08/nvidia-geforce-8= 400 -gs-pci-express-x16.html >>=20 >>=20 >=20 >=20 >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com=20 Version: 8.5.392 / Virus Database: 270.13.65/2324 - Release Date: = 08/25/09 18:07:00 No virus found in this outgoing message. Checked by AVG - www.avg.com=20 Version: 8.5.392 / Virus Database: 270.13.65/2324 - Release Date: = 08/25/09 18:07:00