Skip to contentSkip to conversation

Xen Paravirt Operations Domain 0 Serial Console Problem

DISCUSSION Mr. Teo En Ming (Zhang Enming) 4 participants 34 messages Aug 24, 2009 – Aug 25, 2009

lore
Share & tools
lore
#0 lore raw

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.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
#1 lore raw

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.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 34 lines · Mr. Teo En Ming (Zhang Enming)

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.

#2 lore raw
In reply to Mr. Teo En Ming (Zhang Enming)
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 9 lines

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
Quoted 4 lines

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.

Quoted 8 lines

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

#3 lore raw

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?

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 49 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 10 lines

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
Quoted 4 lines

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.

Quoted 9 lines

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

#4 lore raw

See my latest screenshot here:

http://3.bp.blogspot.com/_zzjv8MCM2sk/SpLOXl9IoWI/AAAAAAAAAT0/rdlMAFeQAKY/s1600-h/xen+serial+console+02.JPG

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 29 lines · Mr. Teo En Ming (Zhang Enming)

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?

#5 lore raw
In reply to Mr. Teo En Ming (Zhang Enming)
Quoted 23 lines · Mr. Teo En Ming (Zhang Enming)

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
Quoted 3 lines

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.

Quoted 3 lines

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

Quoted 73 lines

Any ideas?

Signature · 11 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 52 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 10 lines

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
Quoted 4 lines

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.

Quoted 9 lines

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

#6 lore raw
Quoted 31 lines · Pasi Kärkkäinen
Quoted 23 lines · Mr. Teo En Ming (Zhang Enming)

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
Quoted 3 lines

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.

Quoted 8 lines
Quoted 3 lines

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

Quoted 79 lines
Quoted 74 lines

Any ideas?

Signature · 11 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 52 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 10 lines

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
Quoted 4 lines

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.

Quoted 9 lines

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
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw
In reply to Pasi Kärkkäinen

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.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 123 lines · Pasi Kärkkäinen
Quoted 23 lines · Mr. Teo En Ming (Zhang Enming)

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
Quoted 4 lines

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.

Quoted 4 lines

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

Quoted 79 lines

Any ideas?

Signature · 11 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 57 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 11 lines

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
Quoted 4 lines

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.

Quoted 10 lines

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

#8 lore raw

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.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 10 lines · Mr. Teo En Ming (Zhang Enming)

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.

#9 lore raw

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

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 19 lines · Mr. Teo En Ming (Zhang Enming)

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.

#10 lore raw

http://article.gmane.org/gmane.comp.emulators.xen.devel/67243

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 6 lines · Mr. Teo En Ming (Zhang Enming)

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

#11 lore raw

The entire topic is here at the Xen developers mailing list:

http://lists.xensource.com/archives/html/xen-devel/2009-06/msg00245.html

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

http://article.gmane.org/gmane.comp.emulators.xen.devel/67243

#12 lore raw
In reply to Mr. Teo En Ming (Zhang Enming)
Quoted 2 lines

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

Quoted 1 line

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

#13 lore raw
Quoted 10 lines · Alan Cox
Quoted 2 lines

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

Quoted 1 line

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

#14 lore raw

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.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 24 lines · Pasi Kärkkäinen
Quoted 12 lines · Alan Cox
Quoted 3 lines

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

Quoted 2 lines

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
[email protected]
http://lists.xensource.com/xen-devel

#15 lore raw

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.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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
[email protected]
http://lists.xensource.com/xen-devel

#16 lore raw

I have already compiled CONFIG_PCI_STUB=y statically into the kernel.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 22 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 28 lines

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.

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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
[email protected]
http://lists.xensource.com/xen-devel

#17 lore raw

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)

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 67 lines · Mr. Teo En Ming (Zhang Enming)

I have already compiled CONFIG_PCI_STUB=y statically into the kernel.

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 50 lines · Mr. Teo En Ming (Zhang Enming)

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.

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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
[email protected]
http://lists.xensource.com/xen-devel

#18 lore raw

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.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 91 lines · Mr. Teo En Ming (Zhang Enming)

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)

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 67 lines · Mr. Teo En Ming (Zhang Enming)

I have already compiled CONFIG_PCI_STUB=y statically into the kernel.

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 50 lines · Mr. Teo En Ming (Zhang Enming)

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.

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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
[email protected]
http://lists.xensource.com/xen-devel

