From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mr. Teo En Ming (Zhang Enming)" Subject: Re: Xen Paravirt Operations Domain 0 Serial Console Problem Date: Tue, 25 Aug 2009 08:49:49 +0800 Message-ID: <4A93352D.8000209@asiasoftsea.net> References: <4A92BD31.2040406@asiasoftsea.net> <20090824164416.GR19938@edu.joroinen.fi> <4A92CF3E.8010008@asiasoftsea.net> <20090824175747.GT19938@edu.joroinen.fi> <4A92D6B1.5000704@asiasoftsea.net> <4A92D8BC.8030706@asiasoftsea.net> <20090824194552.75d3c5db@lxorguk.ukuu.org.uk> <20090824191352.GW19938@edu.joroinen.fi> <4A92E8C4.7060000@asiasoftsea.net> <4A92EAF9.2040900@asiasoftsea.net> <4A92EB6E.7090404@asiasoftsea.net> Reply-To: enming.teo@asiasoftsea.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1420951976==" Return-path: In-Reply-To: <4A92EB6E.7090404@asiasoftsea.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: enming.teo@asiasoftsea.net Cc: xen-devel@lists.xensource.com, weidong.han@intel.com, Alan Cox List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1420951976== Content-Type: multipart/alternative; boundary="------------070308080304050201070306" This is a multi-part message in MIME format. --------------070308080304050201070306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi When I boot up the computer using onboard Intel GMA 4500 as the primary VGA controller, I could still see the NVIDIA Geforce 8400 GS PCI Express x16 card in lspci. 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS (rev a1) -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 03:35 AM, Mr. Teo En Ming (Zhang Enming) wrote: > I have already compiled CONFIG_PCI_STUB=y statically into the kernel. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) > Technical Support Engineer > Information Technology Department > Asiasoft Online Pte Ltd > Tampines Central 1 #04-01 Tampines Plaza > Singapore 529541 > Republic of Singapore > Mobile: +65-9648-9798 > MSN:teoenming@hotmail.com > Alma Maters: Singapore Polytechnic, National University of Singapore > > > On 08/25/2009 03:33 AM, Mr. Teo En Ming (Zhang Enming) wrote: >> I find that following the instructions here at Xen Wiki VtdHowTo >> don't work: >> >> >> Binding Devices to pci-stub >> >> If using pv-ops dom0, also can use pci-stub to hide devices for >> assignment (example PCI device 01:00.0) * lspci -n * locate the entry >> for device 01:00.0 and note down the vendor & device ID 8086:10b9 . >> >> ... >> 01:00.0 0200: 8086:10b9 (rev 06) >> ... >> >> * then use following commands to hide it: . >> >> echo "8086 10b9"> /sys/bus/pci/drivers/pci-stub/new_id >> echo "0000:01:00.0"> /sys/bus/pci/devices/0000:01:00.0/driver/unbind >> echo "0000:01:00.0"> /sys/bus/pci/drivers/pci-stub/bind >> >> When I tried to "cat /sys/bus/pci/drivers/pci-stub/new_id", it says permission denied. >> >> My NVIDIA graphics card is using BDF 01:00.0. When I change directory to >> /sys/bus/pci/devices/0000:01:00.0/, sub-directory driver is not found at all. >> >> Then when I put in pci = [ '01:00.0' ] for the Windows XP Home HVM config, it complains about pciback but I am using paravirt-ops dom 0 kernel. >> >> And when I tried the "xm pci-list-assignable-devices", nothing shows up. >> >> I have already specified iommu=1 in grub. >> >> Hope the Intel folks can assist in this matter. >> >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) >> Technical Support Engineer >> Information Technology Department >> Asiasoft Online Pte Ltd >> Tampines Central 1 #04-01 Tampines Plaza >> Singapore 529541 >> Republic of Singapore >> Mobile: +65-9648-9798 >> MSN:teoenming@hotmail.com >> Alma Maters: Singapore Polytechnic, National University of Singapore >> >> >> On 08/25/2009 03:23 AM, Mr. Teo En Ming (Zhang Enming) wrote: >>> I have both the onboard Intel GMA 4500 and the PCI Express x16 >>> NVIDIA Geforce 8400 GS. >>> >>> Ng Beng Heng at the University of Michigan has done it. He's using >>> the same Intel DQ45CB as me. >>> >> > --------------070308080304050201070306 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi

When I boot up the computer using onboard Intel GMA 4500 as the primary VGA controller, I could still see the NVIDIA Geforce 8400 GS PCI Express x16 card in lspci.

00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS (rev a1)


-- 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) 
Technical Support Engineer 
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza 
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of Singapore


On 08/25/2009 03:35 AM, Mr. Teo En Ming (Zhang Enming) wrote:
I have already compiled CONFIG_PCI_STUB=y statically into the kernel.

-- 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) 
Technical Support Engineer 
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza 
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of Singapore


On 08/25/2009 03:33 AM, Mr. Teo En Ming (Zhang Enming) wrote:
I find that following the instructions here at Xen Wiki VtdHowTo don't work:

Binding Devices to pci-stub

If using pv-ops dom0, also can use pci-stub to hide devices for assignment (example PCI device 01:00.0) * lspci -n * locate the entry for device 01:00.0 and note down the vendor & device ID 8086:10b9 .

...
01:00.0 0200: 8086:10b9 (rev 06)
...

* then use following commands to hide it: .

echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:01:00.0" > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
echo "0000:01:00.0" > /sys/bus/pci/drivers/pci-stub/bind

When I tried to "cat /sys/bus/pci/drivers/pci-stub/new_id", it says permission denied.

My NVIDIA graphics card is using BDF 01:00.0. When I change directory to 
/sys/bus/pci/devices/0000:01:00.0/, sub-directory driver is not found at all.

Then when I put in pci = [ '01:00.0' ] for the Windows XP Home HVM config, it complains about pciback but I am using paravirt-ops dom 0 kernel.

And when I tried the "xm pci-list-assignable-devices", nothing shows up.

I have already specified iommu=1 in grub.

Hope the Intel folks can assist in this matter.


-- 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) 
Technical Support Engineer 
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza 
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of Singapore


On 08/25/2009 03:23 AM, Mr. Teo En Ming (Zhang Enming) wrote:
I have both the onboard Intel GMA 4500 and the PCI Express x16 NVIDIA Geforce 8400 GS.

Ng Beng Heng at the University of Michigan has done it. He's using the same Intel DQ45CB as me.





--------------070308080304050201070306-- --===============1420951976== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1420951976==--