From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Teo En Ming (Zhang Enming)" Subject: RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem Date: Tue, 25 Aug 2009 11:51:15 +0800 Message-ID: <50CACD729FC441FDBFB3BE53723411AE@ASOITIS16> References: <715D42877B251141A38726ABF5CABF2C054B32ED55@pdsmsx503.ccr.corp.intel.com> Reply-To: enming.teo@asiasoftsea.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1738071781==" Return-path: In-Reply-To: <715D42877B251141A38726ABF5CABF2C054B32ED55@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 Cc: 'Alan, xen-devel@lists.xensource.com, 'Cox'' List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1738071781== Content-Type: multipart/alternative; boundary="----=_NextPart_000_016F_01CA257A.5984E580" This is a multi-part message in MIME format. ------=_NextPart_000_016F_01CA257A.5984E580 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Hi Weidong, I have taken a look at the patch code you have attached. The date is 6 July 2009, which is one month older than the Xen 3.4.1 testing code that I am currently using. Is this pci-stub patch already in Xen 3.4.1 testing changeset of 6 August 2009? If it is not merged into Xen 3.4.1 6 Aug 2009 changeset, then I would have to patch my current Xen code using this patch file. Regards, 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 _____ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Han, Weidong Sent: Tuesday, August 25, 2009 11:28 AM To: 'enming.teo@asiasoftsea.net' Cc: 'Alan; 'xen-devel@lists.xensource.com'; Cox' Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 SerialConsoleProblem I attached it for you. Regards, Weidong _____ From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 11:07 To: Han, Weidong Cc: xen-devel@lists.xensource.com; 'Alan Cox' Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 SerialConsoleProblem Dear Weidong, I am using Xen 3.4.1 testing with pv-ops dom 0 kernels 2.6.30-rc3 or 2.6.31-rc6. May I know where I can download changeset 19893 source code and patch Xen 3. 4.1 testing with this changeset? Thank you. Regards, 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 _____ From: Han, Weidong [mailto:weidong.han@intel.com] Sent: Tuesday, August 25, 2009 11:03 AM To: 'enming.teo@asiasoftsea.net' Cc: 'xen-devel@lists.xensource.com'; 'Alan Cox' Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 SerialConsoleProblem Xen 3.4.1 doesn't include the changeset 19893, so it cannot work for you. Basically, I use 2.6.18 dom0 with Xen 3.4, and use pv-ops dom 0 with xen-unstable. Anyway, you can port the c/s 19893 to your code, and try again. Regards, Weidong _____ From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 10:50 To: enming.teo@asiasoftsea.net; Han, Weidong Cc: xen-devel@lists.xensource.com; 'Alan Cox' Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 Serial ConsoleProblem Hi Weidong, I can confirm that I am using Xen 3.4.1 with changeset of 6 August 2009. However, I can't remember the changeset number. I need to get home after work to find out. Regards, 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 _____ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming) Sent: Tuesday, August 25, 2009 10:41 AM To: weidong.han@intel.com Cc: xen-devel@lists.xensource.com; 'Alan Cox' Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 Serial ConsoleProblem Hi Weidong, I believe I am using Xen 3.4.1 with changeset of 6 August 2009. I can't remember the changeset number. I will check and get back to you later. Thank you. Regards, 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 _____ From: Han, Weidong [mailto:weidong.han@intel.com] Sent: Tuesday, August 25, 2009 10:04 AM To: 'enming.teo@asiasoftsea.net' Cc: 'pasik@iki.fi'; 'xen-devel@lists.xensource.com'; 'Alan Cox' Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 Serial ConsoleProblem What version of Xen are you using? Make sure after c/s 19893, which enables pci-stub to hide devices for assignment. It works fine for me. > When I tried to "cat /sys/bus/pci/drivers/pci-stub/new_id", it says permission denied It doesn't matter. It is the same to pciback. You will get the same message when you do "cat /sys/bus/pci/drivers/pciback/new_id". After use commands to hide 01:00.0 with pci-stub, can you see it use command 'ls /sys/bus/pci/drivers/pci-stub/'? Regards, Weidong _____ From: Mr. Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 3:33 To: enming.teo@asiasoftsea.net Cc: pasik@iki.fi; xen-devel@lists.xensource.com; Alan Cox; Han, Weidong Subject: Re: [Xen-devel] Xen Paravirt Operations Domain 0 Serial Console Problem 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. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.65/2322 - Release Date: 08/23/09 18:03:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.65/2322 - Release Date: 08/24/09 12:55:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.65/2322 - Release Date: 08/24/09 12:55:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.65/2322 - Release Date: 08/24/09 12:55:00 ------=_NextPart_000_016F_01CA257A.5984E580 Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable
Hi Weidong,
 