#19 lore raw

VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16

Hi,

I should probably rename the subject of this email.

Signature · 10 lines
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: [email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 123 lines · Mr. Teo En Ming (Zhang Enming)

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.

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 91 lines · Mr. Teo En Ming (Zhang Enming)

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)

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 67 lines · Mr. Teo En Ming (Zhang Enming)

I have already compiled CONFIG_PCI_STUB=y statically into the kernel.

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 50 lines · Mr. Teo En Ming (Zhang Enming)

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.

Signature · 10 lines
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:[email protected]
Alma Maters: Singapore Polytechnic, National University of Singapore
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#24 lore raw
In reply to Mr. Teo En Ming (Zhang Enming)

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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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: [email protected]<mailto:[email protected]>
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
[email protected]
http://lists.xensource.com/xen-devel

#20 lore raw

RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16

In reply to Mr. Teo En Ming (Zhang Enming)

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:[email protected]]
Sent: 2009年8月25日 8:59
To: [email protected]
Cc: [email protected]; [email protected]; 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: [email protected]<mailto:[email protected]>
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: [email protected]<mailto:[email protected]>
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: [email protected]<mailto:[email protected]>
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: [email protected]<mailto:[email protected]>
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: [email protected]<mailto:[email protected]>
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 [email protected]<mailto:[email protected]>
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#25 lore raw

RE: Xen Paravirt Operations Domain 0 Serial ConsoleProblem

In reply to Han, Weidong

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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#21 lore raw

RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16

In reply to Han, Weidong

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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:09 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 8:59
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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.

Signature · 20 lines
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: [email protected]

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)

Signature · 20 lines
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: [email protected]

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.

Signature · 20 lines
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: [email protected]

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.

Signature · 20 lines
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: [email protected]

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

[email protected]

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#26 lore raw

RE: Xen Paravirt Operations Domain 0 Serial ConsoleProblem

In reply to Teo En Ming (Zhang Enming)

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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#27 lore raw

RE: Xen Paravirt Operations Domain 0 Serial ConsoleProblem

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:[email protected]]
Sent: 2009年8月25日 10:50
To: [email protected]; Han, Weidong
Cc: [email protected]; '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: [email protected]

________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

________________________________
From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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: [email protected]<mailto:[email protected]>
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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#22 lore raw

RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16

In reply to Teo En Ming (Zhang Enming)

No. we observed those problems in your investigation.

Regards,
Weidong

________________________________
From: Teo En Ming (Zhang Enming) [mailto:[email protected]]
Sent: 2009年8月25日 10:45
To: Han, Weidong
Cc: [email protected]; [email protected]; '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: [email protected]

________________________________
From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:09 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 8:59
To: [email protected]
Cc: [email protected]; [email protected]; 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: [email protected]<mailto:[email protected]>
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: [email protected]<mailto:[email protected]>
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: [email protected]<mailto:[email protected]>
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: [email protected]<mailto:[email protected]>
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: [email protected]<mailto:[email protected]>
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 [email protected]<mailto:[email protected]>
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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#28 lore raw

RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem

In reply to Han, Weidong

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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 11:03 AM
To: '[email protected]'
Cc: '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 10:50
To: [email protected]; Han, Weidong
Cc: [email protected]; '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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#23 lore raw

RE: VGA Passthrough with Intel DQ45CB and NVIDIA Geforce 8400 GS PCI Express x16

In reply to Han, Weidong

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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 11:05 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 10:45
To: Han, Weidong
Cc: [email protected]; [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:09 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 8:59
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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.

Signature · 20 lines
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: [email protected]

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)

Signature · 20 lines
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: [email protected]

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.

Signature · 20 lines
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: [email protected]

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.

Signature · 20 lines
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: [email protected]

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

[email protected]

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#29 lore raw

RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem

In reply to Teo En Ming (Zhang Enming)

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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 11:07 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 11:03 AM
To: '[email protected]'
Cc: '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 10:50
To: [email protected]; Han, Weidong
Cc: [email protected]; '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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#30 lore raw

RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem

In reply to Teo En Ming (Zhang Enming)

I attached it for you.

