* Xen Paravirt Operations Domain 0 Serial Console Problem
@ 2009-08-24 16:17 Mr. Teo En Ming (Zhang Enming)
2009-08-24 16:21 ` Mr. Teo En Ming (Zhang Enming)
2009-08-24 16:44 ` Pasi Kärkkäinen
0 siblings, 2 replies; 34+ messages in thread
From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 16:17 UTC (permalink / raw)
To: xen-devel
Hi All,
I have tried to configure serial console for Xen hypervisor, dom 0
kernel and Linux login but it does not seem to be working.
Here is my grub configuration for serial console:
title Fedora (2.6.31-rc6-enming.teo) Serial Console
root (hd0,0)
kernel /xen.gz iommu=1 com1=115200,8n1 console=com1
module /vmlinuz-2.6.31-rc6-enming.teo ro
root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200
module /initrd-2.6.31-rc6-enming.teo.img
Is the above configuration correct? On my Intel Desktop Board DQ45CB, I
have a COM1 header on the PCB and I have connected an external serial
port to this header and also enabled COM1 in the BIOS.
After selecting the above entry in GRUB still on VGA, a cursor at the
top left corner of the monitor shows up, which means Xen and Dom 0
kernel are booting up on the serial console and not on VGA.
However, after some time, a login prompt finally displays on my VGA
monitor! Isn't it NOT supposed to show up on VGA and should show up in
serial console instead?
All the while I get nothing displayed on the Windows laptop connected to
the serial console of the Xen machine. I am using Windows Hyper Terminal
with a null modem cable and a USB-to-Serial converter cable.
After seeing nothing on Hyper Terminal, I go to the VGA console (tty1)
and keyboard and pressed CTRL-ALT-DEL to reboot the Xen machine.
Then finally I see this screenshot:
http://2.bp.blogspot.com/_zzjv8MCM2sk/SpK6D_eSIfI/AAAAAAAAATs/NdSPpfddTvQ/s1600-h/xen+serial+console.JPG
After that, I select rebooting using serial console but I still see
nothing on Hyper Terminal.
May I know what's happening and what's wrong with serial console?
Thank you.
--
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
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 16:17 Xen Paravirt Operations Domain 0 Serial Console Problem Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 16:21 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 16:44 ` Pasi Kärkkäinen 1 sibling, 0 replies; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 16:21 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel Hi, The main purpose of doing this is that I want to boot using serial console and free up the VGA card for direct access by the Windows HVM guest using VT-d IOMMU. But it seems I cannot get serial console working. Please advise. Thank you. -- 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 12:17 AM, Mr. Teo En Ming (Zhang Enming) wrote: > Hi All, > > I have tried to configure serial console for Xen hypervisor, dom 0 > kernel and Linux login but it does not seem to be working. > > Here is my grub configuration for serial console: > > title Fedora (2.6.31-rc6-enming.teo) Serial Console > root (hd0,0) > kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 > module /vmlinuz-2.6.31-rc6-enming.teo ro > root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 > module /initrd-2.6.31-rc6-enming.teo.img > > Is the above configuration correct? On my Intel Desktop Board DQ45CB, > I have a COM1 header on the PCB and I have connected an external > serial port to this header and also enabled COM1 in the BIOS. > > After selecting the above entry in GRUB still on VGA, a cursor at the > top left corner of the monitor shows up, which means Xen and Dom 0 > kernel are booting up on the serial console and not on VGA. > > However, after some time, a login prompt finally displays on my VGA > monitor! Isn't it NOT supposed to show up on VGA and should show up in > serial console instead? > > All the while I get nothing displayed on the Windows laptop connected > to the serial console of the Xen machine. I am using Windows Hyper > Terminal with a null modem cable and a USB-to-Serial converter cable. > > After seeing nothing on Hyper Terminal, I go to the VGA console (tty1) > and keyboard and pressed CTRL-ALT-DEL to reboot the Xen machine. > > Then finally I see this screenshot: > > http://2.bp.blogspot.com/_zzjv8MCM2sk/SpK6D_eSIfI/AAAAAAAAATs/NdSPpfddTvQ/s1600-h/xen+serial+console.JPG > > > After that, I select rebooting using serial console but I still see > nothing on Hyper Terminal. > > May I know what's happening and what's wrong with serial console? > > Thank you. > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 16:17 Xen Paravirt Operations Domain 0 Serial Console Problem Mr. Teo En Ming (Zhang Enming) 2009-08-24 16:21 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 16:44 ` Pasi Kärkkäinen 2009-08-24 17:34 ` Mr. Teo En Ming (Zhang Enming) 1 sibling, 1 reply; 34+ messages in thread From: Pasi Kärkkäinen @ 2009-08-24 16:44 UTC (permalink / raw) To: Mr. Teo En Ming (Zhang Enming); +Cc: xen-devel On Tue, Aug 25, 2009 at 12:17:53AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: > Hi All, > > I have tried to configure serial console for Xen hypervisor, dom 0 > kernel and Linux login but it does not seem to be working. > > Here is my grub configuration for serial console: > > title Fedora (2.6.31-rc6-enming.teo) Serial Console > root (hd0,0) > kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 > module /vmlinuz-2.6.31-rc6-enming.teo ro > root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 > module /initrd-2.6.31-rc6-enming.teo.img > http://wiki.xensource.com/xenwiki/XenParavirtOps paste from that page: Working example grub.conf with serial console output: title pv_ops dom0-test (2.6.29-rc7-tip) with serial console root (hd0,0) kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all com1=19200,8n1 console=com1 module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 console=hvc0 earlyprintk=xen module /initrd-2.6.29-rc7-tip.img > Is the above configuration correct? On my Intel Desktop Board DQ45CB, I > have a COM1 header on the PCB and I have connected an external serial > port to this header and also enabled COM1 in the BIOS. > > After selecting the above entry in GRUB still on VGA, a cursor at the > top left corner of the monitor shows up, which means Xen and Dom 0 > kernel are booting up on the serial console and not on VGA. > > However, after some time, a login prompt finally displays on my VGA > monitor! Isn't it NOT supposed to show up on VGA and should show up in > serial console instead? > You also need to have the gettys configured properly. -- Pasi ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 16:44 ` Pasi Kärkkäinen @ 2009-08-24 17:34 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 17:37 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 17:57 ` Pasi Kärkkäinen 0 siblings, 2 replies; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 17:34 UTC (permalink / raw) To: pasik; +Cc: xen-devel Dear Pasi, Thanks for your help! It works! I wonder why this didn't work: title Fedora (2.6.31-rc6-enming.teo) Serial Console root (hd0,0) kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 module /vmlinuz-2.6.31-rc6-enming.teo ro root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 module /initrd-2.6.31-rc6-enming.teo.img And this worked: title pv_ops dom0-test (2.6.29-rc7-tip) with serial console root (hd0,0) kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all com1=19200,8n1 console=com1 module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 console=hvc0 earlyprintk=xen module /initrd-2.6.29-rc7-tip.img Anyway, I still got a tty1 output! I thought that after using serial console, it is not supposed to output to a monitor anymore? As a result of this, I still can't hide the VGA card from dom 0 and pass it through to the Windows Dom U. Any ideas? -- 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 12:44 AM, Pasi Kärkkäinen wrote: > On Tue, Aug 25, 2009 at 12:17:53AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: > >> Hi All, >> >> I have tried to configure serial console for Xen hypervisor, dom 0 >> kernel and Linux login but it does not seem to be working. >> >> Here is my grub configuration for serial console: >> >> title Fedora (2.6.31-rc6-enming.teo) Serial Console >> root (hd0,0) >> kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 >> module /vmlinuz-2.6.31-rc6-enming.teo ro >> root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 >> module /initrd-2.6.31-rc6-enming.teo.img >> >> > http://wiki.xensource.com/xenwiki/XenParavirtOps > > paste from that page: > > > Working example grub.conf with serial console output: > > title pv_ops dom0-test (2.6.29-rc7-tip) with serial console > root (hd0,0) > kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all com1=19200,8n1 console=com1 > module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 console=hvc0 earlyprintk=xen > module /initrd-2.6.29-rc7-tip.img > > > >> Is the above configuration correct? On my Intel Desktop Board DQ45CB, I >> have a COM1 header on the PCB and I have connected an external serial >> port to this header and also enabled COM1 in the BIOS. >> >> After selecting the above entry in GRUB still on VGA, a cursor at the >> top left corner of the monitor shows up, which means Xen and Dom 0 >> kernel are booting up on the serial console and not on VGA. >> >> However, after some time, a login prompt finally displays on my VGA >> monitor! Isn't it NOT supposed to show up on VGA and should show up in >> serial console instead? >> >> > You also need to have the gettys configured properly. > > -- Pasi > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 17:34 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 17:37 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 17:57 ` Pasi Kärkkäinen 1 sibling, 0 replies; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 17:37 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel See my latest screenshot here: http://3.bp.blogspot.com/_zzjv8MCM2sk/SpLOXl9IoWI/AAAAAAAAAT0/rdlMAFeQAKY/s1600-h/xen+serial+console+02.JPG -- 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 01:34 AM, Mr. Teo En Ming (Zhang Enming) wrote: > Dear Pasi, > > Thanks for your help! It works! > > I wonder why this didn't work: > > title Fedora (2.6.31-rc6-enming.teo) Serial Console > root (hd0,0) > kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 > module /vmlinuz-2.6.31-rc6-enming.teo ro > root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 > module /initrd-2.6.31-rc6-enming.teo.img > > And this worked: > > title pv_ops dom0-test (2.6.29-rc7-tip) with serial console > root (hd0,0) > kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all > com1=19200,8n1 console=com1 > module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 > console=hvc0 earlyprintk=xen > module /initrd-2.6.29-rc7-tip.img > > Anyway, I still got a tty1 output! I thought that after using serial > console, it is not supposed to output to a monitor anymore? > > As a result of this, I still can't hide the VGA card from dom 0 and > pass it through to the Windows Dom U. > > Any ideas? > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 17:34 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 17:37 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 17:57 ` Pasi Kärkkäinen 2009-08-24 17:59 ` Pasi Kärkkäinen 2009-08-24 18:06 ` Mr. Teo En Ming (Zhang Enming) 1 sibling, 2 replies; 34+ messages in thread From: Pasi Kärkkäinen @ 2009-08-24 17:57 UTC (permalink / raw) To: Mr. Teo En Ming (Zhang Enming); +Cc: xen-devel On Tue, Aug 25, 2009 at 01:34:54AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: > Dear Pasi, > > Thanks for your help! It works! > > I wonder why this didn't work: > > title Fedora (2.6.31-rc6-enming.teo) Serial Console > root (hd0,0) > kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 > module /vmlinuz-2.6.31-rc6-enming.teo ro > root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 > module /initrd-2.6.31-rc6-enming.teo.img > > And this worked: > > title pv_ops dom0-test (2.6.29-rc7-tip) with serial console > root (hd0,0) > kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all > com1=19200,8n1 console=com1 > module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 console=hvc0 > earlyprintk=xen > module /initrd-2.6.29-rc7-tip.img > > Anyway, I still got a tty1 output! I thought that after using serial > console, it is not supposed to output to a monitor anymore? > Well you still haven't disabled the VGA display adapter.. And most probably you still have gettys configured aswell. > As a result of this, I still can't hide the VGA card from dom 0 and pass it > through to the Windows Dom U. > See: http://wiki.xensource.com/xenwiki/VTdHowTo Especially the section "Binding at Boot-Time". -- Pasi > Any ideas? > > -- > 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 12:44 AM, Pasi Kärkkäinen wrote: > >On Tue, Aug 25, 2009 at 12:17:53AM +0800, Mr. Teo En Ming (Zhang Enming) > >wrote: > > > >>Hi All, > >> > >>I have tried to configure serial console for Xen hypervisor, dom 0 > >>kernel and Linux login but it does not seem to be working. > >> > >>Here is my grub configuration for serial console: > >> > >>title Fedora (2.6.31-rc6-enming.teo) Serial Console > >> root (hd0,0) > >> kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 > >> module /vmlinuz-2.6.31-rc6-enming.teo ro > >>root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 > >> module /initrd-2.6.31-rc6-enming.teo.img > >> > >> > >http://wiki.xensource.com/xenwiki/XenParavirtOps > > > >paste from that page: > > > > > >Working example grub.conf with serial console output: > > > >title pv_ops dom0-test (2.6.29-rc7-tip) with serial console > > root (hd0,0) > > kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all > > com1=19200,8n1 console=com1 > > module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 > > console=hvc0 earlyprintk=xen > > module /initrd-2.6.29-rc7-tip.img > > > > > > > >>Is the above configuration correct? On my Intel Desktop Board DQ45CB, I > >>have a COM1 header on the PCB and I have connected an external serial > >>port to this header and also enabled COM1 in the BIOS. > >> > >>After selecting the above entry in GRUB still on VGA, a cursor at the > >>top left corner of the monitor shows up, which means Xen and Dom 0 > >>kernel are booting up on the serial console and not on VGA. > >> > >>However, after some time, a login prompt finally displays on my VGA > >>monitor! Isn't it NOT supposed to show up on VGA and should show up in > >>serial console instead? > >> > >> > >You also need to have the gettys configured properly. > > > >-- Pasi > > > > > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 17:57 ` Pasi Kärkkäinen @ 2009-08-24 17:59 ` Pasi Kärkkäinen 2009-08-24 18:06 ` Mr. Teo En Ming (Zhang Enming) 1 sibling, 0 replies; 34+ messages in thread From: Pasi Kärkkäinen @ 2009-08-24 17:59 UTC (permalink / raw) To: Mr. Teo En Ming (Zhang Enming); +Cc: xen-devel On Mon, Aug 24, 2009 at 08:57:47PM +0300, Pasi Kärkkäinen wrote: > On Tue, Aug 25, 2009 at 01:34:54AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: > > Dear Pasi, > > > > Thanks for your help! It works! > > > > I wonder why this didn't work: > > > > title Fedora (2.6.31-rc6-enming.teo) Serial Console > > root (hd0,0) > > kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 > > module /vmlinuz-2.6.31-rc6-enming.teo ro > > root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 > > module /initrd-2.6.31-rc6-enming.teo.img > > > > And this worked: > > > > title pv_ops dom0-test (2.6.29-rc7-tip) with serial console > > root (hd0,0) > > kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all > > com1=19200,8n1 console=com1 > > module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 console=hvc0 > > earlyprintk=xen > > module /initrd-2.6.29-rc7-tip.img > > > > Anyway, I still got a tty1 output! I thought that after using serial > > console, it is not supposed to output to a monitor anymore? > > > > Well you still haven't disabled the VGA display adapter.. > And most probably you still have gettys configured aswell. > > > As a result of this, I still can't hide the VGA card from dom 0 and pass it > > through to the Windows Dom U. > > > > See: http://wiki.xensource.com/xenwiki/VTdHowTo > > Especially the section "Binding at Boot-Time". > Oh, I guess pv_ops dom0 still doesn't have pciback. I wonder how to do it then.. -- Pasi > > > Any ideas? > > > > -- > > 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 12:44 AM, Pasi Kärkkäinen wrote: > > >On Tue, Aug 25, 2009 at 12:17:53AM +0800, Mr. Teo En Ming (Zhang Enming) > > >wrote: > > > > > >>Hi All, > > >> > > >>I have tried to configure serial console for Xen hypervisor, dom 0 > > >>kernel and Linux login but it does not seem to be working. > > >> > > >>Here is my grub configuration for serial console: > > >> > > >>title Fedora (2.6.31-rc6-enming.teo) Serial Console > > >> root (hd0,0) > > >> kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 > > >> module /vmlinuz-2.6.31-rc6-enming.teo ro > > >>root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 > > >> module /initrd-2.6.31-rc6-enming.teo.img > > >> > > >> > > >http://wiki.xensource.com/xenwiki/XenParavirtOps > > > > > >paste from that page: > > > > > > > > >Working example grub.conf with serial console output: > > > > > >title pv_ops dom0-test (2.6.29-rc7-tip) with serial console > > > root (hd0,0) > > > kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all > > > com1=19200,8n1 console=com1 > > > module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 > > > console=hvc0 earlyprintk=xen > > > module /initrd-2.6.29-rc7-tip.img > > > > > > > > > > > >>Is the above configuration correct? On my Intel Desktop Board DQ45CB, I > > >>have a COM1 header on the PCB and I have connected an external serial > > >>port to this header and also enabled COM1 in the BIOS. > > >> > > >>After selecting the above entry in GRUB still on VGA, a cursor at the > > >>top left corner of the monitor shows up, which means Xen and Dom 0 > > >>kernel are booting up on the serial console and not on VGA. > > >> > > >>However, after some time, a login prompt finally displays on my VGA > > >>monitor! Isn't it NOT supposed to show up on VGA and should show up in > > >>serial console instead? > > >> > > >> > > >You also need to have the gettys configured properly. > > > > > >-- Pasi > > > > > > > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 17:57 ` Pasi Kärkkäinen 2009-08-24 17:59 ` Pasi Kärkkäinen @ 2009-08-24 18:06 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:15 ` Mr. Teo En Ming (Zhang Enming) 1 sibling, 1 reply; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:06 UTC (permalink / raw) To: pasik; +Cc: xen-devel Dear Pasi, How do I disable the VGA display adapter? Stop the vga card kernel module from loading? Add it to /etc/modprobe.d/blacklist.conf? Under pv-ops dom 0, there is no nouveau kernel module. And nvidia kernel module cannot work in pv-ops dom 0 too. How do I disable all the various tty from 1 to 7? I still need to leave ttyS0 enabled, as I need the serial console. As for hiding vga card from dom 0, I cannot use pciback as I am using pv-ops dom 0. I need to use pci-stub. -- 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 01:57 AM, Pasi Kärkkäinen wrote: > On Tue, Aug 25, 2009 at 01:34:54AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: > >> Dear Pasi, >> >> Thanks for your help! It works! >> >> I wonder why this didn't work: >> >> title Fedora (2.6.31-rc6-enming.teo) Serial Console >> root (hd0,0) >> kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 >> module /vmlinuz-2.6.31-rc6-enming.teo ro >> root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 >> module /initrd-2.6.31-rc6-enming.teo.img >> >> And this worked: >> >> title pv_ops dom0-test (2.6.29-rc7-tip) with serial console >> root (hd0,0) >> kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all >> com1=19200,8n1 console=com1 >> module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 console=hvc0 >> earlyprintk=xen >> module /initrd-2.6.29-rc7-tip.img >> >> Anyway, I still got a tty1 output! I thought that after using serial >> console, it is not supposed to output to a monitor anymore? >> >> > Well you still haven't disabled the VGA display adapter.. > And most probably you still have gettys configured aswell. > > >> As a result of this, I still can't hide the VGA card from dom 0 and pass it >> through to the Windows Dom U. >> >> > See: http://wiki.xensource.com/xenwiki/VTdHowTo > > Especially the section "Binding at Boot-Time". > > -- Pasi > > >> Any ideas? >> >> -- >> 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 12:44 AM, Pasi Kärkkäinen wrote: >> >>> On Tue, Aug 25, 2009 at 12:17:53AM +0800, Mr. Teo En Ming (Zhang Enming) >>> wrote: >>> >>> >>>> Hi All, >>>> >>>> I have tried to configure serial console for Xen hypervisor, dom 0 >>>> kernel and Linux login but it does not seem to be working. >>>> >>>> Here is my grub configuration for serial console: >>>> >>>> title Fedora (2.6.31-rc6-enming.teo) Serial Console >>>> root (hd0,0) >>>> kernel /xen.gz iommu=1 com1=115200,8n1 console=com1 >>>> module /vmlinuz-2.6.31-rc6-enming.teo ro >>>> root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200 >>>> module /initrd-2.6.31-rc6-enming.teo.img >>>> >>>> >>>> >>> http://wiki.xensource.com/xenwiki/XenParavirtOps >>> >>> paste from that page: >>> >>> >>> Working example grub.conf with serial console output: >>> >>> title pv_ops dom0-test (2.6.29-rc7-tip) with serial console >>> root (hd0,0) >>> kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all >>> com1=19200,8n1 console=com1 >>> module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 >>> console=hvc0 earlyprintk=xen >>> module /initrd-2.6.29-rc7-tip.img >>> >>> >>> >>> >>>> Is the above configuration correct? On my Intel Desktop Board DQ45CB, I >>>> have a COM1 header on the PCB and I have connected an external serial >>>> port to this header and also enabled COM1 in the BIOS. >>>> >>>> After selecting the above entry in GRUB still on VGA, a cursor at the >>>> top left corner of the monitor shows up, which means Xen and Dom 0 >>>> kernel are booting up on the serial console and not on VGA. >>>> >>>> However, after some time, a login prompt finally displays on my VGA >>>> monitor! Isn't it NOT supposed to show up on VGA and should show up in >>>> serial console instead? >>>> >>>> >>>> >>> You also need to have the gettys configured properly. >>> >>> -- Pasi >>> >>> >> >> >> ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 18:06 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:15 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:28 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:45 ` Alan Cox 0 siblings, 2 replies; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:15 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel Ah I know where to disable all the tty already It's no longer in /etc/inittab. Fedora 11 is using upstart. tty1 to tty6 are in /etc/event.d /etc/event.d/tty1 /etc/event.d/tty2 /etc/event.d/tty3 /etc/event.d/tty4 /etc/event.d/tty5 /etc/event.d/tty6 If I disable all the above tty, will I be able to hide vga card from dom 0 since it is no longer displaying to the monitor? Or do I still need to disable the vga card? How do I do that? Thank you. -- 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 02:06 AM, Mr. Teo En Ming (Zhang Enming) wrote: > Dear Pasi, > > How do I disable the VGA display adapter? Stop the vga card kernel > module from loading? Add it to /etc/modprobe.d/blacklist.conf? Under > pv-ops dom 0, there is no nouveau kernel module. And nvidia kernel > module cannot work in pv-ops dom 0 too. > > How do I disable all the various tty from 1 to 7? > > I still need to leave ttyS0 enabled, as I need the serial console. > > As for hiding vga card from dom 0, I cannot use pciback as I am using > pv-ops dom 0. I need to use pci-stub. > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 18:15 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:28 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:31 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:45 ` Alan Cox 1 sibling, 1 reply; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:28 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel Dear Pasi, I wonder how this guy Ng Beng Heng at the University of Michigan did it. http://article.gmane.org/gmane.comp.emulators.xen.devel/67132 -- 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 02:15 AM, Mr. Teo En Ming (Zhang Enming) wrote: > Ah I know where to disable all the tty already > > It's no longer in /etc/inittab. Fedora 11 is using upstart. > > tty1 to tty6 are in /etc/event.d > > /etc/event.d/tty1 > /etc/event.d/tty2 > /etc/event.d/tty3 > /etc/event.d/tty4 > /etc/event.d/tty5 > /etc/event.d/tty6 > > If I disable all the above tty, will I be able to hide vga card from > dom 0 since it is no longer displaying to the monitor? > > Or do I still need to disable the vga card? How do I do that? > > Thank you. > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 18:28 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:31 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:35 ` Mr. Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:31 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel http://article.gmane.org/gmane.comp.emulators.xen.devel/67243 -- 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 02:28 AM, Mr. Teo En Ming (Zhang Enming) wrote: > Dear Pasi, > > I wonder how this guy Ng Beng Heng at the University of Michigan did it. > > http://article.gmane.org/gmane.comp.emulators.xen.devel/67132 > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 18:31 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:35 ` Mr. Teo En Ming (Zhang Enming) 0 siblings, 0 replies; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:35 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel The entire topic is here at the Xen developers mailing list: http://lists.xensource.com/archives/html/xen-devel/2009-06/msg00245.html -- 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 02:31 AM, Mr. Teo En Ming (Zhang Enming) wrote: > http://article.gmane.org/gmane.comp.emulators.xen.devel/67243 > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 18:15 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:28 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 18:45 ` Alan Cox 2009-08-24 19:13 ` Pasi Kärkkäinen 1 sibling, 1 reply; 34+ messages in thread From: Alan Cox @ 2009-08-24 18:45 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel > If I disable all the above tty, will I be able to hide vga card from dom > 0 since it is no longer displaying to the monitor? No > Or do I still need to disable the vga card? How do I do that? The video card is enabled by the BIOS and the kernel and also Xen then always use it. Alan ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 18:45 ` Alan Cox @ 2009-08-24 19:13 ` Pasi Kärkkäinen 2009-08-24 19:23 ` Mr. Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Pasi Kärkkäinen @ 2009-08-24 19:13 UTC (permalink / raw) To: Alan Cox; +Cc: xen-devel, enming.teo On Mon, Aug 24, 2009 at 07:45:52PM +0100, Alan Cox wrote: > > If I disable all the above tty, will I be able to hide vga card from dom > > 0 since it is no longer displaying to the monitor? > > No > > > Or do I still need to disable the vga card? How do I do that? > > The video card is enabled by the BIOS and the kernel and also Xen then > always use it. > So I guess you need to have additional/extra video card that you'll passthrough. -- Pasi ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 19:13 ` Pasi Kärkkäinen @ 2009-08-24 19:23 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 19:33 ` Mr. Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 19:23 UTC (permalink / raw) To: pasik; +Cc: xen-devel, Alan Cox 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. -- 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:13 AM, Pasi Kärkkäinen wrote: > On Mon, Aug 24, 2009 at 07:45:52PM +0100, Alan Cox wrote: > >>> If I disable all the above tty, will I be able to hide vga card from dom >>> 0 since it is no longer displaying to the monitor? >>> >> No >> >> >>> Or do I still need to disable the vga card? How do I do that? >>> >> The video card is enabled by the BIOS and the kernel and also Xen then >> always use it. >> >> > So I guess you need to have additional/extra video card that you'll > passthrough. > > -- Pasi > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 19:23 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 19:33 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 19:35 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 2:04 ` Xen Paravirt Operations Domain 0 Serial Console Problem Han, Weidong 0 siblings, 2 replies; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 19:33 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel, weidong.han, Alan Cox [-- Attachment #1.1: Type: text/plain, Size: 1787 bytes --] 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. > [-- Attachment #1.2: Type: text/html, Size: 2981 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 19:33 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 19:35 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 0:49 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 2:04 ` Xen Paravirt Operations Domain 0 Serial Console Problem Han, Weidong 1 sibling, 1 reply; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-24 19:35 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel, weidong.han, Alan Cox [-- Attachment #1.1: Type: text/plain, Size: 2392 bytes --] 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. >> > [-- Attachment #1.2: Type: text/html, Size: 3861 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 19:35 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-25 0:49 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 0:57 ` Mr. Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-25 0:49 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel, weidong.han, Alan Cox [-- Attachment #1.1: Type: text/plain, Size: 3289 bytes --] 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. >>> >> > [-- Attachment #1.2: Type: text/html, Size: 5097 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-25 0:49 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-25 0:57 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 0:59 ` VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Mr. Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-25 0:57 UTC (permalink / raw) To: bengheng; +Cc: xen-devel, weidong.han, Alan Cox [-- Attachment #1.1: Type: text/plain, Size: 4204 bytes --] Dear Beng Heng, I understand that you got VGA passthrough working with Intel DQ45CB and an PCI-E x16 ATI Graphics card. I have Intel DQ45CB and NVIDIA Geforce 8400 GS PCI-E x16. Could you share with me in details how you got VGA passthrough to work with ATI PCI-E x16 when you set onboard VGA as your primary video adapter? Thank you. -- 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 08:49 AM, Mr. Teo En Ming (Zhang Enming) wrote: > 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. >>>> >>> >> > > [-- Attachment #1.2: Type: text/html, Size: 6323 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 2009-08-25 0:57 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-25 0:59 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 2:09 ` Han, Weidong 0 siblings, 1 reply; 34+ messages in thread From: Mr. Teo En Ming (Zhang Enming) @ 2009-08-25 0:59 UTC (permalink / raw) To: enming.teo; +Cc: xen-devel, weidong.han, Alan Cox, bengheng [-- Attachment #1.1: Type: text/plain, Size: 5085 bytes --] Hi, I should probably rename the subject of this email. -- 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 08:57 AM, Mr. Teo En Ming (Zhang Enming) wrote: > Dear Beng Heng, > > I understand that you got VGA passthrough working with Intel DQ45CB > and an PCI-E x16 ATI Graphics card. > > I have Intel DQ45CB and NVIDIA Geforce 8400 GS PCI-E x16. > > Could you share with me in details how you got VGA passthrough to work > with ATI PCI-E x16 when you set onboard VGA as your primary video adapter? > > Thank you. > -- > 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 08:49 AM, Mr. Teo En Ming (Zhang Enming) wrote: >> 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. >>>>> >>>> >>> >> >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > [-- Attachment #1.2: Type: text/html, Size: 7623 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 2009-08-25 0:59 ` VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Mr. Teo En Ming (Zhang Enming) @ 2009-08-25 2:09 ` Han, Weidong 2009-08-25 2:44 ` Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Han, Weidong @ 2009-08-25 2:09 UTC (permalink / raw) To: 'enming.teo@asiasoftsea.net' Cc: 'xen-devel@lists.xensource.com', 'Alan Cox', 'bengheng@eecs.umich.edu' [-- Attachment #1.1: Type: text/plain, Size: 5488 bytes --] Per our investigation, you cannot copy VGA bios from host 0xc0000 to guest for secondary gfx assignment. You can load it from a file. In addition, if you want to passthrough Nvidia G8400, you need to 1:1 map its MMIO BARs. Regards, Weidong ________________________________ From: Mr. Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 8:59 To: enming.teo@asiasoftsea.net Cc: bengheng@eecs.umich.edu; xen-devel@lists.xensource.com; Han, Weidong; Alan Cox Subject: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Hi, I should probably rename the subject of this email. -- 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<mailto:teoenming@hotmail.com> Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 08:57 AM, Mr. Teo En Ming (Zhang Enming) wrote: Dear Beng Heng, I understand that you got VGA passthrough working with Intel DQ45CB and an PCI-E x16 ATI Graphics card. I have Intel DQ45CB and NVIDIA Geforce 8400 GS PCI-E x16. Could you share with me in details how you got VGA passthrough to work with ATI PCI-E x16 when you set onboard VGA as your primary video adapter? Thank you. -- 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<mailto:teoenming@hotmail.com> Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 08:49 AM, Mr. Teo En Ming (Zhang Enming) wrote: 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<mailto: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<mailto: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<mailto: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. ________________________________ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com<mailto:Xen-devel@lists.xensource.com> http://lists.xensource.com/xen-devel [-- Attachment #1.2: Type: text/html, Size: 8735 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 2009-08-25 2:09 ` Han, Weidong @ 2009-08-25 2:44 ` Teo En Ming (Zhang Enming) 2009-08-25 3:05 ` Han, Weidong 0 siblings, 1 reply; 34+ messages in thread From: Teo En Ming (Zhang Enming) @ 2009-08-25 2:44 UTC (permalink / raw) To: weidong.han; +Cc: xen-devel, 'Alan Cox', bengheng [-- Attachment #1.1: Type: text/plain, Size: 6095 bytes --] Hi Weidong, Any detailed documentation for the two tasks you mentioned? 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:09 AM To: 'enming.teo@asiasoftsea.net' Cc: 'bengheng@eecs.umich.edu'; 'xen-devel@lists.xensource.com'; 'Alan Cox' Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Per our investigation, you cannot copy VGA bios from host 0xc0000 to guest for secondary gfx assignment. You can load it from a file. In addition, if you want to passthrough Nvidia G8400, you need to 1:1 map its MMIO BARs. Regards, Weidong _____ From: Mr. Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 8:59 To: enming.teo@asiasoftsea.net Cc: bengheng@eecs.umich.edu; xen-devel@lists.xensource.com; Han, Weidong; Alan Cox Subject: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Hi, I should probably rename the subject of this email. -- 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 08:57 AM, Mr. Teo En Ming (Zhang Enming) wrote: Dear Beng Heng, I understand that you got VGA passthrough working with Intel DQ45CB and an PCI-E x16 ATI Graphics card. I have Intel DQ45CB and NVIDIA Geforce 8400 GS PCI-E x16. Could you share with me in details how you got VGA passthrough to work with ATI PCI-E x16 when you set onboard VGA as your primary video adapter? Thank you. -- 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 08:49 AM, Mr. Teo En Ming (Zhang Enming) wrote: 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. _____ _______________________________________________ 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 Version: 8.5.392 / Virus Database: 270.13.65/2322 - Release Date: 08/24/09 12:55:00 [-- Attachment #1.2: Type: text/html, Size: 10445 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 2009-08-25 2:44 ` Teo En Ming (Zhang Enming) @ 2009-08-25 3:05 ` Han, Weidong 2009-08-25 3:08 ` Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Han, Weidong @ 2009-08-25 3:05 UTC (permalink / raw) To: 'enming.teo@asiasoftsea.net' Cc: 'xen-devel@lists.xensource.com', 'Alan Cox', 'bengheng@eecs.umich.edu' [-- Attachment #1.1: Type: text/plain, Size: 6781 bytes --] No. we observed those problems in your investigation. Regards, Weidong ________________________________ From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 10:45 To: Han, Weidong Cc: bengheng@eecs.umich.edu; xen-devel@lists.xensource.com; 'Alan Cox' Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Hi Weidong, Any detailed documentation for the two tasks you mentioned? 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:09 AM To: 'enming.teo@asiasoftsea.net' Cc: 'bengheng@eecs.umich.edu'; 'xen-devel@lists.xensource.com'; 'Alan Cox' Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Per our investigation, you cannot copy VGA bios from host 0xc0000 to guest for secondary gfx assignment. You can load it from a file. In addition, if you want to passthrough Nvidia G8400, you need to 1:1 map its MMIO BARs. Regards, Weidong ________________________________ From: Mr. Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 8:59 To: enming.teo@asiasoftsea.net Cc: bengheng@eecs.umich.edu; xen-devel@lists.xensource.com; Han, Weidong; Alan Cox Subject: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Hi, I should probably rename the subject of this email. -- 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<mailto:teoenming@hotmail.com> Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 08:57 AM, Mr. Teo En Ming (Zhang Enming) wrote: Dear Beng Heng, I understand that you got VGA passthrough working with Intel DQ45CB and an PCI-E x16 ATI Graphics card. I have Intel DQ45CB and NVIDIA Geforce 8400 GS PCI-E x16. Could you share with me in details how you got VGA passthrough to work with ATI PCI-E x16 when you set onboard VGA as your primary video adapter? Thank you. -- 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<mailto:teoenming@hotmail.com> Alma Maters: Singapore Polytechnic, National University of Singapore On 08/25/2009 08:49 AM, Mr. Teo En Ming (Zhang Enming) wrote: 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<mailto: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<mailto: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<mailto: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. ________________________________ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com<mailto:Xen-devel@lists.xensource.com> http://lists.xensource.com/xen-devel 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 [-- Attachment #1.2: Type: text/html, Size: 11403 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 2009-08-25 3:05 ` Han, Weidong @ 2009-08-25 3:08 ` Teo En Ming (Zhang Enming) 0 siblings, 0 replies; 34+ messages in thread From: Teo En Ming (Zhang Enming) @ 2009-08-25 3:08 UTC (permalink / raw) To: weidong.han; +Cc: xen-devel, 'Alan Cox', bengheng [-- Attachment #1.1: Type: text/plain, Size: 7316 bytes --] Hi Weidong, What are the steps to go about doing it? 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:05 AM To: 'enming.teo@asiasoftsea.net' Cc: 'bengheng@eecs.umich.edu'; 'xen-devel@lists.xensource.com'; 'Alan Cox' Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 No. we observed those problems in your investigation. Regards, Weidong _____ From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 10:45 To: Han, Weidong Cc: bengheng@eecs.umich.edu; xen-devel@lists.xensource.com; 'Alan Cox' Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Hi Weidong, Any detailed documentation for the two tasks you mentioned? 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:09 AM To: 'enming.teo@asiasoftsea.net' Cc: 'bengheng@eecs.umich.edu'; 'xen-devel@lists.xensource.com'; 'Alan Cox' Subject: RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Per our investigation, you cannot copy VGA bios from host 0xc0000 to guest for secondary gfx assignment. You can load it from a file. In addition, if you want to passthrough Nvidia G8400, you need to 1:1 map its MMIO BARs. Regards, Weidong _____ From: Mr. Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 2009年8月25日 8:59 To: enming.teo@asiasoftsea.net Cc: bengheng@eecs.umich.edu; xen-devel@lists.xensource.com; Han, Weidong; Alan Cox Subject: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Hi, I should probably rename the subject of this email. -- 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 08:57 AM, Mr. Teo En Ming (Zhang Enming) wrote: Dear Beng Heng, I understand that you got VGA passthrough working with Intel DQ45CB and an PCI-E x16 ATI Graphics card. I have Intel DQ45CB and NVIDIA Geforce 8400 GS PCI-E x16. Could you share with me in details how you got VGA passthrough to work with ATI PCI-E x16 when you set onboard VGA as your primary video adapter? Thank you. -- 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 08:49 AM, Mr. Teo En Ming (Zhang Enming) wrote: 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. _____ _______________________________________________ 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 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 [-- Attachment #1.2: Type: text/html, Size: 13136 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 Serial Console Problem 2009-08-24 19:33 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 19:35 ` Mr. Teo En Ming (Zhang Enming) @ 2009-08-25 2:04 ` Han, Weidong 2009-08-25 2:40 ` Xen Paravirt Operations Domain 0 Serial ConsoleProblem Teo En Ming (Zhang Enming) 1 sibling, 1 reply; 34+ messages in thread From: Han, Weidong @ 2009-08-25 2:04 UTC (permalink / raw) To: 'enming.teo@asiasoftsea.net' Cc: 'xen-devel@lists.xensource.com', 'Alan Cox' [-- Attachment #1.1: Type: text/plain, Size: 2682 bytes --] 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<mailto: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. [-- Attachment #1.2: Type: text/html, Size: 5485 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 Serial ConsoleProblem 2009-08-25 2:04 ` Xen Paravirt Operations Domain 0 Serial Console Problem Han, Weidong @ 2009-08-25 2:40 ` Teo En Ming (Zhang Enming) 2009-08-25 2:50 ` Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Teo En Ming (Zhang Enming) @ 2009-08-25 2:40 UTC (permalink / raw) To: weidong.han; +Cc: xen-devel, 'Alan Cox' [-- Attachment #1.1: Type: text/plain, Size: 3563 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 7471 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 Serial ConsoleProblem 2009-08-25 2:40 ` Xen Paravirt Operations Domain 0 Serial ConsoleProblem Teo En Ming (Zhang Enming) @ 2009-08-25 2:50 ` Teo En Ming (Zhang Enming) 2009-08-25 3:03 ` Han, Weidong 0 siblings, 1 reply; 34+ messages in thread From: Teo En Ming (Zhang Enming) @ 2009-08-25 2:50 UTC (permalink / raw) To: enming.teo, weidong.han; +Cc: xen-devel, 'Alan Cox' [-- Attachment #1.1: Type: text/plain, Size: 4563 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 9314 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 Serial ConsoleProblem 2009-08-25 2:50 ` Teo En Ming (Zhang Enming) @ 2009-08-25 3:03 ` Han, Weidong 2009-08-25 3:06 ` Xen Paravirt Operations Domain 0 SerialConsoleProblem Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Han, Weidong @ 2009-08-25 3:03 UTC (permalink / raw) To: 'enming.teo@asiasoftsea.net' Cc: 'Alan, 'xen-devel@lists.xensource.com', Cox' [-- Attachment #1.1: Type: text/plain, Size: 5251 bytes --] 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<mailto: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 [-- Attachment #1.2: Type: text/html, Size: 10475 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem 2009-08-25 3:03 ` Han, Weidong @ 2009-08-25 3:06 ` Teo En Ming (Zhang Enming) 2009-08-25 3:10 ` Teo En Ming (Zhang Enming) 2009-08-25 3:28 ` Han, Weidong 0 siblings, 2 replies; 34+ messages in thread From: Teo En Ming (Zhang Enming) @ 2009-08-25 3:06 UTC (permalink / raw) To: weidong.han; +Cc: xen-devel, 'Alan Cox' [-- Attachment #1.1: Type: text/plain, Size: 6073 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 12819 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem 2009-08-25 3:06 ` Xen Paravirt Operations Domain 0 SerialConsoleProblem Teo En Ming (Zhang Enming) @ 2009-08-25 3:10 ` Teo En Ming (Zhang Enming) 2009-08-25 3:28 ` Han, Weidong 1 sibling, 0 replies; 34+ messages in thread From: Teo En Ming (Zhang Enming) @ 2009-08-25 3:10 UTC (permalink / raw) To: enming.teo, weidong.han; +Cc: xen-devel, 'Alan Cox' [-- Attachment #1.1: Type: text/plain, Size: 7134 bytes --] Hi, I downloaded and installed Xen 3.4.1 testing using these instructions: # cd /usr/src # hg clone http://xenbits.xensource.com/xen-3.4-testing.hg # cd xen-3.4-testing.hg # make xen # make install-xen # make tools # make install-tools 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 11:07 AM To: weidong.han@intel.com 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 [-- Attachment #1.2: Type: text/html, Size: 14960 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem 2009-08-25 3:06 ` Xen Paravirt Operations Domain 0 SerialConsoleProblem Teo En Ming (Zhang Enming) 2009-08-25 3:10 ` Teo En Ming (Zhang Enming) @ 2009-08-25 3:28 ` Han, Weidong 2009-08-25 3:51 ` Teo En Ming (Zhang Enming) 1 sibling, 1 reply; 34+ messages in thread From: Han, Weidong @ 2009-08-25 3:28 UTC (permalink / raw) To: 'enming.teo@asiasoftsea.net' Cc: 'Alan, 'xen-devel@lists.xensource.com', Cox' [-- Attachment #1.1: Type: text/plain, Size: 6586 bytes --] 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<mailto: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 [-- Attachment #1.2: Type: text/html, Size: 13872 bytes --] [-- Attachment #2: pcistub-19893.patch --] [-- Type: application/octet-stream, Size: 7656 bytes --] # HG changeset patch # User Keir Fraser <keir.fraser@citrix.com> # Date 1246877324 -3600 # Node ID d33a665b2c05b0785637330074c285034571faf1 # Parent 8f6dd1671599ff39405a01cdcecb989e62238974 xend: allow pv_ops kernel driver pci-stub to hide devices for assignment pciback is used by VT-d to hide device for assigment. But in pv-ops dom0, pciback is not supported yet. Fortunately, pci-stub module is used to hide device in Linux for KVM VT-d device assignment and it's included in pv-ops dom0. So can use pci-stub to hide devices for assignment. Device must be hidden before assignment. Control panel has checks if devices can be assigned or not, and can list assignable devices via reading devices owned by pciback. This patch changes the checks, and also list assignable devices which are owned by pci-stub. Use pci-stub to hide devices, and use this patch to pass checkes in control panel, device assignemnt with VT-d works on Xen with pv-ops dom0. Signed-off-by: Weidong Han <weidong.han@intel.com> diff -r 8f6dd1671599 -r d33a665b2c05 tools/python/xen/util/pci.py --- a/tools/python/xen/util/pci.py Mon Jul 06 11:47:34 2009 +0100 +++ b/tools/python/xen/util/pci.py Mon Jul 06 11:48:44 2009 +0100 @@ -33,6 +33,7 @@ SYSFS_PCI_DEV_SUBDEVICE_PATH = '/subsyst SYSFS_PCI_DEV_SUBDEVICE_PATH = '/subsystem_device' SYSFS_PCI_DEV_CLASS_PATH = '/class' SYSFS_PCIBACK_PATH = '/bus/pci/drivers/pciback/' +SYSFS_PCISTUB_PATH = '/bus/pci/drivers/pci-stub/' LSPCI_CMD = 'lspci' @@ -450,7 +451,10 @@ def restore_pci_conf_space(pci_cfg_list) os.write(fd, dw) os.close(fd) -def find_all_devices_owned_by_pciback(): +def find_all_assignable_devices(): + ''' devices owned by pcibak or pci-stub can be directly assigned to + guest with IOMMU (VT-d or AMD IOMMU), find all these devices. + ''' sysfs_mnt = find_sysfs_mnt() pciback_path = sysfs_mnt + SYSFS_PCIBACK_PATH pci_names = os.popen('ls ' + pciback_path).read() @@ -459,6 +463,14 @@ def find_all_devices_owned_by_pciback(): for pci in pci_list: dev = PciDevice(parse_pci_name(pci)) dev_list = dev_list + [dev] + + pcistub_path = sysfs_mnt + SYSFS_PCISTUB_PATH + pci_names = os.popen('ls ' + pcistub_path).read() + pci_list = extract_the_exact_pci_names(pci_names) + for pci in pci_list: + dev = PciDevice(parse_pci_name(pci)) + dev_list = dev_list + [dev] + return dev_list def transform_list(target, src): @@ -921,10 +933,10 @@ class PciDevice: return for pci_dev in devs: dev = PciDevice(parse_pci_name(pci_dev)) - if dev.driver == 'pciback': + if dev.driver == 'pciback' or dev.driver == 'pci-stub': continue err_msg = 'pci: %s must be co-assigned to the same guest with %s' + \ - ', but it is not owned by pciback.' + ', but it is not owned by pciback or pci-stub.' raise PciDeviceAssignmentError(err_msg % (pci_dev, self.name)) def do_FLR(self): diff -r 8f6dd1671599 -r d33a665b2c05 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Mon Jul 06 11:47:34 2009 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Mon Jul 06 11:48:44 2009 +0100 @@ -716,7 +716,7 @@ class XendDomainInfo: except Exception, e: raise VmError("pci: failed to locate device and "+ "parse it's resources - "+str(e)) - if pci_device.driver!='pciback': + if pci_device.driver!='pciback' and pci_device.driver!='pci-stub': raise VmError(("pci: PCI Backend does not own device "+ \ "%s\n"+ \ "See the pciback.hide kernel "+ \ diff -r 8f6dd1671599 -r d33a665b2c05 tools/python/xen/xend/XendNode.py --- a/tools/python/xen/xend/XendNode.py Mon Jul 06 11:47:34 2009 +0100 +++ b/tools/python/xen/xend/XendNode.py Mon Jul 06 11:48:44 2009 +0100 @@ -835,7 +835,7 @@ class XendNode: def pciinfo(self): # Each element of dev_list is a PciDevice - dev_list = PciUtil.find_all_devices_owned_by_pciback() + dev_list = PciUtil.find_all_assignable_devices() # Each element of devs_list is a list of PciDevice devs_list = PciUtil.check_FLR_capability(dev_list) diff -r 8f6dd1671599 -r d33a665b2c05 tools/python/xen/xend/server/pciif.py --- a/tools/python/xen/xend/server/pciif.py Mon Jul 06 11:47:34 2009 +0100 +++ b/tools/python/xen/xend/server/pciif.py Mon Jul 06 11:48:44 2009 +0100 @@ -224,7 +224,7 @@ class PciController(DevController): return sxpr def CheckSiblingDevices(self, domid, dev): - """ Check if all sibling devices of dev are owned by pciback + """ Check if all sibling devices of dev are owned by pciback or pci-stub """ if not self.vm.info.is_hvm(): return @@ -245,12 +245,9 @@ class PciController(DevController): #no dom0 drivers bound to sdev continue - if sdev.driver!='pciback': - raise VmError(("pci: PCI Backend does not own\n "+ \ - "sibling device %s of device %s\n"+ \ - "See the pciback.hide kernel "+ \ - "command-line parameter or\n"+ \ - "bind your slot/device to the PCI backend using sysfs" \ + if sdev.driver!='pciback' and sdev.driver!='pci-stub': + raise VmError(("pci: PCI Backend and pci-stub don't\n "+ \ + "own sibling device %s of device %s\n"\ )%(sdev.name, dev.name)) return @@ -265,13 +262,9 @@ class PciController(DevController): raise VmError("pci: failed to locate device and "+ "parse it's resources - "+str(e)) - if dev.driver!='pciback': - raise VmError(("pci: PCI Backend does not own device "+ \ - "%s\n"+ \ - "See the pciback.hide kernel "+ \ - "command-line parameter or\n"+ \ - "bind your slot/device to the PCI backend using sysfs" \ - )%(dev.name)) + if dev.driver!='pciback' and dev.driver!='pci-stub': + raise VmError(("pci: PCI Backend and pci-stub don't own "+ \ + "device %s\n") %(dev.name)) if dev.has_non_page_aligned_bar and arch.type != "ia64": raise VmError("pci: %s: non-page-aligned MMIO BAR found." % dev.name) @@ -285,7 +278,8 @@ class PciController(DevController): # if arch.type != "ia64": # dev.do_FLR() - PCIQuirk(dev) + if dev.driver == 'pciback': + PCIQuirk(dev) if not self.vm.info.is_hvm(): # Setup IOMMU device assignment @@ -437,13 +431,9 @@ class PciController(DevController): raise VmError("pci: failed to locate device and "+ "parse it's resources - "+str(e)) - if dev.driver!='pciback': - raise VmError(("pci: PCI Backend does not own device "+ \ - "%s\n"+ \ - "See the pciback.hide kernel "+ \ - "command-line parameter or\n"+ \ - "bind your slot/device to the PCI backend using sysfs" \ - )%(dev.name)) + if dev.driver!='pciback' and dev.driver!='pci-stub': + raise VmError(("pci: PCI Backend and pci-stub don't own device "+ \ + "%s\n") %(dev.name)) # Need to do FLR here before deassign device in order to terminate # DMA transaction, etc [-- Attachment #3: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem 2009-08-25 3:28 ` Han, Weidong @ 2009-08-25 3:51 ` Teo En Ming (Zhang Enming) 2009-08-25 4:17 ` Teo En Ming (Zhang Enming) 0 siblings, 1 reply; 34+ messages in thread From: Teo En Ming (Zhang Enming) @ 2009-08-25 3:51 UTC (permalink / raw) To: weidong.han; +Cc: 'Alan, xen-devel, 'Cox'' [-- Attachment #1.1: Type: text/plain, Size: 7592 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 16317 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem 2009-08-25 3:51 ` Teo En Ming (Zhang Enming) @ 2009-08-25 4:17 ` Teo En Ming (Zhang Enming) 2009-08-25 6:53 ` Pasi Kärkkäinen 0 siblings, 1 reply; 34+ messages in thread From: Teo En Ming (Zhang Enming) @ 2009-08-25 4:17 UTC (permalink / raw) To: enming.teo, weidong.han; +Cc: xen-devel, 'Cox'' [-- Attachment #1.1: Type: text/plain, Size: 9150 bytes --] Hi Weidong, I understood now. http://xenbits.xensource.com/xen-3.4-testing.hg and http://xenbits.xensource.com/xen-unstable.hg are completely different mercurial branches. I am using xen 3.4.1 testing which means my code won't have the pci-stub patch you have attached. When I go back home after work I will do: # cd /usr/src # hg clone http://xenbits.xensource.com/xen-unstable.hg # cd xen-unstable.hg # make xen # make install-xen # make tools # make install-tools Is xen-unstable very unstable? Will it work with my pv-ops dom 0 kernels 2.6.30-rc3 and 2.6.31-rc6? I believe I only have to download, compile and install xen-unstable right? I shouldn't have to do anything with my current pv-ops dom 0 kernels? 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: 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 11:51 AM To: weidong.han@intel.com Cc: 'Alan; xen-devel@lists.xensource.com; 'Cox'' Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 SerialConsoleProblem 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 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 [-- Attachment #1.2: Type: text/html, Size: 20160 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: Xen Paravirt Operations Domain 0 SerialConsoleProblem 2009-08-25 4:17 ` Teo En Ming (Zhang Enming) @ 2009-08-25 6:53 ` Pasi Kärkkäinen 0 siblings, 0 replies; 34+ messages in thread From: Pasi Kärkkäinen @ 2009-08-25 6:53 UTC (permalink / raw) To: Teo En Ming (Zhang Enming); +Cc: xen-devel, weidong.han, 'Cox'' On Tue, Aug 25, 2009 at 12:17:19PM +0800, Teo En Ming (Zhang Enming) wrote: > Hi Weidong, > > I understood now. http://xenbits.xensource.com/xen-3.4-testing.hg and > http://xenbits.xensource.com/xen-unstable.hg are completely different > mercurial branches. I am using xen 3.4.1 testing which means my code won't > have the pci-stub patch you have attached. > > When I go back home after work I will do: > > # cd /usr/src > # hg clone http://xenbits.xensource.com/xen-unstable.hg > # cd xen-unstable.hg > # make xen > # make install-xen > # make tools > # make install-tools > > Is xen-unstable very unstable? It shouldn't be _very_ unstable, but you might see some problems every now and then. > Will it work with my pv-ops dom 0 kernels 2.6.30-rc3 and 2.6.31-rc6? Yes. > I believe I only have to download, compile and > install xen-unstable right? I shouldn't have to do anything with my current > pv-ops dom 0 kernels? > Yes, that's true. -- Pasi > 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: 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 11:51 AM > To: weidong.han@intel.com > Cc: 'Alan; xen-devel@lists.xensource.com; 'Cox'' > Subject: RE: [Xen-devel] Xen Paravirt Operations Domain 0 > SerialConsoleProblem > > > 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?$BG/8?$B7n25?$BF| 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?$BG/8?$B7n25?$BF| 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?$BG/8?$B7n25?$BF| 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 > > > 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 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 34+ messages in thread
end of thread, other threads:[~2009-08-25 6:53 UTC | newest] Thread overview: 34+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-08-24 16:17 Xen Paravirt Operations Domain 0 Serial Console Problem Mr. Teo En Ming (Zhang Enming) 2009-08-24 16:21 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 16:44 ` Pasi Kärkkäinen 2009-08-24 17:34 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 17:37 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 17:57 ` Pasi Kärkkäinen 2009-08-24 17:59 ` Pasi Kärkkäinen 2009-08-24 18:06 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:15 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:28 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:31 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:35 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 18:45 ` Alan Cox 2009-08-24 19:13 ` Pasi Kärkkäinen 2009-08-24 19:23 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 19:33 ` Mr. Teo En Ming (Zhang Enming) 2009-08-24 19:35 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 0:49 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 0:57 ` Mr. Teo En Ming (Zhang Enming) 2009-08-25 0:59 ` VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16 Mr. Teo En Ming (Zhang Enming) 2009-08-25 2:09 ` Han, Weidong 2009-08-25 2:44 ` Teo En Ming (Zhang Enming) 2009-08-25 3:05 ` Han, Weidong 2009-08-25 3:08 ` Teo En Ming (Zhang Enming) 2009-08-25 2:04 ` Xen Paravirt Operations Domain 0 Serial Console Problem Han, Weidong 2009-08-25 2:40 ` Xen Paravirt Operations Domain 0 Serial ConsoleProblem Teo En Ming (Zhang Enming) 2009-08-25 2:50 ` Teo En Ming (Zhang Enming) 2009-08-25 3:03 ` Han, Weidong 2009-08-25 3:06 ` Xen Paravirt Operations Domain 0 SerialConsoleProblem Teo En Ming (Zhang Enming) 2009-08-25 3:10 ` Teo En Ming (Zhang Enming) 2009-08-25 3:28 ` Han, Weidong 2009-08-25 3:51 ` Teo En Ming (Zhang Enming) 2009-08-25 4:17 ` Teo En Ming (Zhang Enming) 2009-08-25 6:53 ` Pasi Kärkkäinen
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.