I have taken a look at the patch code you = have=20 attached. The date is 6 July 2009, which is one month older than the Xen = 3.4.1=20 testing code that I am currently using.
 
Is this pci-stub patch already in Xen 3.4.1 = testing=20 changeset of 6 August 2009? If it is not merged into Xen 3.4.1 6 Aug = 2009=20 changeset, then I would have to patch my current Xen code using this = patch=20 file.
 
Regards,
 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)=20 BEng(Hons)(Mechanical Engineering)
Technical Support Engineer
Information Technology Department
Asiasoft Online Pte = Ltd
Tampines=20 Central 1 #04-01 Tampines Plaza
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN:=20 teoenming@hotmail.com
 


From: = xen-devel-bounces@lists.xensource.com=20 [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Han,=20 Weidong
Sent: Tuesday, August 25, 2009 11:28 AM
To:=20 'enming.teo@asiasoftsea.net'
Cc: 'Alan;=20 'xen-devel@lists.xensource.com'; Cox'
Subject: RE: [Xen-devel] = Xen=20 Paravirt Operations Domain 0 SerialConsoleProblem

I attached it for you.
 
Regards,
Weidong

From: Teo En Ming (Zhang Enming)=20 [mailto:enming.teo@asiasoftsea.net]
Sent: = 2009=1B$BG/=1B(B8=1B$B7n=1B(B25=1B$BF|=1B(B=20 11:07
To: Han, Weidong
Cc: = xen-devel@lists.xensource.com;=20 'Alan Cox'
Subject: RE: [Xen-devel] Xen Paravirt Operations = Domain 0=20 SerialConsoleProblem

Dear Weidong,
 
I am using Xen 3.4.1 testing with pv-ops dom 0 = kernels=20 2.6.30-rc3 or 2.6.31-rc6.
 
May I know where I can download changeset 19893 = source code=20 and patch Xen 3.4.1 testing with this changeset?
 
Thank you.
 
Regards,
 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)=20 BEng(Hons)(Mechanical Engineering)
Technical Support Engineer
Information Technology Department
Asiasoft Online Pte = Ltd
Tampines=20 Central 1 #04-01 Tampines Plaza
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN:=20 teoenming@hotmail.com
 


From: Han, Weidong=20 [mailto:weidong.han@intel.com]
Sent: Tuesday, August 25, 2009 = 11:03=20 AM
To: 'enming.teo@asiasoftsea.net'
Cc:=20 'xen-devel@lists.xensource.com'; 'Alan Cox'
Subject: RE: = [Xen-devel]=20 Xen Paravirt Operations Domain 0 = SerialConsoleProblem

Xen 3.4.1 doesn't include the changeset 19893, = so it cannot=20 work for you. Basically, I use 2.6.18 dom0 with Xen 3.4, and use pv-ops = dom 0=20 with xen-unstable. Anyway, you can port the c/s 19893 to your code, = and try=20 again.
 
Regards,
Weidong


From: Teo En Ming (Zhang Enming)=20 [mailto:enming.teo@asiasoftsea.net]
Sent: = 2009=1B$BG/=1B(B8=1B$B7n=1B(B25=1B$BF|=1B(B=20 10:50
To: enming.teo@asiasoftsea.net; Han, = Weidong
Cc:=20 xen-devel@lists.xensource.com; 'Alan Cox'
Subject: RE: = [Xen-devel] Xen=20 Paravirt Operations Domain 0 Serial ConsoleProblem

Hi Weidong,
 
I can confirm that I am using Xen 3.4.1 with = changeset of 6=20 August 2009. However, I can't remember the changeset number. I need = to get=20 home after work to find out.
 
Regards,
 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)=20 BEng(Hons)(Mechanical Engineering)
Technical Support Engineer
Information Technology Department
Asiasoft Online Pte = Ltd
Tampines=20 Central 1 #04-01 Tampines Plaza
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN:=20 teoenming@hotmail.com
 


From: = xen-devel-bounces@lists.xensource.com=20 [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Teo = En Ming=20 (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 = AM
To:=20 weidong.han@intel.com
Cc: xen-devel@lists.xensource.com; 'Alan = Cox'
Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 = Serial=20 ConsoleProblem

Hi Weidong,
 
I believe I am using Xen 3.4.1 with changeset = of 6 August=20 2009. I can't remember the changeset number. I will check and get back = to you=20 later.
 
Thank you.
 
Regards,
 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)=20 BEng(Hons)(Mechanical Engineering)
Technical Support Engineer
Information Technology Department
Asiasoft Online Pte = Ltd
Tampines=20 Central 1 #04-01 Tampines Plaza
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN:=20 teoenming@hotmail.com
 


From: Han, Weidong=20 [mailto:weidong.han@intel.com]
Sent: Tuesday, August 25, 2009 = 10:04=20 AM
To: 'enming.teo@asiasoftsea.net'
Cc: = 'pasik@iki.fi';=20 'xen-devel@lists.xensource.com'; 'Alan Cox'
Subject: RE: = [Xen-devel]=20 Xen Paravirt Operations Domain 0 Serial = ConsoleProblem

What version of Xen are you using? Make sure = after c/s=20 19893, which enables pci-stub to hide devices for=20 assignment.
 
It works fine for me.
 
 > = When I tried=20 to "cat /sys/bus/pci/drivers/pci-stub/new_id", it says permission=20 denied
It doesn't matter. It = is the same=20 to pciback. You will get the same message when you do "cat=20 /sys/bus/pci/drivers/pciback/new_id".
 
After use commands to hide 01:00.0 with = pci-stub, can=20 you see it use command 'ls = /sys/bus/pci/drivers/pci-stub/'?
 
 
Regards,
Weidong
 


From: Mr. Teo En Ming (Zhang Enming) = [mailto:enming.teo@asiasoftsea.net]
Sent: = 2009=1B$BG/=1B(B8=1B$B7n=1B(B25=1B$BF|=1B(B=20 3:33
To: enming.teo@asiasoftsea.net
Cc: = pasik@iki.fi;=20 xen-devel@lists.xensource.com; Alan Cox; Han, Weidong
Subject: = Re:=20 [Xen-devel] Xen Paravirt Operations Domain 0 Serial Console=20 Problem

I find that following the instructions here at Xen Wiki = VtdHowTo=20 don't work:

Binding Devices = to=20 pci-stub

If using pv-ops dom0, also can use pci-stub to hide = devices for=20 assignment (example PCI device 01:00.0) * lspci -n * locate the entry = for device=20 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 =3D [ '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=3D1 in grub.

Hope the Intel folks can assist in this matter.


--=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


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

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


No virus found in this incoming = message.
Checked=20 by AVG - www.avg.com
Version: 8.5.392 / Virus Database: = 270.13.65/2322 -=20 Release Date: 08/23/09 18:03:00

No virus found in this incoming = message.
Checked=20 by AVG - www.avg.com
Version: 8.5.392 / Virus Database: = 270.13.65/2322 -=20 Release Date: 08/24/09 12:55:00

No virus found in this incoming = message.
Checked=20 by AVG - www.avg.com
Version: 8.5.392 / Virus Database: = 270.13.65/2322 -=20 Release Date: 08/24/09 12:55:00

No virus found in this incoming = message.
Checked=20 by AVG - www.avg.com
Version: 8.5.392 / Virus Database: = 270.13.65/2322 -=20 Release Date: 08/24/09 12:55:00

------=_NextPart_000_016F_01CA257A.5984E580-- --===============1738071781== 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 --===============1738071781==--