Regards,
Weidong
________________________________
From: Teo En Ming (Zhang Enming) [mailto:[email protected]]
Sent: 2009年8月25日 11:07
To: Han, Weidong
Cc: [email protected]; '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: [email protected]

________________________________
From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 11:03 AM
To: '[email protected]'
Cc: '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 10:50
To: [email protected]; Han, Weidong
Cc: [email protected]; '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: [email protected]

________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

________________________________
From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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: [email protected]<mailto:[email protected]>
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

# HG changeset patch
# User Keir Fraser <[email protected]>
# 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.

tools/python/xen/util/pci.py +15 -3
diff -r 8f6dd1671599 -r d33a665b2c05 tools/python/xen/util/pci.py
@@ -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):
tools/python/xen/xend/XendDomainInfo.py +1 -1
diff -r 8f6dd1671599 -r d33a665b2c05 tools/python/xen/xend/XendDomainInfo.py
@@ -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 "+ \
tools/python/xen/xend/XendNode.py +1 -1
diff -r 8f6dd1671599 -r d33a665b2c05 tools/python/xen/xend/XendNode.py
@@ -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)
tools/python/xen/xend/server/pciif.py +12 -22
diff -r 8f6dd1671599 -r d33a665b2c05 tools/python/xen/xend/server/pciif.py
@@ -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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#31 lore raw

RE: 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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Han, Weidong
Sent: Tuesday, August 25, 2009 11:28 AM
To: '[email protected]'
Cc: 'Alan; '[email protected]'; 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:[email protected]]
Sent: 2009年8月25日 11:07
To: Han, Weidong
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 11:03 AM
To: '[email protected]'
Cc: '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 10:50
To: [email protected]; Han, Weidong
Cc: [email protected]; '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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#32 lore raw

RE: Xen Paravirt Operations Domain 0 SerialConsoleProblem

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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 11:51 AM
To: [email protected]
Cc: 'Alan; [email protected]; '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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Han, Weidong
Sent: Tuesday, August 25, 2009 11:28 AM
To: '[email protected]'
Cc: 'Alan; '[email protected]'; 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:[email protected]]
Sent: 2009年8月25日 11:07
To: Han, Weidong
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 11:03 AM
To: '[email protected]'
Cc: '[email protected]'; '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:[email protected]]
Sent: 2009年8月25日 10:50
To: [email protected]; Han, Weidong
Cc: [email protected]; '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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009年8月25日 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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
[email protected]
http://lists.xensource.com/xen-devel

#33 lore raw

Re: Xen Paravirt Operations Domain 0 SerialConsoleProblem

Quoted 17 lines · Teo En Ming (Zhang Enming)

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
Quoted 1 line

Is xen-unstable very unstable?

It shouldn't be _very_ unstable, but you might see some problems every now and then.

Quoted 1 line

Will it work with my pv-ops dom 0 kernels 2.6.30-rc3 and 2.6.31-rc6?

Yes.

Quoted 4 lines

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

Quoted 345 lines

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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 11:51 AM
To: [email protected]
Cc: 'Alan; [email protected]; '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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Han, Weidong
Sent: Tuesday, August 25, 2009 11:28 AM
To: '[email protected]'
Cc: 'Alan; '[email protected]'; 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:[email protected]]
Sent: 2009?$BG/8?$B7n25?$BF| 11:07
To: Han, Weidong
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 11:03 AM
To: '[email protected]'
Cc: '[email protected]'; '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:[email protected]]
Sent: 2009?$BG/8?$B7n25?$BF| 10:50
To: [email protected]; Han, Weidong
Cc: [email protected]; '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: [email protected]

_____

From: [email protected] [mailto:xen-devel-bounces@lists. xensource.com] On Behalf Of Teo En Ming (Zhang Enming)
Sent: Tuesday, August 25, 2009 10:41 AM
To: [email protected]
Cc: [email protected]; '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: [email protected]

_____

From: Han, Weidong [mailto:[email protected]]
Sent: Tuesday, August 25, 2009 10:04 AM
To: '[email protected]'
Cc: '[email protected]'; '[email protected]'; '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.

Quoted 1 line

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:[email protected]]
Sent: 2009?$BG/8?$B7n25?$BF| 3:33
To: [email protected]
Cc: [email protected]; [email protected]; 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.

Signature · 20 lines
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: [email protected]

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
[email protected]
http://lists.xensource.com/xen-devel