Mr. Teo En Ming (Zhang Enming)
2009-Sep-06 22:23 UTC
[Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Dear All, I have made a two-part video series on VGA pass through using Xen virtualization and Intel VT-d. These are home-made videos so please bear with me :-) Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/video-presentation-on-pci-express-x16.html for the two-part videos and additional details. Thank you very much for viewing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Teo En Ming (Zhang Enming)
2009-Sep-07 09:40 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi Is there any way to solve the "There are not enough free resources" problem? Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mr. Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:23 AM To: xen-devel@lists.xensource.com Cc: ''timothy.moore@expidas.net''; enming.teo@asiasoftsea.net; Han,Weidong; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Dear All, I have made a two-part video series on VGA pass through using Xen virtualization and Intel VT-d. These are home-made videos so please bear with me :-) Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/video-presentation- on-pci-express-x16.html for the two-part videos and additional details. Thank you very much for viewing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09 18:05:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Moore
2009-Sep-07 09:58 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi Teo, I don''t get this message; my VGA (Nvidia Geforce GTX260) does not have the exclamation and the driver load successfully. Have you tried with the extra patch for secondary cycles as I mentioned before? Please look again at my implementation of the patches and try to replicate. BTW, I watched your Videos! Nice Touch ;) Cheers, Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 10:41 To: enming.teo@asiasoftsea.net; xen-devel@lists.xensource.com Cc: Tim Moore; ''Han,Weidong''; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Is there any way to solve the "There are not enough free resources" problem? Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mr. Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:23 AM To: xen-devel@lists.xensource.com Cc: ''timothy.moore@expidas.net''; enming.teo@asiasoftsea.net; Han,Weidong; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Dear All, I have made a two-part video series on VGA pass through using Xen virtualization and Intel VT-d. These are home-made videos so please bear with me :-) Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/video-presentation- on-pci-express-x16.html for the two-part videos and additional details. Thank you very much for viewing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09 18:05:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Teo En Ming (Zhang Enming)
2009-Sep-07 10:10 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi Tim, Yes, I had applied the last and final secondary-gfx-patch to xen 3.5-unstable changeset 20143 but the result is still the same. I cannot solve the "not enough free resources" problem. I am using the latest Intel ACPI CA compiler version 20090730. Wonder if this has any impact. Also I am using xen with pvops dom 0 kernel 2.6.31-rc6. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Tim Moore Sent: Monday, September 07, 2009 5:58 PM To: ''enming.teo@asiasoftsea.net'' Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Teo, I don''t get this message; my VGA (Nvidia Geforce GTX260) does not have the exclamation and the driver load successfully. Have you tried with the extra patch for secondary cycles as I mentioned before? Please look again at my implementation of the patches and try to replicate. BTW, I watched your Videos! Nice Touch ;) Cheers, Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 10:41 To: enming.teo@asiasoftsea.net; xen-devel@lists.xensource.com Cc: Tim Moore; ''Han,Weidong''; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Is there any way to solve the "There are not enough free resources" problem? Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mr. Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:23 AM To: xen-devel@lists.xensource.com Cc: ''timothy.moore@expidas.net''; enming.teo@asiasoftsea.net; Han,Weidong; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Dear All, I have made a two-part video series on VGA pass through using Xen virtualization and Intel VT-d. These are home-made videos so please bear with me :-) Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/video-presentation- on-pci-express-x16.html for the two-part videos and additional details. Thank you very much for viewing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09 18:05:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Moore
2009-Sep-07 10:12 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine
Teo, Please can you post your 1) lspci output from Dom0 for your VGA card 2) qemu log for DomU 3) xm dmesg output 4) Modifications you made to vBAR-pBAR patch Thanks Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 11:11 To: Tim Moore Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Tim, Yes, I had applied the last and final secondary-gfx-patch to xen 3.5-unstable changeset 20143 but the result is still the same. I cannot solve the "not enough free resources" problem. I am using the latest Intel ACPI CA compiler version 20090730. Wonder if this has any impact. Also I am using xen with pvops dom 0 kernel 2.6.31-rc6. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Tim Moore Sent: Monday, September 07, 2009 5:58 PM To: ''enming.teo@asiasoftsea.net'' Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Teo, I don''t get this message; my VGA (Nvidia Geforce GTX260) does not have the exclamation and the driver load successfully. Have you tried with the extra patch for secondary cycles as I mentioned before? Please look again at my implementation of the patches and try to replicate. BTW, I watched your Videos! Nice Touch ;) Cheers, Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 10:41 To: enming.teo@asiasoftsea.net; xen-devel@lists.xensource.com Cc: Tim Moore; ''Han,Weidong''; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Is there any way to solve the "There are not enough free resources" problem? Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mr. Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:23 AM To: xen-devel@lists.xensource.com Cc: ''timothy.moore@expidas.net''; enming.teo@asiasoftsea.net; Han,Weidong; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Dear All, I have made a two-part video series on VGA pass through using Xen virtualization and Intel VT-d. These are home-made videos so please bear with me :-) Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/video-presentation- on-pci-express-x16.html for the two-part videos and additional details. Thank you very much for viewing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09 18:05:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Teo En Ming (Zhang Enming)
2009-Sep-07 10:15 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine
Hi Timothy, Did you apply the patches for loading VGA bios from a firmware file or just copy the VGA bios of passed through VGA card from physical memory? I am using the load vga bios from firmware file method. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:11 PM To: timothy.moore@expidas.net Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine Hi Tim, Yes, I had applied the last and final secondary-gfx-patch to xen 3.5-unstable changeset 20143 but the result is still the same. I cannot solve the "not enough free resources" problem. I am using the latest Intel ACPI CA compiler version 20090730. Wonder if this has any impact. Also I am using xen with pvops dom 0 kernel 2.6.31-rc6. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Tim Moore Sent: Monday, September 07, 2009 5:58 PM To: ''enming.teo@asiasoftsea.net'' Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Teo, I don''t get this message; my VGA (Nvidia Geforce GTX260) does not have the exclamation and the driver load successfully. Have you tried with the extra patch for secondary cycles as I mentioned before? Please look again at my implementation of the patches and try to replicate. BTW, I watched your Videos! Nice Touch ;) Cheers, Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 10:41 To: enming.teo@asiasoftsea.net; xen-devel@lists.xensource.com Cc: Tim Moore; ''Han,Weidong''; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Is there any way to solve the "There are not enough free resources" problem? Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mr. Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:23 AM To: xen-devel@lists.xensource.com Cc: ''timothy.moore@expidas.net''; enming.teo@asiasoftsea.net; Han,Weidong; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Dear All, I have made a two-part video series on VGA pass through using Xen virtualization and Intel VT-d. These are home-made videos so please bear with me :-) Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/video-presentation- on-pci-express-x16.html for the two-part videos and additional details. Thank you very much for viewing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09 18:05:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Moore
2009-Sep-07 10:34 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine
Hi Teo, Yes, I was also loading from a file ... Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 11:15 To: enming.teo@asiasoftsea.net; Tim Moore Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine Hi Timothy, Did you apply the patches for loading VGA bios from a firmware file or just copy the VGA bios of passed through VGA card from physical memory? I am using the load vga bios from firmware file method. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:11 PM To: timothy.moore@expidas.net Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine Hi Tim, Yes, I had applied the last and final secondary-gfx-patch to xen 3.5-unstable changeset 20143 but the result is still the same. I cannot solve the "not enough free resources" problem. I am using the latest Intel ACPI CA compiler version 20090730. Wonder if this has any impact. Also I am using xen with pvops dom 0 kernel 2.6.31-rc6. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Tim Moore Sent: Monday, September 07, 2009 5:58 PM To: ''enming.teo@asiasoftsea.net'' Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Teo, I don''t get this message; my VGA (Nvidia Geforce GTX260) does not have the exclamation and the driver load successfully. Have you tried with the extra patch for secondary cycles as I mentioned before? Please look again at my implementation of the patches and try to replicate. BTW, I watched your Videos! Nice Touch ;) Cheers, Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 10:41 To: enming.teo@asiasoftsea.net; xen-devel@lists.xensource.com Cc: Tim Moore; ''Han,Weidong''; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Is there any way to solve the "There are not enough free resources" problem? Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mr. Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:23 AM To: xen-devel@lists.xensource.com Cc: ''timothy.moore@expidas.net''; enming.teo@asiasoftsea.net; Han,Weidong; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Dear All, I have made a two-part video series on VGA pass through using Xen virtualization and Intel VT-d. These are home-made videos so please bear with me :-) Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/video-presentation- on-pci-express-x16.html for the two-part videos and additional details. Thank you very much for viewing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09 18:05:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Teo En Ming (Zhang Enming)
2009-Sep-07 10:41 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGAPassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine
Hi Timothy, What changeset of xen 3.5-unstable are you using? What version of the pvops dom 0 kernel are you using? Thank you. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Tim Moore Sent: Monday, September 07, 2009 6:35 PM To: ''enming.teo@asiasoftsea.net'' Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGAPassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine Hi Teo, Yes, I was also loading from a file ... Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 11:15 To: enming.teo@asiasoftsea.net; Tim Moore Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine Hi Timothy, Did you apply the patches for loading VGA bios from a firmware file or just copy the VGA bios of passed through VGA card from physical memory? I am using the load vga bios from firmware file method. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:11 PM To: timothy.moore@expidas.net Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThroughto Xen-based Windows XP Home Edition HVM Virtual Machine Hi Tim, Yes, I had applied the last and final secondary-gfx-patch to xen 3.5-unstable changeset 20143 but the result is still the same. I cannot solve the "not enough free resources" problem. I am using the latest Intel ACPI CA compiler version 20090730. Wonder if this has any impact. Also I am using xen with pvops dom 0 kernel 2.6.31-rc6. Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Tim Moore Sent: Monday, September 07, 2009 5:58 PM To: ''enming.teo@asiasoftsea.net'' Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Teo, I don''t get this message; my VGA (Nvidia Geforce GTX260) does not have the exclamation and the driver load successfully. Have you tried with the extra patch for secondary cycles as I mentioned before? Please look again at my implementation of the patches and try to replicate. BTW, I watched your Videos! Nice Touch ;) Cheers, Tim -----Original Message----- From: Teo En Ming (Zhang Enming) [mailto:enming.teo@asiasoftsea.net] Sent: 07 September 2009 10:41 To: enming.teo@asiasoftsea.net; xen-devel@lists.xensource.com Cc: Tim Moore; ''Han,Weidong''; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Hi Is there any way to solve the "There are not enough free resources" problem? Regards, Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Mobile: +65-9648-9798 MSN: teoenming@hotmail.com -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mr. Teo En Ming (Zhang Enming) Sent: Monday, September 07, 2009 6:23 AM To: xen-devel@lists.xensource.com Cc: ''timothy.moore@expidas.net''; enming.teo@asiasoftsea.net; Han,Weidong; bderzhavets@yahoo.com; djmagee@mageenet.net; bengheng@eecs.umich.edu Subject: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Dear All, I have made a two-part video series on VGA pass through using Xen virtualization and Intel VT-d. These are home-made videos so please bear with me :-) Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/video-presentation- on-pci-express-x16.html for the two-part videos and additional details. Thank you very much for viewing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09 18:05:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-08 14:48 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi All, I went through the history and here are the steps I took to patch xen 3.5-unstable for VGA passthrough. Based on Weidong''s advice I checked out changeset earlier than 20144. Initial trial without secondary gfx passthrough patch ================================ 637 hg clone http://xenbits.xensource.com/xen-unstable.hg 638 cd xen-unstable.hg 639 vi tools/firmware/hvmloader/hvmloader.c 640 hg checkout 20143 641 cp ~enming/intel-gfx-passthru-patches/intel-gfx-passthru-patch01.patch . 642 patch -p1 < intel-gfx-passthru-patch01.patch 643 make tools 644 history 645 cd tools/ioemu-remote/ 646 cp ~enming/intel-gfx-passthru-patches/intel-gfx-passthru-patch02.patch . 647 patch -p1 < intel-gfx-passthru-patch02.patch 648 cd .. 649 cd .. 650 cp ~enming/intel-gfx-passthru-patches/xen-load-vbios-file.patch . 651 patch -p1 < xen-load-vbios-file.patch 652 cp ~enming/intel-gfx-passthru-patches/xen-vBAR-pBAR.patch . 653 patch -p1 < xen-vBAR-pBAR.patch 654 cd tools/ioemu-remote/ 655 cp ~enming/intel-gfx-passthru-patches/qemu-change-for-vBAR-pBAR.patch . 656 patch -p1 < qemu-change-for-vBAR-pBAR.patch 657 cd ../../ 658 make clean 659 cp ~enming/vgabios-pt.bin tools/firmware/vgabios/ 660 ls tools/firmware/vgabios/vgabios-pt.bin 661 make xen 662 make install-xen 663 make tools 664 make install-tools In the above case, intel-gfx-passthru-patch01.patch is actually xen-gfx-passthrough.patch as posted by Weidong. intel-gfx-passthru-patch02.patch is actually qemu-gfx-passthrough.patch as posted by Weidong. After building and installing everything, I rebooted. When I tried to passthrough the nVidia Geforce 8400 GS, I got "not enough free resources" in Windows XP domU. This is in fact much better than my earlier trial when I got "device cannot start" in Windows XP domU device manager with the wrong approach of using onboard gma4500 graphics as primary and nvidia geforce 8400 gs as secondary. This time I am using nvidia geforce 8400 gs as the primary and nothing else as the secondary. After Timothy Moore''s suggestion, I proceeded to the next trial. Next trial WITH secondary gfx passthrough patch ============================= 679 cd /usr/src 680 mv xen-unstable.hg xen-unstable.hg-20143-no-secondary-patch 681 cp -R xen-unstable.hg-20143-no-secondary-patch xen-unstable.hg 682 cd xen-unstable.hg 683 history 684 cd tools/ioemu-remote/ 685 cp ~enming/intel-gfx-passthru-patches/qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch . 686 patch -p1 < qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch 687 cd ../.. 688 make clean 689 cp ~enming/vgabios-pt.bin tools/firmware/vgabios/ 690 ls tools/firmware/vgabios/vgabios-pt.bin 691 make xen 692 make install-xen 693 make tools 694 make install-tools At this point, I encountered an error with build.c as documented with my earlier postings in xen-devel mailing list. So I applied my very own patch: Patch created by Teo En Ming (Zhang Enming) on 29 August 2009 Saturday at 8:00 P.M. Singapore Time Email #1: enming.teo@asiasoftsea.net Email #2: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 --- ssdt_pm.h 2009-08-29 19:54:52.653088000 +0800 +++ ssdt_pm.h 2009-08-29 19:56:51.813088550 +0800 @@ -10,7 +10,7 @@ * C source code output * */ -unsigned char AmlCode[] +unsigned char AmlCode_PM[] { 0x53,0x53,0x44,0x54,0xD6,0x05,0x00,0x00, /* 00000000 "SSDT...." */ 0x02,0xB9,0x58,0x65,0x6E,0x00,0x00,0x00, /* 00000008 "..Xen..." */ --- ssdt_tpm.h 2009-08-29 19:55:44.578738954 +0800 +++ ssdt_tpm.h 2009-08-29 19:57:27.896638884 +0800 @@ -10,7 +10,7 @@ * C source code output * */ -unsigned char AmlCode[] +unsigned char AmlCode_TPM[] { 0x53,0x53,0x44,0x54,0x4C,0x00,0x00,0x00, /* 00000000 "SSDTL..." */ 0x02,0x2A,0x58,0x65,0x6E,0x00,0x00,0x00, /* 00000008 ".*Xen..." */ Then I checked ssdt_pm.h and ssdt_tpm.h to make sure they are correct. 695 vi tools/firmware/hvmloader/acpi/ssdt_pm.h 696 vi tools/firmware/hvmloader/acpi/ssdt_tpm.h 697 make install-tools But I still get "not enough free resources" in Win XP domU device manager. So apparently the patch qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch doesn''t affect my nvidia geforce 8400 gs passed through operations since I am using nvidia as primary and nothing as secondary. The secondary gfx patch is for cases when you have a primary for dom0 and passing through the secondary gfx to a HVM domU. -- 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 Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Han, Weidong
2009-Sep-09 06:06 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
I found I still cannot watch your video, even cannot access youtube. The output of ''xm dmesg'' means it really 1:1 maps for vBAR and pBAR. It should be no problem. Can you post qemu log (/var/log/xen/qemu-dm-xxx.log)? You below steps look correct. But I didn''t encounter the error with build.c. Tim, did you encounter the error? Regards, Weidong Mr. Teo En Ming (Zhang Enming) wrote:> Hi All, > > I went through the history and here are the steps I took to patch xen > 3.5-unstable for VGA passthrough. > > Based on Weidong''s advice I checked out changeset earlier than 20144. > > Initial trial without secondary gfx passthrough patch > ================================> > 637 hg clone http://xenbits.xensource.com/xen-unstable.hg > 638 cd xen-unstable.hg > 639 vi tools/firmware/hvmloader/hvmloader.c > 640 hg checkout 20143 > 641 cp > ~enming/intel-gfx-passthru-patches/intel-gfx-passthru-patch01.patch . > 642 patch -p1 < intel-gfx-passthru-patch01.patch > 643 make tools > 644 history > 645 cd tools/ioemu-remote/ > 646 cp > ~enming/intel-gfx-passthru-patches/intel-gfx-passthru-patch02.patch . > 647 patch -p1 < intel-gfx-passthru-patch02.patch > 648 cd .. > 649 cd .. > 650 cp > ~enming/intel-gfx-passthru-patches/xen-load-vbios-file.patch . 651 > patch -p1 < xen-load-vbios-file.patch 652 cp > ~enming/intel-gfx-passthru-patches/xen-vBAR-pBAR.patch . 653 > patch -p1 < xen-vBAR-pBAR.patch 654 cd tools/ioemu-remote/ > 655 cp > ~enming/intel-gfx-passthru-patches/qemu-change-for-vBAR-pBAR.patch . > 656 patch -p1 < qemu-change-for-vBAR-pBAR.patch > 657 cd ../../ > 658 make clean > 659 cp ~enming/vgabios-pt.bin tools/firmware/vgabios/ > 660 ls tools/firmware/vgabios/vgabios-pt.bin > 661 make xen > 662 make install-xen > 663 make tools > 664 make install-tools > > In the above case, intel-gfx-passthru-patch01.patch is actually > xen-gfx-passthrough.patch as posted by Weidong. > > intel-gfx-passthru-patch02.patch is actually > qemu-gfx-passthrough.patch as posted by Weidong. > > After building and installing everything, I rebooted. When I tried to > passthrough the nVidia Geforce 8400 GS, I got "not enough free > resources" in Windows XP domU. This is in fact much better than my > earlier trial when I got "device cannot start" in Windows XP domU > device manager with the wrong approach of using onboard gma4500 > graphics as primary and nvidia geforce 8400 gs as secondary. This > time I am using nvidia geforce 8400 gs as the primary and nothing > else as the secondary. > > After Timothy Moore''s suggestion, I proceeded to the next trial. > > Next trial WITH secondary gfx passthrough patch > =============================> > 679 cd /usr/src > 680 mv xen-unstable.hg xen-unstable.hg-20143-no-secondary-patch > 681 cp -R xen-unstable.hg-20143-no-secondary-patch xen-unstable.hg > 682 cd xen-unstable.hg > 683 history > 684 cd tools/ioemu-remote/ > 685 cp > ~enming/intel-gfx-passthru-patches/qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch > . > 686 patch -p1 < > qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch > 687 cd ../.. > 688 make clean > 689 cp ~enming/vgabios-pt.bin tools/firmware/vgabios/ > 690 ls tools/firmware/vgabios/vgabios-pt.bin > 691 make xen > 692 make install-xen > 693 make tools > 694 make install-tools > > At this point, I encountered an error with build.c as documented with > my earlier postings in xen-devel mailing list. > > So I applied my very own patch: > > Patch created by Teo En Ming (Zhang Enming) on 29 August 2009 Saturday > at 8:00 P.M. Singapore Time > Email #1: enming.teo@asiasoftsea.net > Email #2: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > > --- ssdt_pm.h 2009-08-29 19:54:52.653088000 +0800 > +++ ssdt_pm.h 2009-08-29 19:56:51.813088550 +0800 > @@ -10,7 +10,7 @@ > * C source code output > * > */ > -unsigned char AmlCode[] > +unsigned char AmlCode_PM[] > { > 0x53,0x53,0x44,0x54,0xD6,0x05,0x00,0x00, /* 00000000 "SSDT...." */ > 0x02,0xB9,0x58,0x65,0x6E,0x00,0x00,0x00, /* 00000008 "..Xen..." */ > --- ssdt_tpm.h 2009-08-29 19:55:44.578738954 +0800 > +++ ssdt_tpm.h 2009-08-29 19:57:27.896638884 +0800 > @@ -10,7 +10,7 @@ > * C source code output > * > */ > -unsigned char AmlCode[] > +unsigned char AmlCode_TPM[] > { > 0x53,0x53,0x44,0x54,0x4C,0x00,0x00,0x00, /* 00000000 "SSDTL..." */ > 0x02,0x2A,0x58,0x65,0x6E,0x00,0x00,0x00, /* 00000008 ".*Xen..." */ > > Then I checked ssdt_pm.h and ssdt_tpm.h to make sure they are correct. > > 695 vi tools/firmware/hvmloader/acpi/ssdt_pm.h > 696 vi tools/firmware/hvmloader/acpi/ssdt_tpm.h > 697 make install-tools > > > But I still get "not enough free resources" in Win XP domU device > manager. So apparently > the patch qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch > doesn''t affect my nvidia geforce 8400 gs passed through operations > since I am using nvidia as primary and nothing as secondary. The > secondary gfx patch is for cases when you have a primary for dom0 and > passing through the secondary gfx to a HVM domU._______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Christian Tramnitz
2009-Sep-09 07:23 UTC
[Xen-devel] Re: Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Did you verify (and modify if applicable) the PCI resources as per Weidong''s comment here? http://permalink.gmane.org/gmane.comp.emulators.xen.devel/70749 On another topic, please don''t answer to other threads to get attention and keep threading working by replying to previous versions of your own post or its replies (and and least for me, don''t reply to my personal mail address but just to the mailing-list) Best regards, Christian Mr. Teo En Ming (Zhang Enming) wrote:> Hi All, > > I went through the history and here are the steps I took to patch xen > 3.5-unstable for VGA passthrough. > > Based on Weidong''s advice I checked out changeset earlier than 20144.[...] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-09 15:19 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Dear Christian,>Did you verify (and modify if applicable) the PCI resources as perWeidong''s comment here? http://permalink.gmane.org/gmane.comp.emulators.xen.devel/70749 Thanks for the tip! I missed this one. I believe it should solve the "not enough free resources" problem for my graphics card. Weidong and me are using different nvidia graphics card. Hence I should modify the dsdt.asl MMIO BARs entries in xen-vBAR-pBAR.patch to reflect my graphics card.>On another topic, please don''t answer to other threads to get attention andkeep threading working by replying to previous versions of your own post or its replies (and and least for me, don''t reply to my personal mail address but just to the mailing-list) Sorry! No problem. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-09 15:39 UTC
Re: [Xen-devel] Re: Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi All, Weidong''s graphic card is: 01:00.0 VGA compatible controller: nVidia Corporation Unknown device 05ff (rev a1) (prog-if 00 [VGA controller]) Subsystem: nVidia Corporation Unknown device 0661 Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at c2000000 (32-bit, non-prefetchable) [size=16M] Memory at e0000000 (64-bit, prefetchable) [size=256M] Memory at c0000000 (64-bit, non-prefetchable) [size=32M] I/O ports at 9c00 [size=128] Expansion ROM at bff00000 [disabled] [size=512K] Capabilities: [60] Power Management version 3 Capabilities: [68] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable+ Capabilities: [78] Express Endpoint IRQ 0 So his xen-vBAR-pBAR.patch is: <CODE> diff -r 96b634bf65c3 tools/firmware/hvmloader/acpi/dsdt.asl --- a/tools/firmware/hvmloader/acpi/dsdt.asl Mon Aug 31 13:14:47 2009 +0800 +++ b/tools/firmware/hvmloader/acpi/dsdt.asl Mon Aug 31 16:03:27 2009 +0800 @@ -175,6 +175,34 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, 0x000BFFFF, 0x00000000, 0x00020000) + + /* reserve MMIO BARs of gfx for 1:1 mapping */ + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + Cacheable, ReadWrite, + 0x00000000, + 0xE0000000, + 0xEFFFFFFF, + 0x00000000, + 0x10000000) + + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + NonCacheable, ReadWrite, + 0x00000000, + 0xC0000000, + 0xC1FFFFFF, + 0x00000000, + 0x02000000) + + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + NonCacheable, ReadWrite, + 0x00000000, + 0xC2000000, + 0xC2FFFFFF, + 0x00000000, + 0x01000000) + 0x01000000) DWordMemory( ResourceProducer, PosDecode, MinFixed, MaxFixed, </CODE> My own nvidia pci express x16 geforce 8400 GS graphics card is: 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS (rev a1) (prog-if 00 [VGA controller]) Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at d2000000 (32-bit, non-prefetchable) [size=16M] Memory at c0000000 (64-bit, prefetchable) [size=256M] Memory at d0000000 (64-bit, non-prefetchable) [size=32M] I/O ports at d000 [size=128] [virtual] Expansion ROM at d3000000 [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: nvidia Kernel modules: nvidia So should I modify Weidong''s xen-vBAR-pBAR.patch like the following code section to reflect my own graphics card? <CODE> diff -r 96b634bf65c3 tools/firmware/hvmloader/acpi/dsdt.asl --- a/tools/firmware/hvmloader/acpi/dsdt.asl Mon Aug 31 13:14:47 2009 +0800 +++ b/tools/firmware/hvmloader/acpi/dsdt.asl Mon Aug 31 16:03:27 2009 +0800 @@ -175,6 +175,34 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, 0x000BFFFF, 0x00000000, 0x00020000) + + /* reserve MMIO BARs of gfx for 1:1 mapping */ + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + Cacheable, ReadWrite, + 0x00000000, + 0xC0000000, + 0xCFFFFFFF, + 0x00000000, + 0x10000000) + + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + NonCacheable, ReadWrite, + 0x00000000, + 0xD0000000, + 0xD1FFFFFF, + 0x00000000, + 0x02000000) + + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + NonCacheable, ReadWrite, + 0x00000000, + 0xD2000000, + 0xD2FFFFFF, + 0x00000000, + 0x01000000) + 0x01000000) DWordMemory( ResourceProducer, PosDecode, MinFixed, MaxFixed, </CODE> I am doing a direct substitution using pattern recognition. Please advise and correct me on my modifications above because I am not acquainted with the memory regions of graphics card. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-10 00:14 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi All, I have solved the final problem. Thank you Christian Tramnitz for pointing me to the missing link. I have tested my own modifications to xen-vBAR-pBAR.patch and it works! I reproduce part of xen-vBAR-pBAR.patch here which I modified for my nVidia Geforce 8400 GS graphics card: <CODE> diff -r 96b634bf65c3 tools/firmware/hvmloader/acpi/dsdt.asl --- a/tools/firmware/hvmloader/acpi/dsdt.asl Mon Aug 31 13:14:47 2009 +0800 +++ b/tools/firmware/hvmloader/acpi/dsdt.asl Mon Aug 31 16:03:27 2009 +0800 @@ -175,6 +175,34 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, 0x000BFFFF, 0x00000000, 0x00020000) + + /* reserve MMIO BARs of gfx for 1:1 mapping */ + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + Cacheable, ReadWrite, + 0x00000000, + 0xC0000000, + 0xCFFFFFFF, + 0x00000000, + 0x10000000) + + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + NonCacheable, ReadWrite, + 0x00000000, + 0xD0000000, + 0xD1FFFFFF, + 0x00000000, + 0x02000000) + + DWordMemory( + ResourceProducer, PosDecode, MinFixed, MaxFixed, + NonCacheable, ReadWrite, + 0x00000000, + 0xD2000000, + 0xD2FFFFFF, + 0x00000000, + 0x01000000) DWordMemory( ResourceProducer, PosDecode, MinFixed, MaxFixed, </CODE> Once again, thanks to Xen developers, engineers at Intel and everybody who have helped me along the way. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Moore
2009-Sep-10 10:13 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
I did not have this problem -----Original Message----- From: Han, Weidong [mailto:weidong.han@intel.com] Sent: 09 September 2009 07:06 To: ''enming.teo@asiasoftsea.net''; ''xen-devel@lists.xensource.com'' Cc: ''bengheng@eecs.umich.edu''; Tim Moore; ''djmagee@mageenet.net'' Subject: RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine I found I still cannot watch your video, even cannot access youtube. The output of ''xm dmesg'' means it really 1:1 maps for vBAR and pBAR. It should be no problem. Can you post qemu log (/var/log/xen/qemu-dm-xxx.log)? You below steps look correct. But I didn''t encounter the error with build.c. Tim, did you encounter the error? Regards, Weidong Mr. Teo En Ming (Zhang Enming) wrote:> Hi All, > > I went through the history and here are the steps I took to patch xen > 3.5-unstable for VGA passthrough. > > Based on Weidong''s advice I checked out changeset earlier than 20144. > > Initial trial without secondary gfx passthrough patch > ================================> > 637 hg clone http://xenbits.xensource.com/xen-unstable.hg > 638 cd xen-unstable.hg > 639 vi tools/firmware/hvmloader/hvmloader.c > 640 hg checkout 20143 > 641 cp > ~enming/intel-gfx-passthru-patches/intel-gfx-passthru-patch01.patch . > 642 patch -p1 < intel-gfx-passthru-patch01.patch > 643 make tools > 644 history > 645 cd tools/ioemu-remote/ > 646 cp > ~enming/intel-gfx-passthru-patches/intel-gfx-passthru-patch02.patch . > 647 patch -p1 < intel-gfx-passthru-patch02.patch > 648 cd .. > 649 cd .. > 650 cp > ~enming/intel-gfx-passthru-patches/xen-load-vbios-file.patch . 651 > patch -p1 < xen-load-vbios-file.patch 652 cp > ~enming/intel-gfx-passthru-patches/xen-vBAR-pBAR.patch . 653 > patch -p1 < xen-vBAR-pBAR.patch 654 cd tools/ioemu-remote/ > 655 cp > ~enming/intel-gfx-passthru-patches/qemu-change-for-vBAR-pBAR.patch . > 656 patch -p1 < qemu-change-for-vBAR-pBAR.patch > 657 cd ../../ > 658 make clean > 659 cp ~enming/vgabios-pt.bin tools/firmware/vgabios/ > 660 ls tools/firmware/vgabios/vgabios-pt.bin > 661 make xen > 662 make install-xen > 663 make tools > 664 make install-tools > > In the above case, intel-gfx-passthru-patch01.patch is actually > xen-gfx-passthrough.patch as posted by Weidong. > > intel-gfx-passthru-patch02.patch is actually > qemu-gfx-passthrough.patch as posted by Weidong. > > After building and installing everything, I rebooted. When I tried to > passthrough the nVidia Geforce 8400 GS, I got "not enough free > resources" in Windows XP domU. This is in fact much better than my > earlier trial when I got "device cannot start" in Windows XP domU > device manager with the wrong approach of using onboard gma4500 > graphics as primary and nvidia geforce 8400 gs as secondary. This > time I am using nvidia geforce 8400 gs as the primary and nothing > else as the secondary. > > After Timothy Moore''s suggestion, I proceeded to the next trial. > > Next trial WITH secondary gfx passthrough patch > =============================> > 679 cd /usr/src > 680 mv xen-unstable.hg xen-unstable.hg-20143-no-secondary-patch > 681 cp -R xen-unstable.hg-20143-no-secondary-patch xen-unstable.hg > 682 cd xen-unstable.hg > 683 history > 684 cd tools/ioemu-remote/ > 685 cp > ~enming/intel-gfx-passthru-patches/qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch > . > 686 patch -p1 < > qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch > 687 cd ../.. > 688 make clean > 689 cp ~enming/vgabios-pt.bin tools/firmware/vgabios/ > 690 ls tools/firmware/vgabios/vgabios-pt.bin > 691 make xen > 692 make install-xen > 693 make tools > 694 make install-tools > > At this point, I encountered an error with build.c as documented with > my earlier postings in xen-devel mailing list. > > So I applied my very own patch: > > Patch created by Teo En Ming (Zhang Enming) on 29 August 2009 Saturday > at 8:00 P.M. Singapore Time > Email #1: enming.teo@asiasoftsea.net > Email #2: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > > --- ssdt_pm.h 2009-08-29 19:54:52.653088000 +0800 > +++ ssdt_pm.h 2009-08-29 19:56:51.813088550 +0800 > @@ -10,7 +10,7 @@ > * C source code output > * > */ > -unsigned char AmlCode[] > +unsigned char AmlCode_PM[] > { > 0x53,0x53,0x44,0x54,0xD6,0x05,0x00,0x00, /* 00000000 "SSDT...." */ > 0x02,0xB9,0x58,0x65,0x6E,0x00,0x00,0x00, /* 00000008 "..Xen..." */ > --- ssdt_tpm.h 2009-08-29 19:55:44.578738954 +0800 > +++ ssdt_tpm.h 2009-08-29 19:57:27.896638884 +0800 > @@ -10,7 +10,7 @@ > * C source code output > * > */ > -unsigned char AmlCode[] > +unsigned char AmlCode_TPM[] > { > 0x53,0x53,0x44,0x54,0x4C,0x00,0x00,0x00, /* 00000000 "SSDTL..." */ > 0x02,0x2A,0x58,0x65,0x6E,0x00,0x00,0x00, /* 00000008 ".*Xen..." */ > > Then I checked ssdt_pm.h and ssdt_tpm.h to make sure they are correct. > > 695 vi tools/firmware/hvmloader/acpi/ssdt_pm.h > 696 vi tools/firmware/hvmloader/acpi/ssdt_tpm.h > 697 make install-tools > > > But I still get "not enough free resources" in Win XP domU device > manager. So apparently > the patch qemu-claim-vga-cycle-for-secondary-gfx-passthrough.patch > doesn''t affect my nvidia geforce 8400 gs passed through operations > since I am using nvidia as primary and nothing as secondary. The > secondary gfx patch is for cases when you have a primary for dom0 and > passing through the secondary gfx to a HVM domU._______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-10 12:28 UTC
RE: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Dear All, Here is my latest video presentation on VGA passthrough. Please check out my blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the Youtube link at http://www.youtube.com/watch?v=1ia3IwG6tp4 The "not enough free resources" problem for nVidia Geforce 8400 GS PCI Express x16 graphics card in earlier presentation videos: http://www.youtube.com/watch?v=HNEiSI...<http://www.youtube.com/watch?v=HNEiSInrav0> http://www.youtube.com/watch?v=_hOT_9...<http://www.youtube.com/watch?v=_hOT_9LIG5w> was fixed. Device manager in Windows XP HVM domU no longer shows an exclamation mark besides the nVidia Geforce 8400 GS graphics card. The device is working properly and the resources tab shows the available memory ranges. Full VGA passthrough to Windows XP HVM guest operating system using Xen virtualization has been realized. I am now able to run 3-D video benchmarks on the passed through nVidia GeForce 8400 GS graphics card. All this is possible using Xen 3.5 hypervisor with Intel supplied VGA passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6 which causes Win XP domU to run slowly, I am now using pvops dom0 kernel 2.6.30-rc3. Many thanks to Xen developers, Han Weidong and other engineers at Intel, and also Christian Tramnitz for pointing me to the missing puzzle which helped me in resolving the final problem. I am now able to bootstrap Windows XP HVM domU from within Linux using Xen virtualization and play 3D games in the Windows virtual machine. In the past, Windows virtual machines can only see a 2D emulated/virtual display adapter. The virtualized Windows operating systems were more palatable to server administrators than gamers. With VGA pass through and direct hardware access by Windows virtual machines to the graphics hardware, gamers will now be able to play 3D games inside Windows virtual machines. PS: I am still unable to passthrough USB devices, e.g. keyboard and mouse, to the Windows XP HVM domU. This video is captured and rendered using the open source kdenlive non-linear video editor. The video is taken using Canon HV20. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2009-Sep-10 14:03 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Dear All, > > Here is my latest video presentation on VGA passthrough. Please check out my > blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the Youtube > link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > > The "not enough free resources" problem for nVidia Geforce 8400 GS PCI > Express x16 graphics card in earlier presentation videos: > > http://www.youtube.com/watch?v=HNEiSI...<http://www.youtube.com/watch?v=HNEiSInrav0> > > http://www.youtube.com/watch?v=_hOT_9...<http://www.youtube.com/watch?v=_hOT_9LIG5w> > > was fixed. Device manager in Windows XP HVM domU no longer shows an > exclamation mark besides the nVidia Geforce 8400 GS graphics card. The > device is working properly and the resources tab shows the available memory > ranges. > > Full VGA passthrough to Windows XP HVM guest operating system using Xen > virtualization has been realized. I am now able to run 3-D video benchmarks > on the passed through nVidia GeForce 8400 GS graphics card. > > All this is possible using Xen 3.5 hypervisor with Intel supplied VGA > passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6 which > causes Win XP domU to run slowly, I am now using pvops dom0 kernel > 2.6.30-rc3. >Jeremy: Are you aware of any changes after 2.6.30-rc3 that could cause this HVM slowness? Any tips how it could be debugged? -- Pasi> Many thanks to Xen developers, Han Weidong and other engineers at Intel, and > also Christian Tramnitz for pointing me to the missing puzzle which helped > me in resolving the final problem. > > I am now able to bootstrap Windows XP HVM domU from within Linux using Xen > virtualization and play 3D games in the Windows virtual machine. In the > past, Windows virtual machines can only see a 2D emulated/virtual display > adapter. The virtualized Windows operating systems were more palatable to > server administrators than gamers. With VGA pass through and direct hardware > access by Windows virtual machines to the graphics hardware, gamers will now > be able to play 3D games inside Windows virtual machines. > > PS: I am still unable to passthrough USB devices, e.g. keyboard and mouse, > to the Windows XP HVM domU. This video is captured and rendered using the > open source kdenlive non-linear video editor. The video is taken using Canon > HV20. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jeremy Fitzhardinge
2009-Sep-10 18:17 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On 09/10/09 07:03, Pasi Kärkkäinen wrote:> On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang Enming) wrote: > >> Dear All, >> >> Here is my latest video presentation on VGA passthrough. Please check out my >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the Youtube >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 >> >> The "not enough free resources" problem for nVidia Geforce 8400 GS PCI >> Express x16 graphics card in earlier presentation videos: >> >> http://www.youtube.com/watch?v=HNEiSI...<http://www.youtube.com/watch?v=HNEiSInrav0> >> >> http://www.youtube.com/watch?v=_hOT_9...<http://www.youtube.com/watch?v=_hOT_9LIG5w> >> >> was fixed. Device manager in Windows XP HVM domU no longer shows an >> exclamation mark besides the nVidia Geforce 8400 GS graphics card. The >> device is working properly and the resources tab shows the available memory >> ranges. >> >> Full VGA passthrough to Windows XP HVM guest operating system using Xen >> virtualization has been realized. I am now able to run 3-D video benchmarks >> on the passed through nVidia GeForce 8400 GS graphics card. >> >> All this is possible using Xen 3.5 hypervisor with Intel supplied VGA >> passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6 which >> causes Win XP domU to run slowly, I am now using pvops dom0 kernel >> 2.6.30-rc3. >> >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could cause > this HVM slowness? >I can''t think of anything, unless the new swiotlb code is causing problems.> Any tips how it could be debugged? >It would help to isolate where the slowness is coming from. How much slowdown are we talking about? Is the HVM domain doing lots of IO at the time? Are there any processes using lots of time in dom0? What''s the interrupt rate like? J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-11 00:19 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi, I will try to stop unnecessary services on Dom 0 and do a disk I/O benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight (Singapore time). That will be more conclusive. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <jeremy@goop.org>wrote:> On 09/10/09 07:03, Pasi Kärkkäinen wrote: > > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang Enming) > wrote: > > > >> Dear All, > >> > >> Here is my latest video presentation on VGA passthrough. Please check > out my > >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the > Youtube > >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > >> > >> The "not enough free resources" problem for nVidia Geforce 8400 GS PCI > >> Express x16 graphics card in earlier presentation videos: > >> > >> http://www.youtube.com/watch?v=HNEiSI...< > http://www.youtube.com/watch?v=HNEiSInrav0> > >> > >> http://www.youtube.com/watch?v=_hOT_9...< > http://www.youtube.com/watch?v=_hOT_9LIG5w> > >> > >> was fixed. Device manager in Windows XP HVM domU no longer shows an > >> exclamation mark besides the nVidia Geforce 8400 GS graphics card. The > >> device is working properly and the resources tab shows the available > memory > >> ranges. > >> > >> Full VGA passthrough to Windows XP HVM guest operating system using Xen > >> virtualization has been realized. I am now able to run 3-D video > benchmarks > >> on the passed through nVidia GeForce 8400 GS graphics card. > >> > >> All this is possible using Xen 3.5 hypervisor with Intel supplied VGA > >> passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6 which > >> causes Win XP domU to run slowly, I am now using pvops dom0 kernel > >> 2.6.30-rc3. > >> > >> > > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could cause > > this HVM slowness? > > > > I can''t think of anything, unless the new swiotlb code is causing problems. > > > Any tips how it could be debugged? > > > > It would help to isolate where the slowness is coming from. How much > slowdown are we talking about? Is the HVM domain doing lots of IO at > the time? Are there any processes using lots of time in dom0? What''s > the interrupt rate like? > > J >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-11 15:37 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi, Please refer to the disk I/O benchmark results here: http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than 2.6.31-rc6. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> Hi, > > I will try to stop unnecessary services on Dom 0 and do a disk I/O > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight (Singapore > time). That will be more conclusive. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <jeremy@goop.org>wrote: > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang Enming) >> wrote: >> > >> >> Dear All, >> >> >> >> Here is my latest video presentation on VGA passthrough. Please check >> out my >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the >> Youtube >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 >> >> >> >> The "not enough free resources" problem for nVidia Geforce 8400 GS PCI >> >> Express x16 graphics card in earlier presentation videos: >> >> >> >> http://www.youtube.com/watch?v=HNEiSI...< >> http://www.youtube.com/watch?v=HNEiSInrav0> >> >> >> >> http://www.youtube.com/watch?v=_hOT_9...< >> http://www.youtube.com/watch?v=_hOT_9LIG5w> >> >> >> >> was fixed. Device manager in Windows XP HVM domU no longer shows an >> >> exclamation mark besides the nVidia Geforce 8400 GS graphics card. The >> >> device is working properly and the resources tab shows the available >> memory >> >> ranges. >> >> >> >> Full VGA passthrough to Windows XP HVM guest operating system using Xen >> >> virtualization has been realized. I am now able to run 3-D video >> benchmarks >> >> on the passed through nVidia GeForce 8400 GS graphics card. >> >> >> >> All this is possible using Xen 3.5 hypervisor with Intel supplied VGA >> >> passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6 >> which >> >> causes Win XP domU to run slowly, I am now using pvops dom0 kernel >> >> 2.6.30-rc3. >> >> >> >> >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could cause >> > this HVM slowness? >> > >> >> I can''t think of anything, unless the new swiotlb code is causing >> problems. >> >> > Any tips how it could be debugged? >> > >> >> It would help to isolate where the slowness is coming from. How much >> slowdown are we talking about? Is the HVM domain doing lots of IO at >> the time? Are there any processes using lots of time in dom0? What''s >> the interrupt rate like? >> >> J >> > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2009-Sep-11 16:03 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Hi, > > Please refer to the disk I/O benchmark results here: > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html > > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than > 2.6.31-rc6. >Btw you might also want to test with the latest rebase/master tree; it''s at Linux 2.6.31 final now. -- Pasi> -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > > > Hi, > > > > I will try to stop unnecessary services on Dom 0 and do a disk I/O > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight (Singapore > > time). That will be more conclusive. > > > > -- > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > Engineering) > > Alma Maters: > > (1) Singapore Polytechnic > > (2) National University of Singapore > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > Email: space.time.universe@gmail.com > > MSN: teoenming@hotmail.com > > Mobile Phone: +65-9648-9798 > > Street: Bedok Reservoir Road > > Republic of Singapore > > > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <jeremy@goop.org>wrote: > > > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang Enming) > >> wrote: > >> > > >> >> Dear All, > >> >> > >> >> Here is my latest video presentation on VGA passthrough. Please check > >> out my > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the > >> Youtube > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > >> >> > >> >> The "not enough free resources" problem for nVidia Geforce 8400 GS PCI > >> >> Express x16 graphics card in earlier presentation videos: > >> >> > >> >> http://www.youtube.com/watch?v=HNEiSI...< > >> http://www.youtube.com/watch?v=HNEiSInrav0> > >> >> > >> >> http://www.youtube.com/watch?v=_hOT_9...< > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> > >> >> > >> >> was fixed. Device manager in Windows XP HVM domU no longer shows an > >> >> exclamation mark besides the nVidia Geforce 8400 GS graphics card. The > >> >> device is working properly and the resources tab shows the available > >> memory > >> >> ranges. > >> >> > >> >> Full VGA passthrough to Windows XP HVM guest operating system using Xen > >> >> virtualization has been realized. I am now able to run 3-D video > >> benchmarks > >> >> on the passed through nVidia GeForce 8400 GS graphics card. > >> >> > >> >> All this is possible using Xen 3.5 hypervisor with Intel supplied VGA > >> >> passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6 > >> which > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 kernel > >> >> 2.6.30-rc3. > >> >> > >> >> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could cause > >> > this HVM slowness? > >> > > >> > >> I can''t think of anything, unless the new swiotlb code is causing > >> problems. > >> > >> > Any tips how it could be debugged? > >> > > >> > >> It would help to isolate where the slowness is coming from. How much > >> slowdown are we talking about? Is the HVM domain doing lots of IO at > >> the time? Are there any processes using lots of time in dom0? What''s > >> the interrupt rate like? > >> > >> J > >> > > > > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-12 02:52 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi, I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. But it gave me a USB host controller died error. Please refer to the error output here: http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang Enming) > wrote: > > Hi, > > > > Please refer to the disk I/O benchmark results here: > > > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html > > > > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than > > 2.6.31-rc6. > > > > Btw you might also want to test with the latest rebase/master tree; it''s > at Linux 2.6.31 final now. > > -- Pasi > > > -- > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > Engineering) > > Alma Maters: > > (1) Singapore Polytechnic > > (2) National University of Singapore > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > Email: space.time.universe@gmail.com > > MSN: teoenming@hotmail.com > > Mobile Phone: +65-9648-9798 > > Street: Bedok Reservoir Road > > Republic of Singapore > > > > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < > > space.time.universe@gmail.com> wrote: > > > > > Hi, > > > > > > I will try to stop unnecessary services on Dom 0 and do a disk I/O > > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight > (Singapore > > > time). That will be more conclusive. > > > > > > -- > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > > Engineering) > > > Alma Maters: > > > (1) Singapore Polytechnic > > > (2) National University of Singapore > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > Email: space.time.universe@gmail.com > > > MSN: teoenming@hotmail.com > > > Mobile Phone: +65-9648-9798 > > > Street: Bedok Reservoir Road > > > Republic of Singapore > > > > > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <jeremy@goop.org > >wrote: > > > > > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: > > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang > Enming) > > >> wrote: > > >> > > > >> >> Dear All, > > >> >> > > >> >> Here is my latest video presentation on VGA passthrough. Please > check > > >> out my > > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the > > >> Youtube > > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > > >> >> > > >> >> The "not enough free resources" problem for nVidia Geforce 8400 GS > PCI > > >> >> Express x16 graphics card in earlier presentation videos: > > >> >> > > >> >> http://www.youtube.com/watch?v=HNEiSI...< > > >> http://www.youtube.com/watch?v=HNEiSInrav0> > > >> >> > > >> >> http://www.youtube.com/watch?v=_hOT_9...< > > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> > > >> >> > > >> >> was fixed. Device manager in Windows XP HVM domU no longer shows an > > >> >> exclamation mark besides the nVidia Geforce 8400 GS graphics card. > The > > >> >> device is working properly and the resources tab shows the > available > > >> memory > > >> >> ranges. > > >> >> > > >> >> Full VGA passthrough to Windows XP HVM guest operating system using > Xen > > >> >> virtualization has been realized. I am now able to run 3-D video > > >> benchmarks > > >> >> on the passed through nVidia GeForce 8400 GS graphics card. > > >> >> > > >> >> All this is possible using Xen 3.5 hypervisor with Intel supplied > VGA > > >> >> passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6 > > >> which > > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 kernel > > >> >> 2.6.30-rc3. > > >> >> > > >> >> > > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could > cause > > >> > this HVM slowness? > > >> > > > >> > > >> I can''t think of anything, unless the new swiotlb code is causing > > >> problems. > > >> > > >> > Any tips how it could be debugged? > > >> > > > >> > > >> It would help to isolate where the slowness is coming from. How much > > >> slowdown are we talking about? Is the HVM domain doing lots of IO at > > >> the time? Are there any processes using lots of time in dom0? What''s > > >> the interrupt rate like? > > >> > > >> J > > >> > > > > > > > > > > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-12 08:44 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
After disabling the USB 1.0 driver, but leaving the USB 2.0 driver compiled statically into the kernel, I get an error with the USB 2.0 driver. This means I cannot use either of the USB 1.0 and USB 2.0 drivers. Please refer to my blog post here: http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> Hi, > > I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. > > But it gave me a USB host controller died error. > > Please refer to the error output here: > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > >> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang Enming) >> wrote: >> > Hi, >> > >> > Please refer to the disk I/O benchmark results here: >> > >> > >> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html >> > >> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than >> > 2.6.31-rc6. >> > >> >> Btw you might also want to test with the latest rebase/master tree; it''s >> at Linux 2.6.31 final now. >> >> -- Pasi >> >> > -- >> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> > Engineering) >> > Alma Maters: >> > (1) Singapore Polytechnic >> > (2) National University of Singapore >> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > Email: space.time.universe@gmail.com >> > MSN: teoenming@hotmail.com >> > Mobile Phone: +65-9648-9798 >> > Street: Bedok Reservoir Road >> > Republic of Singapore >> > >> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < >> > space.time.universe@gmail.com> wrote: >> > >> > > Hi, >> > > >> > > I will try to stop unnecessary services on Dom 0 and do a disk I/O >> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight >> (Singapore >> > > time). That will be more conclusive. >> > > >> > > -- >> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> > > Engineering) >> > > Alma Maters: >> > > (1) Singapore Polytechnic >> > > (2) National University of Singapore >> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > > Email: space.time.universe@gmail.com >> > > MSN: teoenming@hotmail.com >> > > Mobile Phone: +65-9648-9798 >> > > Street: Bedok Reservoir Road >> > > Republic of Singapore >> > > >> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <jeremy@goop.org >> >wrote: >> > > >> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: >> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang >> Enming) >> > >> wrote: >> > >> > >> > >> >> Dear All, >> > >> >> >> > >> >> Here is my latest video presentation on VGA passthrough. Please >> check >> > >> out my >> > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the >> > >> Youtube >> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 >> > >> >> >> > >> >> The "not enough free resources" problem for nVidia Geforce 8400 GS >> PCI >> > >> >> Express x16 graphics card in earlier presentation videos: >> > >> >> >> > >> >> http://www.youtube.com/watch?v=HNEiSI...< >> > >> http://www.youtube.com/watch?v=HNEiSInrav0> >> > >> >> >> > >> >> http://www.youtube.com/watch?v=_hOT_9...< >> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> >> > >> >> >> > >> >> was fixed. Device manager in Windows XP HVM domU no longer shows >> an >> > >> >> exclamation mark besides the nVidia Geforce 8400 GS graphics card. >> The >> > >> >> device is working properly and the resources tab shows the >> available >> > >> memory >> > >> >> ranges. >> > >> >> >> > >> >> Full VGA passthrough to Windows XP HVM guest operating system >> using Xen >> > >> >> virtualization has been realized. I am now able to run 3-D video >> > >> benchmarks >> > >> >> on the passed through nVidia GeForce 8400 GS graphics card. >> > >> >> >> > >> >> All this is possible using Xen 3.5 hypervisor with Intel supplied >> VGA >> > >> >> passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6 >> > >> which >> > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 kernel >> > >> >> 2.6.30-rc3. >> > >> >> >> > >> >> >> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could >> cause >> > >> > this HVM slowness? >> > >> > >> > >> >> > >> I can''t think of anything, unless the new swiotlb code is causing >> > >> problems. >> > >> >> > >> > Any tips how it could be debugged? >> > >> > >> > >> >> > >> It would help to isolate where the slowness is coming from. How much >> > >> slowdown are we talking about? Is the HVM domain doing lots of IO at >> > >> the time? Are there any processes using lots of time in dom0? >> What''s >> > >> the interrupt rate like? >> > >> >> > >> J >> > >> >> > > >> > > >> > > >> > > >> > > >> > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-12 10:11 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
I have disabled USB 1.0 and USB 2.0 drivers simultaneously and enabled USB 3.0 driver but the kernel stops loading. Then I totally disabled all USB support by passing the "nousb" parameter to the kernel but it still stops loading. pvops dom 0 2.6.31 final can''t work. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> After disabling the USB 1.0 driver, but leaving the USB 2.0 driver compiled > statically into the kernel, I get an error with the USB 2.0 driver. This > means I cannot use either of the USB 1.0 and USB 2.0 drivers. > > Please refer to my blog post here: > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> Hi, >> >> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. >> >> But it gave me a USB host controller died error. >> >> Please refer to the error output here: >> >> >> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >> >>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang Enming) >>> wrote: >>> > Hi, >>> > >>> > Please refer to the disk I/O benchmark results here: >>> > >>> > >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html >>> > >>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than >>> > 2.6.31-rc6. >>> > >>> >>> Btw you might also want to test with the latest rebase/master tree; it''s >>> at Linux 2.6.31 final now. >>> >>> -- Pasi >>> >>> > -- >>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >>> > Engineering) >>> > Alma Maters: >>> > (1) Singapore Polytechnic >>> > (2) National University of Singapore >>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > Email: space.time.universe@gmail.com >>> > MSN: teoenming@hotmail.com >>> > Mobile Phone: +65-9648-9798 >>> > Street: Bedok Reservoir Road >>> > Republic of Singapore >>> > >>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < >>> > space.time.universe@gmail.com> wrote: >>> > >>> > > Hi, >>> > > >>> > > I will try to stop unnecessary services on Dom 0 and do a disk I/O >>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight >>> (Singapore >>> > > time). That will be more conclusive. >>> > > >>> > > -- >>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>> BEng(Hons)(Mechanical >>> > > Engineering) >>> > > Alma Maters: >>> > > (1) Singapore Polytechnic >>> > > (2) National University of Singapore >>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > > Email: space.time.universe@gmail.com >>> > > MSN: teoenming@hotmail.com >>> > > Mobile Phone: +65-9648-9798 >>> > > Street: Bedok Reservoir Road >>> > > Republic of Singapore >>> > > >>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < >>> jeremy@goop.org>wrote: >>> > > >>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: >>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang >>> Enming) >>> > >> wrote: >>> > >> > >>> > >> >> Dear All, >>> > >> >> >>> > >> >> Here is my latest video presentation on VGA passthrough. Please >>> check >>> > >> out my >>> > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the >>> > >> Youtube >>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 >>> > >> >> >>> > >> >> The "not enough free resources" problem for nVidia Geforce 8400 >>> GS PCI >>> > >> >> Express x16 graphics card in earlier presentation videos: >>> > >> >> >>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< >>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> >>> > >> >> >>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< >>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> >>> > >> >> >>> > >> >> was fixed. Device manager in Windows XP HVM domU no longer shows >>> an >>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS graphics >>> card. The >>> > >> >> device is working properly and the resources tab shows the >>> available >>> > >> memory >>> > >> >> ranges. >>> > >> >> >>> > >> >> Full VGA passthrough to Windows XP HVM guest operating system >>> using Xen >>> > >> >> virtualization has been realized. I am now able to run 3-D video >>> > >> benchmarks >>> > >> >> on the passed through nVidia GeForce 8400 GS graphics card. >>> > >> >> >>> > >> >> All this is possible using Xen 3.5 hypervisor with Intel supplied >>> VGA >>> > >> >> passthrough patches. Instead of using pvops dom0 kernel >>> 2.6.31-rc6 >>> > >> which >>> > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 >>> kernel >>> > >> >> 2.6.30-rc3. >>> > >> >> >>> > >> >> >>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could >>> cause >>> > >> > this HVM slowness? >>> > >> > >>> > >> >>> > >> I can''t think of anything, unless the new swiotlb code is causing >>> > >> problems. >>> > >> >>> > >> > Any tips how it could be debugged? >>> > >> > >>> > >> >>> > >> It would help to isolate where the slowness is coming from. How >>> much >>> > >> slowdown are we talking about? Is the HVM domain doing lots of IO >>> at >>> > >> the time? Are there any processes using lots of time in dom0? >>> What''s >>> > >> the interrupt rate like? >>> > >> >>> > >> J >>> > >> >>> > > >>> > > >>> > > >>> > > >>> > > >>> >> >> >> >> >> > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-12 12:23 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I still can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. Really puzzled. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and enabled USB > 3.0 driver but the kernel stops loading. > > Then I totally disabled all USB support by passing the "nousb" parameter to > the kernel but it still stops loading. > > pvops dom 0 2.6.31 final can''t work. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> After disabling the USB 1.0 driver, but leaving the USB 2.0 driver >> compiled statically into the kernel, I get an error with the USB 2.0 driver. >> This means I cannot use either of the USB 1.0 and USB 2.0 drivers. >> >> Please refer to my blog post here: >> >> >> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < >> space.time.universe@gmail.com> wrote: >> >>> Hi, >>> >>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. >>> >>> But it gave me a USB host controller died error. >>> >>> Please refer to the error output here: >>> >>> >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html >>> >>> -- >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >>> Engineering) >>> Alma Maters: >>> (1) Singapore Polytechnic >>> (2) National University of Singapore >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> Email: space.time.universe@gmail.com >>> MSN: teoenming@hotmail.com >>> Mobile Phone: +65-9648-9798 >>> Street: Bedok Reservoir Road >>> Republic of Singapore >>> >>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >>> >>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang Enming) >>>> wrote: >>>> > Hi, >>>> > >>>> > Please refer to the disk I/O benchmark results here: >>>> > >>>> > >>>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html >>>> > >>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than >>>> > 2.6.31-rc6. >>>> > >>>> >>>> Btw you might also want to test with the latest rebase/master tree; it''s >>>> at Linux 2.6.31 final now. >>>> >>>> -- Pasi >>>> >>>> > -- >>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >>>> > Engineering) >>>> > Alma Maters: >>>> > (1) Singapore Polytechnic >>>> > (2) National University of Singapore >>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>>> > Email: space.time.universe@gmail.com >>>> > MSN: teoenming@hotmail.com >>>> > Mobile Phone: +65-9648-9798 >>>> > Street: Bedok Reservoir Road >>>> > Republic of Singapore >>>> > >>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < >>>> > space.time.universe@gmail.com> wrote: >>>> > >>>> > > Hi, >>>> > > >>>> > > I will try to stop unnecessary services on Dom 0 and do a disk I/O >>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight >>>> (Singapore >>>> > > time). That will be more conclusive. >>>> > > >>>> > > -- >>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>>> BEng(Hons)(Mechanical >>>> > > Engineering) >>>> > > Alma Maters: >>>> > > (1) Singapore Polytechnic >>>> > > (2) National University of Singapore >>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>>> > > Email: space.time.universe@gmail.com >>>> > > MSN: teoenming@hotmail.com >>>> > > Mobile Phone: +65-9648-9798 >>>> > > Street: Bedok Reservoir Road >>>> > > Republic of Singapore >>>> > > >>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < >>>> jeremy@goop.org>wrote: >>>> > > >>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: >>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang >>>> Enming) >>>> > >> wrote: >>>> > >> > >>>> > >> >> Dear All, >>>> > >> >> >>>> > >> >> Here is my latest video presentation on VGA passthrough. Please >>>> check >>>> > >> out my >>>> > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or >>>> the >>>> > >> Youtube >>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 >>>> > >> >> >>>> > >> >> The "not enough free resources" problem for nVidia Geforce 8400 >>>> GS PCI >>>> > >> >> Express x16 graphics card in earlier presentation videos: >>>> > >> >> >>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< >>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> >>>> > >> >> >>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< >>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> >>>> > >> >> >>>> > >> >> was fixed. Device manager in Windows XP HVM domU no longer shows >>>> an >>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS graphics >>>> card. The >>>> > >> >> device is working properly and the resources tab shows the >>>> available >>>> > >> memory >>>> > >> >> ranges. >>>> > >> >> >>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating system >>>> using Xen >>>> > >> >> virtualization has been realized. I am now able to run 3-D video >>>> > >> benchmarks >>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics card. >>>> > >> >> >>>> > >> >> All this is possible using Xen 3.5 hypervisor with Intel >>>> supplied VGA >>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel >>>> 2.6.31-rc6 >>>> > >> which >>>> > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 >>>> kernel >>>> > >> >> 2.6.30-rc3. >>>> > >> >> >>>> > >> >> >>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could >>>> cause >>>> > >> > this HVM slowness? >>>> > >> > >>>> > >> >>>> > >> I can''t think of anything, unless the new swiotlb code is causing >>>> > >> problems. >>>> > >> >>>> > >> > Any tips how it could be debugged? >>>> > >> > >>>> > >> >>>> > >> It would help to isolate where the slowness is coming from. How >>>> much >>>> > >> slowdown are we talking about? Is the HVM domain doing lots of IO >>>> at >>>> > >> the time? Are there any processes using lots of time in dom0? >>>> What''s >>>> > >> the interrupt rate like? >>>> > >> >>>> > >> J >>>> > >> >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> >>> >>> >>> >>> >>> >> >> >> >> > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-13 00:31 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
I have disabled all USB support in the kernel but I still couldn''t get pvops dom0-patched kernel 2.6.31 final to complete loading. All I get is a blinking cursor at the top left hand corner of the monitor. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I still > can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. > > Really puzzled. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and enabled USB >> 3.0 driver but the kernel stops loading. >> >> Then I totally disabled all USB support by passing the "nousb" parameter >> to the kernel but it still stops loading. >> >> pvops dom 0 2.6.31 final can''t work. >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < >> space.time.universe@gmail.com> wrote: >> >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 driver >>> compiled statically into the kernel, I get an error with the USB 2.0 driver. >>> This means I cannot use either of the USB 1.0 and USB 2.0 drivers. >>> >>> Please refer to my blog post here: >>> >>> >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html >>> >>> -- >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >>> Engineering) >>> Alma Maters: >>> (1) Singapore Polytechnic >>> (2) National University of Singapore >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> Email: space.time.universe@gmail.com >>> MSN: teoenming@hotmail.com >>> Mobile Phone: +65-9648-9798 >>> Street: Bedok Reservoir Road >>> Republic of Singapore >>> >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < >>> space.time.universe@gmail.com> wrote: >>> >>>> Hi, >>>> >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. >>>> >>>> But it gave me a USB host controller died error. >>>> >>>> Please refer to the error output here: >>>> >>>> >>>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html >>>> >>>> -- >>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >>>> Engineering) >>>> Alma Maters: >>>> (1) Singapore Polytechnic >>>> (2) National University of Singapore >>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>>> Email: space.time.universe@gmail.com >>>> MSN: teoenming@hotmail.com >>>> Mobile Phone: +65-9648-9798 >>>> Street: Bedok Reservoir Road >>>> Republic of Singapore >>>> >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >>>> >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang >>>>> Enming) wrote: >>>>> > Hi, >>>>> > >>>>> > Please refer to the disk I/O benchmark results here: >>>>> > >>>>> > >>>>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html >>>>> > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than >>>>> > 2.6.31-rc6. >>>>> > >>>>> >>>>> Btw you might also want to test with the latest rebase/master tree; >>>>> it''s >>>>> at Linux 2.6.31 final now. >>>>> >>>>> -- Pasi >>>>> >>>>> > -- >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>>>> BEng(Hons)(Mechanical >>>>> > Engineering) >>>>> > Alma Maters: >>>>> > (1) Singapore Polytechnic >>>>> > (2) National University of Singapore >>>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>>>> > Email: space.time.universe@gmail.com >>>>> > MSN: teoenming@hotmail.com >>>>> > Mobile Phone: +65-9648-9798 >>>>> > Street: Bedok Reservoir Road >>>>> > Republic of Singapore >>>>> > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < >>>>> > space.time.universe@gmail.com> wrote: >>>>> > >>>>> > > Hi, >>>>> > > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a disk I/O >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight >>>>> (Singapore >>>>> > > time). That will be more conclusive. >>>>> > > >>>>> > > -- >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>>>> BEng(Hons)(Mechanical >>>>> > > Engineering) >>>>> > > Alma Maters: >>>>> > > (1) Singapore Polytechnic >>>>> > > (2) National University of Singapore >>>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>>>> > > Email: space.time.universe@gmail.com >>>>> > > MSN: teoenming@hotmail.com >>>>> > > Mobile Phone: +65-9648-9798 >>>>> > > Street: Bedok Reservoir Road >>>>> > > Republic of Singapore >>>>> > > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < >>>>> jeremy@goop.org>wrote: >>>>> > > >>>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang >>>>> Enming) >>>>> > >> wrote: >>>>> > >> > >>>>> > >> >> Dear All, >>>>> > >> >> >>>>> > >> >> Here is my latest video presentation on VGA passthrough. Please >>>>> check >>>>> > >> out my >>>>> > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or >>>>> the >>>>> > >> Youtube >>>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 >>>>> > >> >> >>>>> > >> >> The "not enough free resources" problem for nVidia Geforce 8400 >>>>> GS PCI >>>>> > >> >> Express x16 graphics card in earlier presentation videos: >>>>> > >> >> >>>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< >>>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> >>>>> > >> >> >>>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< >>>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> >>>>> > >> >> >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no longer >>>>> shows an >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS graphics >>>>> card. The >>>>> > >> >> device is working properly and the resources tab shows the >>>>> available >>>>> > >> memory >>>>> > >> >> ranges. >>>>> > >> >> >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating system >>>>> using Xen >>>>> > >> >> virtualization has been realized. I am now able to run 3-D >>>>> video >>>>> > >> benchmarks >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics card. >>>>> > >> >> >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with Intel >>>>> supplied VGA >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel >>>>> 2.6.31-rc6 >>>>> > >> which >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 >>>>> kernel >>>>> > >> >> 2.6.30-rc3. >>>>> > >> >> >>>>> > >> >> >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could >>>>> cause >>>>> > >> > this HVM slowness? >>>>> > >> > >>>>> > >> >>>>> > >> I can''t think of anything, unless the new swiotlb code is causing >>>>> > >> problems. >>>>> > >> >>>>> > >> > Any tips how it could be debugged? >>>>> > >> > >>>>> > >> >>>>> > >> It would help to isolate where the slowness is coming from. How >>>>> much >>>>> > >> slowdown are we talking about? Is the HVM domain doing lots of IO >>>>> at >>>>> > >> the time? Are there any processes using lots of time in dom0? >>>>> What''s >>>>> > >> the interrupt rate like? >>>>> > >> >>>>> > >> J >>>>> > >> >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2009-Sep-13 09:12 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> I have disabled all USB support in the kernel but I still couldn''t get pvops > dom0-patched kernel 2.6.31 final to complete loading. All I get is a > blinking cursor at the top left hand corner of the monitor. >Did you try "nomodeset" parameter for the dom0 kernel? Have you tried setting up a serial console and capturing the kernel boot messages? -- Pasi> -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > > > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I still > > can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. > > > > Really puzzled. > > > > -- > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > Engineering) > > Alma Maters: > > (1) Singapore Polytechnic > > (2) National University of Singapore > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > Email: space.time.universe@gmail.com > > MSN: teoenming@hotmail.com > > Mobile Phone: +65-9648-9798 > > Street: Bedok Reservoir Road > > Republic of Singapore > > > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < > > space.time.universe@gmail.com> wrote: > > > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and enabled USB > >> 3.0 driver but the kernel stops loading. > >> > >> Then I totally disabled all USB support by passing the "nousb" parameter > >> to the kernel but it still stops loading. > >> > >> pvops dom 0 2.6.31 final can''t work. > >> > >> -- > >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > >> Engineering) > >> Alma Maters: > >> (1) Singapore Polytechnic > >> (2) National University of Singapore > >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > >> Email: space.time.universe@gmail.com > >> MSN: teoenming@hotmail.com > >> Mobile Phone: +65-9648-9798 > >> Street: Bedok Reservoir Road > >> Republic of Singapore > >> > >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < > >> space.time.universe@gmail.com> wrote: > >> > >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 driver > >>> compiled statically into the kernel, I get an error with the USB 2.0 driver. > >>> This means I cannot use either of the USB 1.0 and USB 2.0 drivers. > >>> > >>> Please refer to my blog post here: > >>> > >>> > >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html > >>> > >>> -- > >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > >>> Engineering) > >>> Alma Maters: > >>> (1) Singapore Polytechnic > >>> (2) National University of Singapore > >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > >>> Email: space.time.universe@gmail.com > >>> MSN: teoenming@hotmail.com > >>> Mobile Phone: +65-9648-9798 > >>> Street: Bedok Reservoir Road > >>> Republic of Singapore > >>> > >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < > >>> space.time.universe@gmail.com> wrote: > >>> > >>>> Hi, > >>>> > >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. > >>>> > >>>> But it gave me a USB host controller died error. > >>>> > >>>> Please refer to the error output here: > >>>> > >>>> > >>>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html > >>>> > >>>> -- > >>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > >>>> Engineering) > >>>> Alma Maters: > >>>> (1) Singapore Polytechnic > >>>> (2) National University of Singapore > >>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > >>>> Email: space.time.universe@gmail.com > >>>> MSN: teoenming@hotmail.com > >>>> Mobile Phone: +65-9648-9798 > >>>> Street: Bedok Reservoir Road > >>>> Republic of Singapore > >>>> > >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > >>>> > >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang > >>>>> Enming) wrote: > >>>>> > Hi, > >>>>> > > >>>>> > Please refer to the disk I/O benchmark results here: > >>>>> > > >>>>> > > >>>>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html > >>>>> > > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than > >>>>> > 2.6.31-rc6. > >>>>> > > >>>>> > >>>>> Btw you might also want to test with the latest rebase/master tree; > >>>>> it''s > >>>>> at Linux 2.6.31 final now. > >>>>> > >>>>> -- Pasi > >>>>> > >>>>> > -- > >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > >>>>> BEng(Hons)(Mechanical > >>>>> > Engineering) > >>>>> > Alma Maters: > >>>>> > (1) Singapore Polytechnic > >>>>> > (2) National University of Singapore > >>>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > >>>>> > Email: space.time.universe@gmail.com > >>>>> > MSN: teoenming@hotmail.com > >>>>> > Mobile Phone: +65-9648-9798 > >>>>> > Street: Bedok Reservoir Road > >>>>> > Republic of Singapore > >>>>> > > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < > >>>>> > space.time.universe@gmail.com> wrote: > >>>>> > > >>>>> > > Hi, > >>>>> > > > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a disk I/O > >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 tonight > >>>>> (Singapore > >>>>> > > time). That will be more conclusive. > >>>>> > > > >>>>> > > -- > >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > >>>>> BEng(Hons)(Mechanical > >>>>> > > Engineering) > >>>>> > > Alma Maters: > >>>>> > > (1) Singapore Polytechnic > >>>>> > > (2) National University of Singapore > >>>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > >>>>> > > Email: space.time.universe@gmail.com > >>>>> > > MSN: teoenming@hotmail.com > >>>>> > > Mobile Phone: +65-9648-9798 > >>>>> > > Street: Bedok Reservoir Road > >>>>> > > Republic of Singapore > >>>>> > > > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < > >>>>> jeremy@goop.org>wrote: > >>>>> > > > >>>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: > >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang > >>>>> Enming) > >>>>> > >> wrote: > >>>>> > >> > > >>>>> > >> >> Dear All, > >>>>> > >> >> > >>>>> > >> >> Here is my latest video presentation on VGA passthrough. Please > >>>>> check > >>>>> > >> out my > >>>>> > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or > >>>>> the > >>>>> > >> Youtube > >>>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > >>>>> > >> >> > >>>>> > >> >> The "not enough free resources" problem for nVidia Geforce 8400 > >>>>> GS PCI > >>>>> > >> >> Express x16 graphics card in earlier presentation videos: > >>>>> > >> >> > >>>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< > >>>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> > >>>>> > >> >> > >>>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< > >>>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> > >>>>> > >> >> > >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no longer > >>>>> shows an > >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS graphics > >>>>> card. The > >>>>> > >> >> device is working properly and the resources tab shows the > >>>>> available > >>>>> > >> memory > >>>>> > >> >> ranges. > >>>>> > >> >> > >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating system > >>>>> using Xen > >>>>> > >> >> virtualization has been realized. I am now able to run 3-D > >>>>> video > >>>>> > >> benchmarks > >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics card. > >>>>> > >> >> > >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with Intel > >>>>> supplied VGA > >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel > >>>>> 2.6.31-rc6 > >>>>> > >> which > >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 > >>>>> kernel > >>>>> > >> >> 2.6.30-rc3. > >>>>> > >> >> > >>>>> > >> >> > >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that could > >>>>> cause > >>>>> > >> > this HVM slowness? > >>>>> > >> > > >>>>> > >> > >>>>> > >> I can''t think of anything, unless the new swiotlb code is causing > >>>>> > >> problems. > >>>>> > >> > >>>>> > >> > Any tips how it could be debugged? > >>>>> > >> > > >>>>> > >> > >>>>> > >> It would help to isolate where the slowness is coming from. How > >>>>> much > >>>>> > >> slowdown are we talking about? Is the HVM domain doing lots of IO > >>>>> at > >>>>> > >> the time? Are there any processes using lots of time in dom0? > >>>>> What''s > >>>>> > >> the interrupt rate like? > >>>>> > >> > >>>>> > >> J > >>>>> > >> > >>>>> > > > >>>>> > > > >>>>> > > > >>>>> > > > >>>>> > > > >>>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >> > >> > >> > > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-13 18:22 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Dear Pasi, Yes, I have tried the nomodeset kernel parameter without result. I couldn''t get Jeremy''s rebase/master branch (pvops dom 0 kernel 2.6.31) to work despite disabling all of USB support in the kernel. I will troubleshoot this issue with the serial console enabled another time. Meanwhile, I got Linus'' mainline kernel 2.6.31 to work on my system. So apparently the dom 0 patched kernel 2.6.31 has some issues or I did not configure it properly. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sun, Sep 13, 2009 at 5:12 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang Enming) > wrote: > > I have disabled all USB support in the kernel but I still couldn''t get > pvops > > dom0-patched kernel 2.6.31 final to complete loading. All I get is a > > blinking cursor at the top left hand corner of the monitor. > > > > Did you try "nomodeset" parameter for the dom0 kernel? > > Have you tried setting up a serial console and capturing the kernel boot > messages? > > -- Pasi > > > -- > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > Engineering) > > Alma Maters: > > (1) Singapore Polytechnic > > (2) National University of Singapore > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > Email: space.time.universe@gmail.com > > MSN: teoenming@hotmail.com > > Mobile Phone: +65-9648-9798 > > Street: Bedok Reservoir Road > > Republic of Singapore > > > > On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < > > space.time.universe@gmail.com> wrote: > > > > > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I > still > > > can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. > > > > > > Really puzzled. > > > > > > -- > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > > Engineering) > > > Alma Maters: > > > (1) Singapore Polytechnic > > > (2) National University of Singapore > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > Email: space.time.universe@gmail.com > > > MSN: teoenming@hotmail.com > > > Mobile Phone: +65-9648-9798 > > > Street: Bedok Reservoir Road > > > Republic of Singapore > > > > > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < > > > space.time.universe@gmail.com> wrote: > > > > > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and enabled > USB > > >> 3.0 driver but the kernel stops loading. > > >> > > >> Then I totally disabled all USB support by passing the "nousb" > parameter > > >> to the kernel but it still stops loading. > > >> > > >> pvops dom 0 2.6.31 final can''t work. > > >> > > >> -- > > >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > >> Engineering) > > >> Alma Maters: > > >> (1) Singapore Polytechnic > > >> (2) National University of Singapore > > >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > >> Email: space.time.universe@gmail.com > > >> MSN: teoenming@hotmail.com > > >> Mobile Phone: +65-9648-9798 > > >> Street: Bedok Reservoir Road > > >> Republic of Singapore > > >> > > >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < > > >> space.time.universe@gmail.com> wrote: > > >> > > >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 driver > > >>> compiled statically into the kernel, I get an error with the USB 2.0 > driver. > > >>> This means I cannot use either of the USB 1.0 and USB 2.0 drivers. > > >>> > > >>> Please refer to my blog post here: > > >>> > > >>> > > >>> > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html > > >>> > > >>> -- > > >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > BEng(Hons)(Mechanical > > >>> Engineering) > > >>> Alma Maters: > > >>> (1) Singapore Polytechnic > > >>> (2) National University of Singapore > > >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > >>> Email: space.time.universe@gmail.com > > >>> MSN: teoenming@hotmail.com > > >>> Mobile Phone: +65-9648-9798 > > >>> Street: Bedok Reservoir Road > > >>> Republic of Singapore > > >>> > > >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < > > >>> space.time.universe@gmail.com> wrote: > > >>> > > >>>> Hi, > > >>>> > > >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. > > >>>> > > >>>> But it gave me a USB host controller died error. > > >>>> > > >>>> Please refer to the error output here: > > >>>> > > >>>> > > >>>> > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html > > >>>> > > >>>> -- > > >>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > BEng(Hons)(Mechanical > > >>>> Engineering) > > >>>> Alma Maters: > > >>>> (1) Singapore Polytechnic > > >>>> (2) National University of Singapore > > >>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > >>>> Email: space.time.universe@gmail.com > > >>>> MSN: teoenming@hotmail.com > > >>>> Mobile Phone: +65-9648-9798 > > >>>> Street: Bedok Reservoir Road > > >>>> Republic of Singapore > > >>>> > > >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> > wrote: > > >>>> > > >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang > > >>>>> Enming) wrote: > > >>>>> > Hi, > > >>>>> > > > >>>>> > Please refer to the disk I/O benchmark results here: > > >>>>> > > > >>>>> > > > >>>>> > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html > > >>>>> > > > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than > > >>>>> > 2.6.31-rc6. > > >>>>> > > > >>>>> > > >>>>> Btw you might also want to test with the latest rebase/master tree; > > >>>>> it''s > > >>>>> at Linux 2.6.31 final now. > > >>>>> > > >>>>> -- Pasi > > >>>>> > > >>>>> > -- > > >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > >>>>> BEng(Hons)(Mechanical > > >>>>> > Engineering) > > >>>>> > Alma Maters: > > >>>>> > (1) Singapore Polytechnic > > >>>>> > (2) National University of Singapore > > >>>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > >>>>> > Email: space.time.universe@gmail.com > > >>>>> > MSN: teoenming@hotmail.com > > >>>>> > Mobile Phone: +65-9648-9798 > > >>>>> > Street: Bedok Reservoir Road > > >>>>> > Republic of Singapore > > >>>>> > > > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < > > >>>>> > space.time.universe@gmail.com> wrote: > > >>>>> > > > >>>>> > > Hi, > > >>>>> > > > > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a disk > I/O > > >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 > tonight > > >>>>> (Singapore > > >>>>> > > time). That will be more conclusive. > > >>>>> > > > > >>>>> > > -- > > >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > >>>>> BEng(Hons)(Mechanical > > >>>>> > > Engineering) > > >>>>> > > Alma Maters: > > >>>>> > > (1) Singapore Polytechnic > > >>>>> > > (2) National University of Singapore > > >>>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > >>>>> > > Email: space.time.universe@gmail.com > > >>>>> > > MSN: teoenming@hotmail.com > > >>>>> > > Mobile Phone: +65-9648-9798 > > >>>>> > > Street: Bedok Reservoir Road > > >>>>> > > Republic of Singapore > > >>>>> > > > > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < > > >>>>> jeremy@goop.org>wrote: > > >>>>> > > > > >>>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: > > >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming > (Zhang > > >>>>> Enming) > > >>>>> > >> wrote: > > >>>>> > >> > > > >>>>> > >> >> Dear All, > > >>>>> > >> >> > > >>>>> > >> >> Here is my latest video presentation on VGA passthrough. > Please > > >>>>> check > > >>>>> > >> out my > > >>>>> > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/or > > >>>>> the > > >>>>> > >> Youtube > > >>>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > > >>>>> > >> >> > > >>>>> > >> >> The "not enough free resources" problem for nVidia Geforce > 8400 > > >>>>> GS PCI > > >>>>> > >> >> Express x16 graphics card in earlier presentation videos: > > >>>>> > >> >> > > >>>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< > > >>>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> > > >>>>> > >> >> > > >>>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< > > >>>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> > > >>>>> > >> >> > > >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no longer > > >>>>> shows an > > >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS > graphics > > >>>>> card. The > > >>>>> > >> >> device is working properly and the resources tab shows the > > >>>>> available > > >>>>> > >> memory > > >>>>> > >> >> ranges. > > >>>>> > >> >> > > >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating > system > > >>>>> using Xen > > >>>>> > >> >> virtualization has been realized. I am now able to run 3-D > > >>>>> video > > >>>>> > >> benchmarks > > >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics card. > > >>>>> > >> >> > > >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with Intel > > >>>>> supplied VGA > > >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel > > >>>>> 2.6.31-rc6 > > >>>>> > >> which > > >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 > > >>>>> kernel > > >>>>> > >> >> 2.6.30-rc3. > > >>>>> > >> >> > > >>>>> > >> >> > > >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that > could > > >>>>> cause > > >>>>> > >> > this HVM slowness? > > >>>>> > >> > > > >>>>> > >> > > >>>>> > >> I can''t think of anything, unless the new swiotlb code is > causing > > >>>>> > >> problems. > > >>>>> > >> > > >>>>> > >> > Any tips how it could be debugged? > > >>>>> > >> > > > >>>>> > >> > > >>>>> > >> It would help to isolate where the slowness is coming from. > How > > >>>>> much > > >>>>> > >> slowdown are we talking about? Is the HVM domain doing lots > of IO > > >>>>> at > > >>>>> > >> the time? Are there any processes using lots of time in dom0? > > >>>>> What''s > > >>>>> > >> the interrupt rate like? > > >>>>> > >> > > >>>>> > >> J > > >>>>> > >> > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>> > > >>> > > >>> > > >>> > > >> > > >> > > >> > > > > > > > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-13 18:28 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
USB Device Pass Through Succeeded How thick I must have been! In my earlier blog posts with VGA passthrough succeeded, I said that I couldn''t passthrough any USB device at all. As a matter of fact, Timothy had corrected my usbdevice directive in the guest config file in an earlier mailing list post but I didn''t take a careful look at the usbdevice directive at all. The correct usbdevice directive is: usbdevice = "host:vendorid:productid" I had used usbdevice = [ ''host:vendorid:productid'' ] which is completely erroneous. I need to omit the square brackets for USB device passthrough to work. I have now successfully passed through the USB optical mouse to the Windows XP Home HVM domU and using on-screen keyboard as a substitute for the physical USB keyboard. The reason I am doing this is because QEMU with Xen can only allow one USB device to be passed through at any one time. It was so obvious and I missed the obvious! Sorry Timothy! -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Mon, Sep 14, 2009 at 2:22 AM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> Dear Pasi, > > Yes, I have tried the nomodeset kernel parameter without result. > > I couldn''t get Jeremy''s rebase/master branch (pvops dom 0 kernel 2.6.31) to > work despite disabling all of USB support in the kernel. I will troubleshoot > this issue with the serial console enabled another time. > > Meanwhile, I got Linus'' mainline kernel 2.6.31 to work on my system. So > apparently the dom 0 patched kernel 2.6.31 has some issues or I did not > configure it properly. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sun, Sep 13, 2009 at 5:12 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > >> On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang Enming) >> wrote: >> > I have disabled all USB support in the kernel but I still couldn''t get >> pvops >> > dom0-patched kernel 2.6.31 final to complete loading. All I get is a >> > blinking cursor at the top left hand corner of the monitor. >> > >> >> Did you try "nomodeset" parameter for the dom0 kernel? >> >> Have you tried setting up a serial console and capturing the kernel boot >> messages? >> >> -- Pasi >> >> > -- >> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> > Engineering) >> > Alma Maters: >> > (1) Singapore Polytechnic >> > (2) National University of Singapore >> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > Email: space.time.universe@gmail.com >> > MSN: teoenming@hotmail.com >> > Mobile Phone: +65-9648-9798 >> > Street: Bedok Reservoir Road >> > Republic of Singapore >> > >> > On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < >> > space.time.universe@gmail.com> wrote: >> > >> > > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I >> still >> > > can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. >> > > >> > > Really puzzled. >> > > >> > > -- >> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> > > Engineering) >> > > Alma Maters: >> > > (1) Singapore Polytechnic >> > > (2) National University of Singapore >> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > > Email: space.time.universe@gmail.com >> > > MSN: teoenming@hotmail.com >> > > Mobile Phone: +65-9648-9798 >> > > Street: Bedok Reservoir Road >> > > Republic of Singapore >> > > >> > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < >> > > space.time.universe@gmail.com> wrote: >> > > >> > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and >> enabled USB >> > >> 3.0 driver but the kernel stops loading. >> > >> >> > >> Then I totally disabled all USB support by passing the "nousb" >> parameter >> > >> to the kernel but it still stops loading. >> > >> >> > >> pvops dom 0 2.6.31 final can''t work. >> > >> >> > >> -- >> > >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >> BEng(Hons)(Mechanical >> > >> Engineering) >> > >> Alma Maters: >> > >> (1) Singapore Polytechnic >> > >> (2) National University of Singapore >> > >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > >> Email: space.time.universe@gmail.com >> > >> MSN: teoenming@hotmail.com >> > >> Mobile Phone: +65-9648-9798 >> > >> Street: Bedok Reservoir Road >> > >> Republic of Singapore >> > >> >> > >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < >> > >> space.time.universe@gmail.com> wrote: >> > >> >> > >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 driver >> > >>> compiled statically into the kernel, I get an error with the USB 2.0 >> driver. >> > >>> This means I cannot use either of the USB 1.0 and USB 2.0 drivers. >> > >>> >> > >>> Please refer to my blog post here: >> > >>> >> > >>> >> > >>> >> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html >> > >>> >> > >>> -- >> > >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >> BEng(Hons)(Mechanical >> > >>> Engineering) >> > >>> Alma Maters: >> > >>> (1) Singapore Polytechnic >> > >>> (2) National University of Singapore >> > >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > >>> Email: space.time.universe@gmail.com >> > >>> MSN: teoenming@hotmail.com >> > >>> Mobile Phone: +65-9648-9798 >> > >>> Street: Bedok Reservoir Road >> > >>> Republic of Singapore >> > >>> >> > >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < >> > >>> space.time.universe@gmail.com> wrote: >> > >>> >> > >>>> Hi, >> > >>>> >> > >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. >> > >>>> >> > >>>> But it gave me a USB host controller died error. >> > >>>> >> > >>>> Please refer to the error output here: >> > >>>> >> > >>>> >> > >>>> >> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html >> > >>>> >> > >>>> -- >> > >>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >> BEng(Hons)(Mechanical >> > >>>> Engineering) >> > >>>> Alma Maters: >> > >>>> (1) Singapore Polytechnic >> > >>>> (2) National University of Singapore >> > >>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > >>>> Email: space.time.universe@gmail.com >> > >>>> MSN: teoenming@hotmail.com >> > >>>> Mobile Phone: +65-9648-9798 >> > >>>> Street: Bedok Reservoir Road >> > >>>> Republic of Singapore >> > >>>> >> > >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> >> wrote: >> > >>>> >> > >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang >> > >>>>> Enming) wrote: >> > >>>>> > Hi, >> > >>>>> > >> > >>>>> > Please refer to the disk I/O benchmark results here: >> > >>>>> > >> > >>>>> > >> > >>>>> >> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html >> > >>>>> > >> > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 >> than >> > >>>>> > 2.6.31-rc6. >> > >>>>> > >> > >>>>> >> > >>>>> Btw you might also want to test with the latest rebase/master >> tree; >> > >>>>> it''s >> > >>>>> at Linux 2.6.31 final now. >> > >>>>> >> > >>>>> -- Pasi >> > >>>>> >> > >>>>> > -- >> > >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >> > >>>>> BEng(Hons)(Mechanical >> > >>>>> > Engineering) >> > >>>>> > Alma Maters: >> > >>>>> > (1) Singapore Polytechnic >> > >>>>> > (2) National University of Singapore >> > >>>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > >>>>> > Email: space.time.universe@gmail.com >> > >>>>> > MSN: teoenming@hotmail.com >> > >>>>> > Mobile Phone: +65-9648-9798 >> > >>>>> > Street: Bedok Reservoir Road >> > >>>>> > Republic of Singapore >> > >>>>> > >> > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) >> < >> > >>>>> > space.time.universe@gmail.com> wrote: >> > >>>>> > >> > >>>>> > > Hi, >> > >>>>> > > >> > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a disk >> I/O >> > >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 >> tonight >> > >>>>> (Singapore >> > >>>>> > > time). That will be more conclusive. >> > >>>>> > > >> > >>>>> > > -- >> > >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >> > >>>>> BEng(Hons)(Mechanical >> > >>>>> > > Engineering) >> > >>>>> > > Alma Maters: >> > >>>>> > > (1) Singapore Polytechnic >> > >>>>> > > (2) National University of Singapore >> > >>>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> > >>>>> > > Email: space.time.universe@gmail.com >> > >>>>> > > MSN: teoenming@hotmail.com >> > >>>>> > > Mobile Phone: +65-9648-9798 >> > >>>>> > > Street: Bedok Reservoir Road >> > >>>>> > > Republic of Singapore >> > >>>>> > > >> > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < >> > >>>>> jeremy@goop.org>wrote: >> > >>>>> > > >> > >>>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: >> > >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming >> (Zhang >> > >>>>> Enming) >> > >>>>> > >> wrote: >> > >>>>> > >> > >> > >>>>> > >> >> Dear All, >> > >>>>> > >> >> >> > >>>>> > >> >> Here is my latest video presentation on VGA passthrough. >> Please >> > >>>>> check >> > >>>>> > >> out my >> > >>>>> > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/or >> > >>>>> the >> > >>>>> > >> Youtube >> > >>>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 >> > >>>>> > >> >> >> > >>>>> > >> >> The "not enough free resources" problem for nVidia Geforce >> 8400 >> > >>>>> GS PCI >> > >>>>> > >> >> Express x16 graphics card in earlier presentation videos: >> > >>>>> > >> >> >> > >>>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< >> > >>>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> >> > >>>>> > >> >> >> > >>>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< >> > >>>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> >> > >>>>> > >> >> >> > >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no longer >> > >>>>> shows an >> > >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS >> graphics >> > >>>>> card. The >> > >>>>> > >> >> device is working properly and the resources tab shows the >> > >>>>> available >> > >>>>> > >> memory >> > >>>>> > >> >> ranges. >> > >>>>> > >> >> >> > >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating >> system >> > >>>>> using Xen >> > >>>>> > >> >> virtualization has been realized. I am now able to run 3-D >> > >>>>> video >> > >>>>> > >> benchmarks >> > >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics >> card. >> > >>>>> > >> >> >> > >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with Intel >> > >>>>> supplied VGA >> > >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel >> > >>>>> 2.6.31-rc6 >> > >>>>> > >> which >> > >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops >> dom0 >> > >>>>> kernel >> > >>>>> > >> >> 2.6.30-rc3. >> > >>>>> > >> >> >> > >>>>> > >> >> >> > >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that >> could >> > >>>>> cause >> > >>>>> > >> > this HVM slowness? >> > >>>>> > >> > >> > >>>>> > >> >> > >>>>> > >> I can''t think of anything, unless the new swiotlb code is >> causing >> > >>>>> > >> problems. >> > >>>>> > >> >> > >>>>> > >> > Any tips how it could be debugged? >> > >>>>> > >> > >> > >>>>> > >> >> > >>>>> > >> It would help to isolate where the slowness is coming from. >> How >> > >>>>> much >> > >>>>> > >> slowdown are we talking about? Is the HVM domain doing lots >> of IO >> > >>>>> at >> > >>>>> > >> the time? Are there any processes using lots of time in >> dom0? >> > >>>>> What''s >> > >>>>> > >> the interrupt rate like? >> > >>>>> > >> >> > >>>>> > >> J >> > >>>>> > >> >> > >>>>> > > >> > >>>>> > > >> > >>>>> > > >> > >>>>> > > >> > >>>>> > > >> > >>>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >> >> > >> >> > >> >> > > >> > > >> > > >> > > >> > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-13 19:01 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi All, Here is my working Windows XP Home Edition 32-bit HVM domU guest configuration file: <CODE> #import os, re #arch = os.uname()[4] #if re.search(''64'', arch): # arch_libdir = ''lib64'' #else: # arch_libdir = ''lib'' kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' memory = 3072 # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. #shadow_memory = 8 name = "winxphome32" vif = [ ''bridge=eth0'' ] acpi = 1 apic = 1 disk = [ ''phy:/dev/virtualmachines/winxphome32,hda,w'', ''phy:/dev/sr0,hdc:cdrom,r'' ] #device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' #device_model = ''/usr/'' + ''lib'' + ''/xen/bin/qemu-dm'' device_model = ''qemu-dm'' #----------------------------------------------------------------------------- # boot on floppy (a), hard disk (c) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot="cd" #sdl=0 #vnc=1 #vncconsole=1 #vncpasswd='''' #serial=''pty'' #usbdevice=''tablet'' # onboard #pci = [ ''00:02.0'' ] # nvidia pci = [ ''01:00.0'' ] vcpus=2 # No passthrough #gfx_passthru=0 # onboard #gfx_passthru=1 # nvidia gfx_passthru=2 # Can only pass through one usb device at a time usb=1 # USB Unity Green Mouse #usbdevice = ''host:1bcf:0007'' # USB A1pro Black Mouse usbdevice = ''host:15d9:0a41'' # USB Keyboard #usbdevice = ''host:0603:00f2'' # USB Sony IC Recorder #usbdevice = ''host:054c:0271'' # USB Lexmark X1270 Color Printer #usbdevice = ''host:043d:00ff'' # USB Lexmark X1270 Photo Scanner #usbdevice = ''host:043d:007d'' # USB Lexmark X1270 Generic Hub #usbdevice = ''host:043d:007a'' </CODE> -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Mon, Sep 14, 2009 at 2:28 AM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> USB Device Pass Through Succeeded > > How thick I must have been! In my earlier blog posts with VGA passthrough > succeeded, I said that I couldn''t passthrough any USB device at all. > > As a matter of fact, Timothy had corrected my usbdevice directive in the > guest config file in an earlier mailing list post but I didn''t take a > careful look at the usbdevice directive at all. The correct usbdevice > directive is: > > usbdevice = "host:vendorid:productid" > > I had used > > usbdevice = [ ''host:vendorid:productid'' ] > > which is completely erroneous. I need to omit the square brackets for USB > device passthrough to work. > > I have now successfully passed through the USB optical mouse to the Windows > XP Home HVM domU and using on-screen keyboard as a substitute for the > physical USB keyboard. > > The reason I am doing this is because QEMU with Xen can only allow one USB > device to be passed through at any one time. > > It was so obvious and I missed the obvious! > > Sorry Timothy! > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Mon, Sep 14, 2009 at 2:22 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> Dear Pasi, >> >> Yes, I have tried the nomodeset kernel parameter without result. >> >> I couldn''t get Jeremy''s rebase/master branch (pvops dom 0 kernel 2.6.31) >> to work despite disabling all of USB support in the kernel. I will >> troubleshoot this issue with the serial console enabled another time. >> >> Meanwhile, I got Linus'' mainline kernel 2.6.31 to work on my system. So >> apparently the dom 0 patched kernel 2.6.31 has some issues or I did not >> configure it properly. >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> On Sun, Sep 13, 2009 at 5:12 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >> >>> On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang Enming) >>> wrote: >>> > I have disabled all USB support in the kernel but I still couldn''t get >>> pvops >>> > dom0-patched kernel 2.6.31 final to complete loading. All I get is a >>> > blinking cursor at the top left hand corner of the monitor. >>> > >>> >>> Did you try "nomodeset" parameter for the dom0 kernel? >>> >>> Have you tried setting up a serial console and capturing the kernel boot >>> messages? >>> >>> -- Pasi >>> >>> > -- >>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >>> > Engineering) >>> > Alma Maters: >>> > (1) Singapore Polytechnic >>> > (2) National University of Singapore >>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > Email: space.time.universe@gmail.com >>> > MSN: teoenming@hotmail.com >>> > Mobile Phone: +65-9648-9798 >>> > Street: Bedok Reservoir Road >>> > Republic of Singapore >>> > >>> > On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < >>> > space.time.universe@gmail.com> wrote: >>> > >>> > > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I >>> still >>> > > can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. >>> > > >>> > > Really puzzled. >>> > > >>> > > -- >>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>> BEng(Hons)(Mechanical >>> > > Engineering) >>> > > Alma Maters: >>> > > (1) Singapore Polytechnic >>> > > (2) National University of Singapore >>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > > Email: space.time.universe@gmail.com >>> > > MSN: teoenming@hotmail.com >>> > > Mobile Phone: +65-9648-9798 >>> > > Street: Bedok Reservoir Road >>> > > Republic of Singapore >>> > > >>> > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < >>> > > space.time.universe@gmail.com> wrote: >>> > > >>> > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and >>> enabled USB >>> > >> 3.0 driver but the kernel stops loading. >>> > >> >>> > >> Then I totally disabled all USB support by passing the "nousb" >>> parameter >>> > >> to the kernel but it still stops loading. >>> > >> >>> > >> pvops dom 0 2.6.31 final can''t work. >>> > >> >>> > >> -- >>> > >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>> BEng(Hons)(Mechanical >>> > >> Engineering) >>> > >> Alma Maters: >>> > >> (1) Singapore Polytechnic >>> > >> (2) National University of Singapore >>> > >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > >> Email: space.time.universe@gmail.com >>> > >> MSN: teoenming@hotmail.com >>> > >> Mobile Phone: +65-9648-9798 >>> > >> Street: Bedok Reservoir Road >>> > >> Republic of Singapore >>> > >> >>> > >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < >>> > >> space.time.universe@gmail.com> wrote: >>> > >> >>> > >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 driver >>> > >>> compiled statically into the kernel, I get an error with the USB >>> 2.0 driver. >>> > >>> This means I cannot use either of the USB 1.0 and USB 2.0 drivers. >>> > >>> >>> > >>> Please refer to my blog post here: >>> > >>> >>> > >>> >>> > >>> >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html >>> > >>> >>> > >>> -- >>> > >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>> BEng(Hons)(Mechanical >>> > >>> Engineering) >>> > >>> Alma Maters: >>> > >>> (1) Singapore Polytechnic >>> > >>> (2) National University of Singapore >>> > >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > >>> Email: space.time.universe@gmail.com >>> > >>> MSN: teoenming@hotmail.com >>> > >>> Mobile Phone: +65-9648-9798 >>> > >>> Street: Bedok Reservoir Road >>> > >>> Republic of Singapore >>> > >>> >>> > >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < >>> > >>> space.time.universe@gmail.com> wrote: >>> > >>> >>> > >>>> Hi, >>> > >>>> >>> > >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. >>> > >>>> >>> > >>>> But it gave me a USB host controller died error. >>> > >>>> >>> > >>>> Please refer to the error output here: >>> > >>>> >>> > >>>> >>> > >>>> >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html >>> > >>>> >>> > >>>> -- >>> > >>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>> BEng(Hons)(Mechanical >>> > >>>> Engineering) >>> > >>>> Alma Maters: >>> > >>>> (1) Singapore Polytechnic >>> > >>>> (2) National University of Singapore >>> > >>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > >>>> Email: space.time.universe@gmail.com >>> > >>>> MSN: teoenming@hotmail.com >>> > >>>> Mobile Phone: +65-9648-9798 >>> > >>>> Street: Bedok Reservoir Road >>> > >>>> Republic of Singapore >>> > >>>> >>> > >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> >>> wrote: >>> > >>>> >>> > >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang >>> > >>>>> Enming) wrote: >>> > >>>>> > Hi, >>> > >>>>> > >>> > >>>>> > Please refer to the disk I/O benchmark results here: >>> > >>>>> > >>> > >>>>> > >>> > >>>>> >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html >>> > >>>>> > >>> > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 >>> than >>> > >>>>> > 2.6.31-rc6. >>> > >>>>> > >>> > >>>>> >>> > >>>>> Btw you might also want to test with the latest rebase/master >>> tree; >>> > >>>>> it''s >>> > >>>>> at Linux 2.6.31 final now. >>> > >>>>> >>> > >>>>> -- Pasi >>> > >>>>> >>> > >>>>> > -- >>> > >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>> > >>>>> BEng(Hons)(Mechanical >>> > >>>>> > Engineering) >>> > >>>>> > Alma Maters: >>> > >>>>> > (1) Singapore Polytechnic >>> > >>>>> > (2) National University of Singapore >>> > >>>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > >>>>> > Email: space.time.universe@gmail.com >>> > >>>>> > MSN: teoenming@hotmail.com >>> > >>>>> > Mobile Phone: +65-9648-9798 >>> > >>>>> > Street: Bedok Reservoir Road >>> > >>>>> > Republic of Singapore >>> > >>>>> > >>> > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) >>> < >>> > >>>>> > space.time.universe@gmail.com> wrote: >>> > >>>>> > >>> > >>>>> > > Hi, >>> > >>>>> > > >>> > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a >>> disk I/O >>> > >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 >>> tonight >>> > >>>>> (Singapore >>> > >>>>> > > time). That will be more conclusive. >>> > >>>>> > > >>> > >>>>> > > -- >>> > >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) >>> > >>>>> BEng(Hons)(Mechanical >>> > >>>>> > > Engineering) >>> > >>>>> > > Alma Maters: >>> > >>>>> > > (1) Singapore Polytechnic >>> > >>>>> > > (2) National University of Singapore >>> > >>>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> > >>>>> > > Email: space.time.universe@gmail.com >>> > >>>>> > > MSN: teoenming@hotmail.com >>> > >>>>> > > Mobile Phone: +65-9648-9798 >>> > >>>>> > > Street: Bedok Reservoir Road >>> > >>>>> > > Republic of Singapore >>> > >>>>> > > >>> > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < >>> > >>>>> jeremy@goop.org>wrote: >>> > >>>>> > > >>> > >>>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: >>> > >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming >>> (Zhang >>> > >>>>> Enming) >>> > >>>>> > >> wrote: >>> > >>>>> > >> > >>> > >>>>> > >> >> Dear All, >>> > >>>>> > >> >> >>> > >>>>> > >> >> Here is my latest video presentation on VGA passthrough. >>> Please >>> > >>>>> check >>> > >>>>> > >> out my >>> > >>>>> > >> >> blog at >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/ or >>> > >>>>> the >>> > >>>>> > >> Youtube >>> > >>>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 >>> > >>>>> > >> >> >>> > >>>>> > >> >> The "not enough free resources" problem for nVidia >>> Geforce 8400 >>> > >>>>> GS PCI >>> > >>>>> > >> >> Express x16 graphics card in earlier presentation videos: >>> > >>>>> > >> >> >>> > >>>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< >>> > >>>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> >>> > >>>>> > >> >> >>> > >>>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< >>> > >>>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> >>> > >>>>> > >> >> >>> > >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no >>> longer >>> > >>>>> shows an >>> > >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS >>> graphics >>> > >>>>> card. The >>> > >>>>> > >> >> device is working properly and the resources tab shows >>> the >>> > >>>>> available >>> > >>>>> > >> memory >>> > >>>>> > >> >> ranges. >>> > >>>>> > >> >> >>> > >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating >>> system >>> > >>>>> using Xen >>> > >>>>> > >> >> virtualization has been realized. I am now able to run >>> 3-D >>> > >>>>> video >>> > >>>>> > >> benchmarks >>> > >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics >>> card. >>> > >>>>> > >> >> >>> > >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with Intel >>> > >>>>> supplied VGA >>> > >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel >>> > >>>>> 2.6.31-rc6 >>> > >>>>> > >> which >>> > >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops >>> dom0 >>> > >>>>> kernel >>> > >>>>> > >> >> 2.6.30-rc3. >>> > >>>>> > >> >> >>> > >>>>> > >> >> >>> > >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that >>> could >>> > >>>>> cause >>> > >>>>> > >> > this HVM slowness? >>> > >>>>> > >> > >>> > >>>>> > >> >>> > >>>>> > >> I can''t think of anything, unless the new swiotlb code is >>> causing >>> > >>>>> > >> problems. >>> > >>>>> > >> >>> > >>>>> > >> > Any tips how it could be debugged? >>> > >>>>> > >> > >>> > >>>>> > >> >>> > >>>>> > >> It would help to isolate where the slowness is coming from. >>> How >>> > >>>>> much >>> > >>>>> > >> slowdown are we talking about? Is the HVM domain doing lots >>> of IO >>> > >>>>> at >>> > >>>>> > >> the time? Are there any processes using lots of time in >>> dom0? >>> > >>>>> What''s >>> > >>>>> > >> the interrupt rate like? >>> > >>>>> > >> >>> > >>>>> > >> J >>> > >>>>> > >> >>> > >>>>> > > >>> > >>>>> > > >>> > >>>>> > > >>> > >>>>> > > >>> > >>>>> > > >>> > >>>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>> >>> > >>> >>> > >>> >>> > >>> >>> > >> >>> > >> >>> > >> >>> > > >>> > > >>> > > >>> > > >>> >> >> >> >> > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2009-Sep-13 19:26 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Mon, Sep 14, 2009 at 02:22:00AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Dear Pasi, > > Yes, I have tried the nomodeset kernel parameter without result. > > I couldn''t get Jeremy''s rebase/master branch (pvops dom 0 kernel 2.6.31) to > work despite disabling all of USB support in the kernel. I will troubleshoot > this issue with the serial console enabled another time. > > Meanwhile, I got Linus'' mainline kernel 2.6.31 to work on my system. So > apparently the dom 0 patched kernel 2.6.31 has some issues or I did not > configure it properly. >Did you try pv_ops dom0 kernel with dom0_mem=1024M parameter for xen.gz? Some others are seeing problems with the recent kernels if they have>4096M of memory for dom0.-- Pasi> -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sun, Sep 13, 2009 at 5:12 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > > On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang Enming) > > wrote: > > > I have disabled all USB support in the kernel but I still couldn''t get > > pvops > > > dom0-patched kernel 2.6.31 final to complete loading. All I get is a > > > blinking cursor at the top left hand corner of the monitor. > > > > > > > Did you try "nomodeset" parameter for the dom0 kernel? > > > > Have you tried setting up a serial console and capturing the kernel boot > > messages? > > > > -- Pasi > > > > > -- > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > > Engineering) > > > Alma Maters: > > > (1) Singapore Polytechnic > > > (2) National University of Singapore > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > Email: space.time.universe@gmail.com > > > MSN: teoenming@hotmail.com > > > Mobile Phone: +65-9648-9798 > > > Street: Bedok Reservoir Road > > > Republic of Singapore > > > > > > On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < > > > space.time.universe@gmail.com> wrote: > > > > > > > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I > > still > > > > can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. > > > > > > > > Really puzzled. > > > > > > > > -- > > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > > > Engineering) > > > > Alma Maters: > > > > (1) Singapore Polytechnic > > > > (2) National University of Singapore > > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > Email: space.time.universe@gmail.com > > > > MSN: teoenming@hotmail.com > > > > Mobile Phone: +65-9648-9798 > > > > Street: Bedok Reservoir Road > > > > Republic of Singapore > > > > > > > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < > > > > space.time.universe@gmail.com> wrote: > > > > > > > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and enabled > > USB > > > >> 3.0 driver but the kernel stops loading. > > > >> > > > >> Then I totally disabled all USB support by passing the "nousb" > > parameter > > > >> to the kernel but it still stops loading. > > > >> > > > >> pvops dom 0 2.6.31 final can''t work. > > > >> > > > >> -- > > > >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > > >> Engineering) > > > >> Alma Maters: > > > >> (1) Singapore Polytechnic > > > >> (2) National University of Singapore > > > >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > >> Email: space.time.universe@gmail.com > > > >> MSN: teoenming@hotmail.com > > > >> Mobile Phone: +65-9648-9798 > > > >> Street: Bedok Reservoir Road > > > >> Republic of Singapore > > > >> > > > >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < > > > >> space.time.universe@gmail.com> wrote: > > > >> > > > >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 driver > > > >>> compiled statically into the kernel, I get an error with the USB 2.0 > > driver. > > > >>> This means I cannot use either of the USB 1.0 and USB 2.0 drivers. > > > >>> > > > >>> Please refer to my blog post here: > > > >>> > > > >>> > > > >>> > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html > > > >>> > > > >>> -- > > > >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > BEng(Hons)(Mechanical > > > >>> Engineering) > > > >>> Alma Maters: > > > >>> (1) Singapore Polytechnic > > > >>> (2) National University of Singapore > > > >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > >>> Email: space.time.universe@gmail.com > > > >>> MSN: teoenming@hotmail.com > > > >>> Mobile Phone: +65-9648-9798 > > > >>> Street: Bedok Reservoir Road > > > >>> Republic of Singapore > > > >>> > > > >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) < > > > >>> space.time.universe@gmail.com> wrote: > > > >>> > > > >>>> Hi, > > > >>>> > > > >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. > > > >>>> > > > >>>> But it gave me a USB host controller died error. > > > >>>> > > > >>>> Please refer to the error output here: > > > >>>> > > > >>>> > > > >>>> > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html > > > >>>> > > > >>>> -- > > > >>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > BEng(Hons)(Mechanical > > > >>>> Engineering) > > > >>>> Alma Maters: > > > >>>> (1) Singapore Polytechnic > > > >>>> (2) National University of Singapore > > > >>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > >>>> Email: space.time.universe@gmail.com > > > >>>> MSN: teoenming@hotmail.com > > > >>>> Mobile Phone: +65-9648-9798 > > > >>>> Street: Bedok Reservoir Road > > > >>>> Republic of Singapore > > > >>>> > > > >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi> > > wrote: > > > >>>> > > > >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhang > > > >>>>> Enming) wrote: > > > >>>>> > Hi, > > > >>>>> > > > > >>>>> > Please refer to the disk I/O benchmark results here: > > > >>>>> > > > > >>>>> > > > > >>>>> > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html > > > >>>>> > > > > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 than > > > >>>>> > 2.6.31-rc6. > > > >>>>> > > > > >>>>> > > > >>>>> Btw you might also want to test with the latest rebase/master tree; > > > >>>>> it''s > > > >>>>> at Linux 2.6.31 final now. > > > >>>>> > > > >>>>> -- Pasi > > > >>>>> > > > >>>>> > -- > > > >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > >>>>> BEng(Hons)(Mechanical > > > >>>>> > Engineering) > > > >>>>> > Alma Maters: > > > >>>>> > (1) Singapore Polytechnic > > > >>>>> > (2) National University of Singapore > > > >>>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > >>>>> > Email: space.time.universe@gmail.com > > > >>>>> > MSN: teoenming@hotmail.com > > > >>>>> > Mobile Phone: +65-9648-9798 > > > >>>>> > Street: Bedok Reservoir Road > > > >>>>> > Republic of Singapore > > > >>>>> > > > > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming) < > > > >>>>> > space.time.universe@gmail.com> wrote: > > > >>>>> > > > > >>>>> > > Hi, > > > >>>>> > > > > > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a disk > > I/O > > > >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 > > tonight > > > >>>>> (Singapore > > > >>>>> > > time). That will be more conclusive. > > > >>>>> > > > > > >>>>> > > -- > > > >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > >>>>> BEng(Hons)(Mechanical > > > >>>>> > > Engineering) > > > >>>>> > > Alma Maters: > > > >>>>> > > (1) Singapore Polytechnic > > > >>>>> > > (2) National University of Singapore > > > >>>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > >>>>> > > Email: space.time.universe@gmail.com > > > >>>>> > > MSN: teoenming@hotmail.com > > > >>>>> > > Mobile Phone: +65-9648-9798 > > > >>>>> > > Street: Bedok Reservoir Road > > > >>>>> > > Republic of Singapore > > > >>>>> > > > > > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < > > > >>>>> jeremy@goop.org>wrote: > > > >>>>> > > > > > >>>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: > > > >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming > > (Zhang > > > >>>>> Enming) > > > >>>>> > >> wrote: > > > >>>>> > >> > > > > >>>>> > >> >> Dear All, > > > >>>>> > >> >> > > > >>>>> > >> >> Here is my latest video presentation on VGA passthrough. > > Please > > > >>>>> check > > > >>>>> > >> out my > > > >>>>> > >> >> blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/or > > > >>>>> the > > > >>>>> > >> Youtube > > > >>>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > > > >>>>> > >> >> > > > >>>>> > >> >> The "not enough free resources" problem for nVidia Geforce > > 8400 > > > >>>>> GS PCI > > > >>>>> > >> >> Express x16 graphics card in earlier presentation videos: > > > >>>>> > >> >> > > > >>>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< > > > >>>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> > > > >>>>> > >> >> > > > >>>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< > > > >>>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> > > > >>>>> > >> >> > > > >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no longer > > > >>>>> shows an > > > >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS > > graphics > > > >>>>> card. The > > > >>>>> > >> >> device is working properly and the resources tab shows the > > > >>>>> available > > > >>>>> > >> memory > > > >>>>> > >> >> ranges. > > > >>>>> > >> >> > > > >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating > > system > > > >>>>> using Xen > > > >>>>> > >> >> virtualization has been realized. I am now able to run 3-D > > > >>>>> video > > > >>>>> > >> benchmarks > > > >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics card. > > > >>>>> > >> >> > > > >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with Intel > > > >>>>> supplied VGA > > > >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel > > > >>>>> 2.6.31-rc6 > > > >>>>> > >> which > > > >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops dom0 > > > >>>>> kernel > > > >>>>> > >> >> 2.6.30-rc3. > > > >>>>> > >> >> > > > >>>>> > >> >> > > > >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 that > > could > > > >>>>> cause > > > >>>>> > >> > this HVM slowness? > > > >>>>> > >> > > > > >>>>> > >> > > > >>>>> > >> I can''t think of anything, unless the new swiotlb code is > > causing > > > >>>>> > >> problems. > > > >>>>> > >> > > > >>>>> > >> > Any tips how it could be debugged? > > > >>>>> > >> > > > > >>>>> > >> > > > >>>>> > >> It would help to isolate where the slowness is coming from. > > How > > > >>>>> much > > > >>>>> > >> slowdown are we talking about? Is the HVM domain doing lots > > of IO > > > >>>>> at > > > >>>>> > >> the time? Are there any processes using lots of time in dom0? > > > >>>>> What''s > > > >>>>> > >> the interrupt rate like? > > > >>>>> > >> > > > >>>>> > >> J > > > >>>>> > >> > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > >>>> > > > >>>> > > > >>>> > > > >>>> > > > >>>> > > > >>> > > > >>> > > > >>> > > > >>> > > > >> > > > >> > > > >> > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-13 19:33 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Dear Pasi, No, I have not tried it yet. I have 8 GB of memory on my computer. What does dom0_mem parameter do? If I set dom0_mem, does it mean I cannot access more than 4 GB of memory even though I have 8 GB of memory? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Mon, Sep 14, 2009 at 3:26 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Mon, Sep 14, 2009 at 02:22:00AM +0800, Mr. Teo En Ming (Zhang Enming) > wrote: > > Dear Pasi, > > > > Yes, I have tried the nomodeset kernel parameter without result. > > > > I couldn''t get Jeremy''s rebase/master branch (pvops dom 0 kernel 2.6.31) > to > > work despite disabling all of USB support in the kernel. I will > troubleshoot > > this issue with the serial console enabled another time. > > > > Meanwhile, I got Linus'' mainline kernel 2.6.31 to work on my system. So > > apparently the dom 0 patched kernel 2.6.31 has some issues or I did not > > configure it properly. > > > > Did you try pv_ops dom0 kernel with dom0_mem=1024M parameter for xen.gz? > > Some others are seeing problems with the recent kernels if they have > >4096M of memory for dom0. > > -- Pasi > > > -- > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > Engineering) > > Alma Maters: > > (1) Singapore Polytechnic > > (2) National University of Singapore > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > Email: space.time.universe@gmail.com > > MSN: teoenming@hotmail.com > > Mobile Phone: +65-9648-9798 > > Street: Bedok Reservoir Road > > Republic of Singapore > > > > On Sun, Sep 13, 2009 at 5:12 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > > > > On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang > Enming) > > > wrote: > > > > I have disabled all USB support in the kernel but I still couldn''t > get > > > pvops > > > > dom0-patched kernel 2.6.31 final to complete loading. All I get is a > > > > blinking cursor at the top left hand corner of the monitor. > > > > > > > > > > Did you try "nomodeset" parameter for the dom0 kernel? > > > > > > Have you tried setting up a serial console and capturing the kernel > boot > > > messages? > > > > > > -- Pasi > > > > > > > -- > > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > BEng(Hons)(Mechanical > > > > Engineering) > > > > Alma Maters: > > > > (1) Singapore Polytechnic > > > > (2) National University of Singapore > > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > Email: space.time.universe@gmail.com > > > > MSN: teoenming@hotmail.com > > > > Mobile Phone: +65-9648-9798 > > > > Street: Bedok Reservoir Road > > > > Republic of Singapore > > > > > > > > On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < > > > > space.time.universe@gmail.com> wrote: > > > > > > > > > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but > I > > > still > > > > > can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. > > > > > > > > > > Really puzzled. > > > > > > > > > > -- > > > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > BEng(Hons)(Mechanical > > > > > Engineering) > > > > > Alma Maters: > > > > > (1) Singapore Polytechnic > > > > > (2) National University of Singapore > > > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > > Email: space.time.universe@gmail.com > > > > > MSN: teoenming@hotmail.com > > > > > Mobile Phone: +65-9648-9798 > > > > > Street: Bedok Reservoir Road > > > > > Republic of Singapore > > > > > > > > > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < > > > > > space.time.universe@gmail.com> wrote: > > > > > > > > > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and > enabled > > > USB > > > > >> 3.0 driver but the kernel stops loading. > > > > >> > > > > >> Then I totally disabled all USB support by passing the "nousb" > > > parameter > > > > >> to the kernel but it still stops loading. > > > > >> > > > > >> pvops dom 0 2.6.31 final can''t work. > > > > >> > > > > >> -- > > > > >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > BEng(Hons)(Mechanical > > > > >> Engineering) > > > > >> Alma Maters: > > > > >> (1) Singapore Polytechnic > > > > >> (2) National University of Singapore > > > > >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > >> Email: space.time.universe@gmail.com > > > > >> MSN: teoenming@hotmail.com > > > > >> Mobile Phone: +65-9648-9798 > > > > >> Street: Bedok Reservoir Road > > > > >> Republic of Singapore > > > > >> > > > > >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < > > > > >> space.time.universe@gmail.com> wrote: > > > > >> > > > > >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 > driver > > > > >>> compiled statically into the kernel, I get an error with the USB > 2.0 > > > driver. > > > > >>> This means I cannot use either of the USB 1.0 and USB 2.0 > drivers. > > > > >>> > > > > >>> Please refer to my blog post here: > > > > >>> > > > > >>> > > > > >>> > > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html > > > > >>> > > > > >>> -- > > > > >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > BEng(Hons)(Mechanical > > > > >>> Engineering) > > > > >>> Alma Maters: > > > > >>> (1) Singapore Polytechnic > > > > >>> (2) National University of Singapore > > > > >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > >>> Email: space.time.universe@gmail.com > > > > >>> MSN: teoenming@hotmail.com > > > > >>> Mobile Phone: +65-9648-9798 > > > > >>> Street: Bedok Reservoir Road > > > > >>> Republic of Singapore > > > > >>> > > > > >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) > < > > > > >>> space.time.universe@gmail.com> wrote: > > > > >>> > > > > >>>> Hi, > > > > >>>> > > > > >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. > > > > >>>> > > > > >>>> But it gave me a USB host controller died error. > > > > >>>> > > > > >>>> Please refer to the error output here: > > > > >>>> > > > > >>>> > > > > >>>> > > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html > > > > >>>> > > > > >>>> -- > > > > >>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > BEng(Hons)(Mechanical > > > > >>>> Engineering) > > > > >>>> Alma Maters: > > > > >>>> (1) Singapore Polytechnic > > > > >>>> (2) National University of Singapore > > > > >>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > >>>> Email: space.time.universe@gmail.com > > > > >>>> MSN: teoenming@hotmail.com > > > > >>>> Mobile Phone: +65-9648-9798 > > > > >>>> Street: Bedok Reservoir Road > > > > >>>> Republic of Singapore > > > > >>>> > > > > >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi > > > > > wrote: > > > > >>>> > > > > >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming > (Zhang > > > > >>>>> Enming) wrote: > > > > >>>>> > Hi, > > > > >>>>> > > > > > >>>>> > Please refer to the disk I/O benchmark results here: > > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html > > > > >>>>> > > > > > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 > than > > > > >>>>> > 2.6.31-rc6. > > > > >>>>> > > > > > >>>>> > > > > >>>>> Btw you might also want to test with the latest rebase/master > tree; > > > > >>>>> it''s > > > > >>>>> at Linux 2.6.31 final now. > > > > >>>>> > > > > >>>>> -- Pasi > > > > >>>>> > > > > >>>>> > -- > > > > >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > > >>>>> BEng(Hons)(Mechanical > > > > >>>>> > Engineering) > > > > >>>>> > Alma Maters: > > > > >>>>> > (1) Singapore Polytechnic > > > > >>>>> > (2) National University of Singapore > > > > >>>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > >>>>> > Email: space.time.universe@gmail.com > > > > >>>>> > MSN: teoenming@hotmail.com > > > > >>>>> > Mobile Phone: +65-9648-9798 > > > > >>>>> > Street: Bedok Reservoir Road > > > > >>>>> > Republic of Singapore > > > > >>>>> > > > > > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang > Enming) < > > > > >>>>> > space.time.universe@gmail.com> wrote: > > > > >>>>> > > > > > >>>>> > > Hi, > > > > >>>>> > > > > > > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a > disk > > > I/O > > > > >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 > > > tonight > > > > >>>>> (Singapore > > > > >>>>> > > time). That will be more conclusive. > > > > >>>>> > > > > > > >>>>> > > -- > > > > >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > > >>>>> BEng(Hons)(Mechanical > > > > >>>>> > > Engineering) > > > > >>>>> > > Alma Maters: > > > > >>>>> > > (1) Singapore Polytechnic > > > > >>>>> > > (2) National University of Singapore > > > > >>>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > >>>>> > > Email: space.time.universe@gmail.com > > > > >>>>> > > MSN: teoenming@hotmail.com > > > > >>>>> > > Mobile Phone: +65-9648-9798 > > > > >>>>> > > Street: Bedok Reservoir Road > > > > >>>>> > > Republic of Singapore > > > > >>>>> > > > > > > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < > > > > >>>>> jeremy@goop.org>wrote: > > > > >>>>> > > > > > > >>>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: > > > > >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En > Ming > > > (Zhang > > > > >>>>> Enming) > > > > >>>>> > >> wrote: > > > > >>>>> > >> > > > > > >>>>> > >> >> Dear All, > > > > >>>>> > >> >> > > > > >>>>> > >> >> Here is my latest video presentation on VGA > passthrough. > > > Please > > > > >>>>> check > > > > >>>>> > >> out my > > > > >>>>> > >> >> blog at > http://teo-en-ming-aka-zhang-enming.blogspot.com/or > > > > >>>>> the > > > > >>>>> > >> Youtube > > > > >>>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > > > > >>>>> > >> >> > > > > >>>>> > >> >> The "not enough free resources" problem for nVidia > Geforce > > > 8400 > > > > >>>>> GS PCI > > > > >>>>> > >> >> Express x16 graphics card in earlier presentation > videos: > > > > >>>>> > >> >> > > > > >>>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< > > > > >>>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> > > > > >>>>> > >> >> > > > > >>>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< > > > > >>>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> > > > > >>>>> > >> >> > > > > >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no > longer > > > > >>>>> shows an > > > > >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS > > > graphics > > > > >>>>> card. The > > > > >>>>> > >> >> device is working properly and the resources tab shows > the > > > > >>>>> available > > > > >>>>> > >> memory > > > > >>>>> > >> >> ranges. > > > > >>>>> > >> >> > > > > >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating > > > system > > > > >>>>> using Xen > > > > >>>>> > >> >> virtualization has been realized. I am now able to run > 3-D > > > > >>>>> video > > > > >>>>> > >> benchmarks > > > > >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics > card. > > > > >>>>> > >> >> > > > > >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with > Intel > > > > >>>>> supplied VGA > > > > >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel > > > > >>>>> 2.6.31-rc6 > > > > >>>>> > >> which > > > > >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops > dom0 > > > > >>>>> kernel > > > > >>>>> > >> >> 2.6.30-rc3. > > > > >>>>> > >> >> > > > > >>>>> > >> >> > > > > >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 > that > > > could > > > > >>>>> cause > > > > >>>>> > >> > this HVM slowness? > > > > >>>>> > >> > > > > > >>>>> > >> > > > > >>>>> > >> I can''t think of anything, unless the new swiotlb code is > > > causing > > > > >>>>> > >> problems. > > > > >>>>> > >> > > > > >>>>> > >> > Any tips how it could be debugged? > > > > >>>>> > >> > > > > > >>>>> > >> > > > > >>>>> > >> It would help to isolate where the slowness is coming > from. > > > How > > > > >>>>> much > > > > >>>>> > >> slowdown are we talking about? Is the HVM domain doing > lots > > > of IO > > > > >>>>> at > > > > >>>>> > >> the time? Are there any processes using lots of time in > dom0? > > > > >>>>> What''s > > > > >>>>> > >> the interrupt rate like? > > > > >>>>> > >> > > > > >>>>> > >> J > > > > >>>>> > >> > > > > >>>>> > > > > > > >>>>> > > > > > > >>>>> > > > > > > >>>>> > > > > > > >>>>> > > > > > > >>>>> > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >> > > > > >> > > > > >> > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2009-Sep-13 19:45 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Mon, Sep 14, 2009 at 03:33:57AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Dear Pasi, > > No, I have not tried it yet. I have 8 GB of memory on my computer. > > What does dom0_mem parameter do? > > If I set dom0_mem, does it mean I cannot access more than 4 GB of memory > even though I have 8 GB of memory? >Yes. It limits the memory dom0 will have. The rest of the memory is available for other virtual machines (ie. "xm info" lists it as free memory). If you don''t limit dom0 memory then every time you create a guest dom0 memory needs to be ballooned down to be able to give it to the new guest. So it''s better to always have dom0_mem specified, so that dom0 kernel settings don''t get confused when it gets ballooned much more down than what it had available at boot time. Example grub.conf entry: kernel /boot/xen-3.4.gz dom0_mem=1024M This allocates 1024 MB of memory for dom0, and the rest is free for other domains to use. There is a bug in the recent pv_ops dom0 kernel that causes problems if dom0 has >4096 MB of memory. So please try to limit your dom0 memory, it might fix the USB problems. -- Pasi> -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Mon, Sep 14, 2009 at 3:26 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > > On Mon, Sep 14, 2009 at 02:22:00AM +0800, Mr. Teo En Ming (Zhang Enming) > > wrote: > > > Dear Pasi, > > > > > > Yes, I have tried the nomodeset kernel parameter without result. > > > > > > I couldn''t get Jeremy''s rebase/master branch (pvops dom 0 kernel 2.6.31) > > to > > > work despite disabling all of USB support in the kernel. I will > > troubleshoot > > > this issue with the serial console enabled another time. > > > > > > Meanwhile, I got Linus'' mainline kernel 2.6.31 to work on my system. So > > > apparently the dom 0 patched kernel 2.6.31 has some issues or I did not > > > configure it properly. > > > > > > > Did you try pv_ops dom0 kernel with dom0_mem=1024M parameter for xen.gz? > > > > Some others are seeing problems with the recent kernels if they have > > >4096M of memory for dom0. > > > > -- Pasi > > > > > -- > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > > Engineering) > > > Alma Maters: > > > (1) Singapore Polytechnic > > > (2) National University of Singapore > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > Email: space.time.universe@gmail.com > > > MSN: teoenming@hotmail.com > > > Mobile Phone: +65-9648-9798 > > > Street: Bedok Reservoir Road > > > Republic of Singapore > > > > > > On Sun, Sep 13, 2009 at 5:12 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > > > > > > On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang > > Enming) > > > > wrote: > > > > > I have disabled all USB support in the kernel but I still couldn''t > > get > > > > pvops > > > > > dom0-patched kernel 2.6.31 final to complete loading. All I get is a > > > > > blinking cursor at the top left hand corner of the monitor. > > > > > > > > > > > > > Did you try "nomodeset" parameter for the dom0 kernel? > > > > > > > > Have you tried setting up a serial console and capturing the kernel > > boot > > > > messages? > > > > > > > > -- Pasi > > > > > > > > > -- > > > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > BEng(Hons)(Mechanical > > > > > Engineering) > > > > > Alma Maters: > > > > > (1) Singapore Polytechnic > > > > > (2) National University of Singapore > > > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > > Email: space.time.universe@gmail.com > > > > > MSN: teoenming@hotmail.com > > > > > Mobile Phone: +65-9648-9798 > > > > > Street: Bedok Reservoir Road > > > > > Republic of Singapore > > > > > > > > > > On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < > > > > > space.time.universe@gmail.com> wrote: > > > > > > > > > > > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but > > I > > > > still > > > > > > can''t get pvops dom 0 kernel 2.6.31 final to boot up completely. > > > > > > > > > > > > Really puzzled. > > > > > > > > > > > > -- > > > > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > BEng(Hons)(Mechanical > > > > > > Engineering) > > > > > > Alma Maters: > > > > > > (1) Singapore Polytechnic > > > > > > (2) National University of Singapore > > > > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > > > Email: space.time.universe@gmail.com > > > > > > MSN: teoenming@hotmail.com > > > > > > Mobile Phone: +65-9648-9798 > > > > > > Street: Bedok Reservoir Road > > > > > > Republic of Singapore > > > > > > > > > > > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < > > > > > > space.time.universe@gmail.com> wrote: > > > > > > > > > > > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and > > enabled > > > > USB > > > > > >> 3.0 driver but the kernel stops loading. > > > > > >> > > > > > >> Then I totally disabled all USB support by passing the "nousb" > > > > parameter > > > > > >> to the kernel but it still stops loading. > > > > > >> > > > > > >> pvops dom 0 2.6.31 final can''t work. > > > > > >> > > > > > >> -- > > > > > >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > BEng(Hons)(Mechanical > > > > > >> Engineering) > > > > > >> Alma Maters: > > > > > >> (1) Singapore Polytechnic > > > > > >> (2) National University of Singapore > > > > > >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > > >> Email: space.time.universe@gmail.com > > > > > >> MSN: teoenming@hotmail.com > > > > > >> Mobile Phone: +65-9648-9798 > > > > > >> Street: Bedok Reservoir Road > > > > > >> Republic of Singapore > > > > > >> > > > > > >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < > > > > > >> space.time.universe@gmail.com> wrote: > > > > > >> > > > > > >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 > > driver > > > > > >>> compiled statically into the kernel, I get an error with the USB > > 2.0 > > > > driver. > > > > > >>> This means I cannot use either of the USB 1.0 and USB 2.0 > > drivers. > > > > > >>> > > > > > >>> Please refer to my blog post here: > > > > > >>> > > > > > >>> > > > > > >>> > > > > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb-10-host-controller.html > > > > > >>> > > > > > >>> -- > > > > > >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > > BEng(Hons)(Mechanical > > > > > >>> Engineering) > > > > > >>> Alma Maters: > > > > > >>> (1) Singapore Polytechnic > > > > > >>> (2) National University of Singapore > > > > > >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > > >>> Email: space.time.universe@gmail.com > > > > > >>> MSN: teoenming@hotmail.com > > > > > >>> Mobile Phone: +65-9648-9798 > > > > > >>> Street: Bedok Reservoir Road > > > > > >>> Republic of Singapore > > > > > >>> > > > > > >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) > > < > > > > > >>> space.time.universe@gmail.com> wrote: > > > > > >>> > > > > > >>>> Hi, > > > > > >>>> > > > > > >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. > > > > > >>>> > > > > > >>>> But it gave me a USB host controller died error. > > > > > >>>> > > > > > >>>> Please refer to the error output here: > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html > > > > > >>>> > > > > > >>>> -- > > > > > >>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > > BEng(Hons)(Mechanical > > > > > >>>> Engineering) > > > > > >>>> Alma Maters: > > > > > >>>> (1) Singapore Polytechnic > > > > > >>>> (2) National University of Singapore > > > > > >>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > > >>>> Email: space.time.universe@gmail.com > > > > > >>>> MSN: teoenming@hotmail.com > > > > > >>>> Mobile Phone: +65-9648-9798 > > > > > >>>> Street: Bedok Reservoir Road > > > > > >>>> Republic of Singapore > > > > > >>>> > > > > > >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <pasik@iki.fi > > > > > > > wrote: > > > > > >>>> > > > > > >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming > > (Zhang > > > > > >>>>> Enming) wrote: > > > > > >>>>> > Hi, > > > > > >>>>> > > > > > > >>>>> > Please refer to the disk I/O benchmark results here: > > > > > >>>>> > > > > > > >>>>> > > > > > > >>>>> > > > > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchmark-results-with-xen.html > > > > > >>>>> > > > > > > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 > > than > > > > > >>>>> > 2.6.31-rc6. > > > > > >>>>> > > > > > > >>>>> > > > > > >>>>> Btw you might also want to test with the latest rebase/master > > tree; > > > > > >>>>> it''s > > > > > >>>>> at Linux 2.6.31 final now. > > > > > >>>>> > > > > > >>>>> -- Pasi > > > > > >>>>> > > > > > >>>>> > -- > > > > > >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > > > >>>>> BEng(Hons)(Mechanical > > > > > >>>>> > Engineering) > > > > > >>>>> > Alma Maters: > > > > > >>>>> > (1) Singapore Polytechnic > > > > > >>>>> > (2) National University of Singapore > > > > > >>>>> > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > > >>>>> > Email: space.time.universe@gmail.com > > > > > >>>>> > MSN: teoenming@hotmail.com > > > > > >>>>> > Mobile Phone: +65-9648-9798 > > > > > >>>>> > Street: Bedok Reservoir Road > > > > > >>>>> > Republic of Singapore > > > > > >>>>> > > > > > > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang > > Enming) < > > > > > >>>>> > space.time.universe@gmail.com> wrote: > > > > > >>>>> > > > > > > >>>>> > > Hi, > > > > > >>>>> > > > > > > > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a > > disk > > > > I/O > > > > > >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 > > > > tonight > > > > > >>>>> (Singapore > > > > > >>>>> > > time). That will be more conclusive. > > > > > >>>>> > > > > > > > >>>>> > > -- > > > > > >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) > > > > > >>>>> BEng(Hons)(Mechanical > > > > > >>>>> > > Engineering) > > > > > >>>>> > > Alma Maters: > > > > > >>>>> > > (1) Singapore Polytechnic > > > > > >>>>> > > (2) National University of Singapore > > > > > >>>>> > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > > > >>>>> > > Email: space.time.universe@gmail.com > > > > > >>>>> > > MSN: teoenming@hotmail.com > > > > > >>>>> > > Mobile Phone: +65-9648-9798 > > > > > >>>>> > > Street: Bedok Reservoir Road > > > > > >>>>> > > Republic of Singapore > > > > > >>>>> > > > > > > > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < > > > > > >>>>> jeremy@goop.org>wrote: > > > > > >>>>> > > > > > > > >>>>> > >> On 09/10/09 07:03, Pasi Kärkkäinen wrote: > > > > > >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En > > Ming > > > > (Zhang > > > > > >>>>> Enming) > > > > > >>>>> > >> wrote: > > > > > >>>>> > >> > > > > > > >>>>> > >> >> Dear All, > > > > > >>>>> > >> >> > > > > > >>>>> > >> >> Here is my latest video presentation on VGA > > passthrough. > > > > Please > > > > > >>>>> check > > > > > >>>>> > >> out my > > > > > >>>>> > >> >> blog at > > http://teo-en-ming-aka-zhang-enming.blogspot.com/or > > > > > >>>>> the > > > > > >>>>> > >> Youtube > > > > > >>>>> > >> >> link at http://www.youtube.com/watch?v=1ia3IwG6tp4 > > > > > >>>>> > >> >> > > > > > >>>>> > >> >> The "not enough free resources" problem for nVidia > > Geforce > > > > 8400 > > > > > >>>>> GS PCI > > > > > >>>>> > >> >> Express x16 graphics card in earlier presentation > > videos: > > > > > >>>>> > >> >> > > > > > >>>>> > >> >> http://www.youtube.com/watch?v=HNEiSI...< > > > > > >>>>> > >> http://www.youtube.com/watch?v=HNEiSInrav0> > > > > > >>>>> > >> >> > > > > > >>>>> > >> >> http://www.youtube.com/watch?v=_hOT_9...< > > > > > >>>>> > >> http://www.youtube.com/watch?v=_hOT_9LIG5w> > > > > > >>>>> > >> >> > > > > > >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no > > longer > > > > > >>>>> shows an > > > > > >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS > > > > graphics > > > > > >>>>> card. The > > > > > >>>>> > >> >> device is working properly and the resources tab shows > > the > > > > > >>>>> available > > > > > >>>>> > >> memory > > > > > >>>>> > >> >> ranges. > > > > > >>>>> > >> >> > > > > > >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating > > > > system > > > > > >>>>> using Xen > > > > > >>>>> > >> >> virtualization has been realized. I am now able to run > > 3-D > > > > > >>>>> video > > > > > >>>>> > >> benchmarks > > > > > >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics > > card. > > > > > >>>>> > >> >> > > > > > >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with > > Intel > > > > > >>>>> supplied VGA > > > > > >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel > > > > > >>>>> 2.6.31-rc6 > > > > > >>>>> > >> which > > > > > >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops > > dom0 > > > > > >>>>> kernel > > > > > >>>>> > >> >> 2.6.30-rc3. > > > > > >>>>> > >> >> > > > > > >>>>> > >> >> > > > > > >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 > > that > > > > could > > > > > >>>>> cause > > > > > >>>>> > >> > this HVM slowness? > > > > > >>>>> > >> > > > > > > >>>>> > >> > > > > > >>>>> > >> I can''t think of anything, unless the new swiotlb code is > > > > causing > > > > > >>>>> > >> problems. > > > > > >>>>> > >> > > > > > >>>>> > >> > Any tips how it could be debugged? > > > > > >>>>> > >> > > > > > > >>>>> > >> > > > > > >>>>> > >> It would help to isolate where the slowness is coming > > from. > > > > How > > > > > >>>>> much > > > > > >>>>> > >> slowdown are we talking about? Is the HVM domain doing > > lots > > > > of IO > > > > > >>>>> at > > > > > >>>>> > >> the time? Are there any processes using lots of time in > > dom0? > > > > > >>>>> What''s > > > > > >>>>> > >> the interrupt rate like? > > > > > >>>>> > >> > > > > > >>>>> > >> J > > > > > >>>>> > >> > > > > > >>>>> > > > > > > > >>>>> > > > > > > > >>>>> > > > > > > > >>>>> > > > > > > > >>>>> > > > > > > > >>>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >> > > > > > >> > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jeremy Fitzhardinge
2009-Sep-15 23:40 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On 09/11/09 19:52, Mr. Teo En Ming (Zhang Enming) wrote:> Hi, > > I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. > > But it gave me a USB host controller died error. > > Please refer to the error output here: > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html >Do you have CONFIG_SWIOTLB enabled? I''m presuming you must because Xen always configures it, but these crashes look like something is amiss with it. Also, try a new kernel - as of today - because I just fixed a pretty serious bug. However it should only affect reliability when doing guest IO, not just normal bootup. (It may have some bearing on your performance regression.) J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-19 16:44 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Testing. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-19 17:03 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
2nd test. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-20 03:25 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi, Anybody knows how to passthrough a firewire port to Win XP HVM DomU? I can only see the BDF for the firewire port, but not vendorid and productid when I do a lspci -vn. Thank you. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-20 03:36 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Never mind, I found out myself already. [enming@fedora11-x86-64-host ~]$ lspci -vn | grep OHCI 02:01.0 0c00: 11c1:5811 (rev 70) (prog-if 10 [OHCI]) Do I just have to unload the firewire-ohci kernel module only? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sun, Sep 20, 2009 at 11:25 AM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> Hi, > > Anybody knows how to passthrough a firewire port to Win XP HVM DomU? > > I can only see the BDF for the firewire port, but not vendorid and > productid when I do a lspci -vn. > > Thank you. > > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-20 05:16 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi, I have managed to passthrough the firewire controller to Win XP domU successfully. In Device Manager, I can see OHCI Compliant IEEE 1394 Host Controller. However, it can''t detect any firewire devices. Any ideas? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sun, Sep 20, 2009 at 11:36 AM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> Never mind, I found out myself already. > > [enming@fedora11-x86-64-host ~]$ lspci -vn | grep OHCI > 02:01.0 0c00: 11c1:5811 (rev 70) (prog-if 10 [OHCI]) > > Do I just have to unload the firewire-ohci kernel module only? > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sun, Sep 20, 2009 at 11:25 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> Hi, >> >> Anybody knows how to passthrough a firewire port to Win XP HVM DomU? >> >> I can only see the BDF for the firewire port, but not vendorid and >> productid when I do a lspci -vn. >> >> Thank you. >> >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> >> >> >> >> > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Sep-21 00:33 UTC
Re: Re[2]: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi Sander, Thank you for your reply. I have tried adding the vendorid and productid of firewire controller in xend-pci-permissive.sxp but firewire devices are still not detected. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sun, Sep 20, 2009 at 10:02 PM, Sander Eikelenboom <linux@eikelenboom.it>wrote:> To passthrough my usb card + devices i had to add the ID''s to > pci_permissive as well. > > > Sunday, September 20, 2009, 7:16:09 AM, you wrote: > > > Hi, > > > I have managed to passthrough the firewire controller to Win XP domU > > successfully. In Device Manager, I can see OHCI Compliant IEEE 1394 Host > > Controller. > > > However, it can''t detect any firewire devices. > > > Any ideas? > > > > > -- > Best regards, > Sander mailto:linux@eikelenboom.it > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Sander Eikelenboom
2009-Sep-21 07:28 UTC
Re[4]: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hmmm done some other stuff as well, this is my grub menu.lst for the dom0 title Xen xen-3.4.1-amd64 / Debian GNU/Linux, kernel 2.6.29.6-amd64-xenified-dom0 root (hd0,0) kernel /xen-3.4.1.gz dom0_mem=768M xencons=hvc module /vmlinuz-2.6.29.6 root=/dev/mapper/serveerstertje-root ro pci=nomsi pciback.hide=(00:07.0)(06:01.0)(06:01.1)(06:01.2)(01:08.0)(01:08.1)(01:08.2)(01:0a.0) guestdev=00:07.0,06:01.0,06:01.1,06:01.2,01:08.0,01:08.1,01:08.2,01:0a.0 reassign_resources swiotlb=256,force module /initrd.img-2.6.29.6 for the guest i use pygrub, and the menu.lst has: kernel /boot/vmlinuz-2.6.26-2-xen-amd64 root=/dev/sda2 ro swiotlb=256,force pci=routeirq pollirq But i thought the irq things didn''t matter (but i''m not sure) This works for me passingthrough two USB controllers to one guest, used for two videocapture devices (one capture card on each, since they pull slightly more than half the bandwidth of USB 2 :( ) and works OK. Hope something like this works for you as well. Regards, Sander> Hi Sander,> Thank you for your reply.> I have tried adding the vendorid and productid of firewire controller in > xend-pci-permissive.sxp but firewire devices are still not detected.-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-08 13:36 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Dear Jeremy and all, I had previously tried pvops dom0 kernel 2.6.31-final but I could not get it to boot successfully so I guess it had some bugs. Today I just tried pvops dom 0 kernel 2.6.31.1. It compiled, booted up and started winxp home domU successfully! So I guess bugs which were present in 2.6.31 were resolved in 2.6.31.1. I did not set any dom0_mem for 2.6.31.1. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Wed, Sep 16, 2009 at 7:40 AM, Jeremy Fitzhardinge <jeremy@goop.org>wrote:> On 09/11/09 19:52, Mr. Teo En Ming (Zhang Enming) wrote: > > Hi, > > > > I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. > > > > But it gave me a USB host controller died error. > > > > Please refer to the error output here: > > > > > http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html > > > > Do you have CONFIG_SWIOTLB enabled? I''m presuming you must because Xen > always configures it, but these crashes look like something is amiss > with it. > > Also, try a new kernel - as of today - because I just fixed a pretty > serious bug. However it should only affect reliability when doing guest > IO, not just normal bootup. (It may have some bearing on your > performance regression.) > > J >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-08 13:48 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Attached in this email are three JPEG screenshots showing disk I/O benchmark results for pvops dom0 kernels 2.6.30-rc3, 2.6.31-rc6, and 2.6.31.1. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Thu, Oct 8, 2009 at 9:36 PM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> Dear Jeremy and all, > > I had previously tried pvops dom0 kernel 2.6.31-final but I could not get > it to boot successfully so I guess it > had some bugs. > > Today I just tried pvops dom 0 kernel 2.6.31.1. It compiled, booted up and > started winxp home domU successfully! > > So I guess bugs which were present in 2.6.31 were resolved in 2.6.31.1. I > did not set any dom0_mem for 2.6.31.1. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Wed, Sep 16, 2009 at 7:40 AM, Jeremy Fitzhardinge <jeremy@goop.org>wrote: > >> On 09/11/09 19:52, Mr. Teo En Ming (Zhang Enming) wrote: >> > Hi, >> > >> > I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. >> > >> > But it gave me a USB host controller died error. >> > >> > Please refer to the error output here: >> > >> > >> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html >> > >> >> Do you have CONFIG_SWIOTLB enabled? I''m presuming you must because Xen >> always configures it, but these crashes look like something is amiss >> with it. >> >> Also, try a new kernel - as of today - because I just fixed a pretty >> serious bug. However it should only affect reliability when doing guest >> IO, not just normal bootup. (It may have some bearing on your >> performance regression.) >> >> J >> > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2009-Oct-08 13:59 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Thu, Oct 08, 2009 at 09:48:20PM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Attached in this email are three JPEG screenshots showing disk I/O benchmark > results for pvops dom0 kernels 2.6.30-rc3, 2.6.31-rc6, and 2.6.31.1.Did you change the build-id of Xen between the tests? Meaning did you check out a newer one between the releases? What is your underlaying disk for your guest? Did you flush the cache before you ran the tests? echo 3 > /proc/sys/vm/drop_caches Are you using stub-domain or normal QEMU? What is the xm entry for the disk in your .xm. Are you using GPLV/Novell VMDK/etc accelerated drivers under Windows? How many iterations of the disk I/O benchmark did you run? As in, are those screenshots of the first run, or the average over a couple of them. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-08 14:06 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Attached in this email are also my kernel configurations for pvops dom 0 kernels 2.6.30-rc3, 2.6.31-rc6, and 2.6.31.1. Disk I/O performance is still better in 2.6.30-rc3 than 2.6.31-rc6 and 2.6.31.1. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Thu, Oct 8, 2009 at 9:48 PM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> Attached in this email are three JPEG screenshots showing disk I/O > benchmark results for pvops dom0 kernels 2.6.30-rc3, 2.6.31-rc6, and > 2.6.31.1. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Thu, Oct 8, 2009 at 9:36 PM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> Dear Jeremy and all, >> >> I had previously tried pvops dom0 kernel 2.6.31-final but I could not get >> it to boot successfully so I guess it >> had some bugs. >> >> Today I just tried pvops dom 0 kernel 2.6.31.1. It compiled, booted up and >> started winxp home domU successfully! >> >> So I guess bugs which were present in 2.6.31 were resolved in 2.6.31.1. I >> did not set any dom0_mem for 2.6.31.1. >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> On Wed, Sep 16, 2009 at 7:40 AM, Jeremy Fitzhardinge <jeremy@goop.org>wrote: >> >>> On 09/11/09 19:52, Mr. Teo En Ming (Zhang Enming) wrote: >>> > Hi, >>> > >>> > I have tried pvops dom 0 kernel 2.6.31 final from Jeremy''s tree. >>> > >>> > But it gave me a USB host controller died error. >>> > >>> > Please refer to the error output here: >>> > >>> > >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-dom-0-kernel-2631.html >>> > >>> >>> Do you have CONFIG_SWIOTLB enabled? I''m presuming you must because Xen >>> always configures it, but these crashes look like something is amiss >>> with it. >>> >>> Also, try a new kernel - as of today - because I just fixed a pretty >>> serious bug. However it should only affect reliability when doing guest >>> IO, not just normal bootup. (It may have some bearing on your >>> performance regression.) >>> >>> J >>> >> >> >> >> >> > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-08 14:13 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Dear Konrad, Please refer to my replies under your questions below. Thank you. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Thu, Oct 8, 2009 at 9:59 PM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> wrote:> On Thu, Oct 08, 2009 at 09:48:20PM +0800, Mr. Teo En Ming (Zhang Enming) > wrote: > > Attached in this email are three JPEG screenshots showing disk I/O > benchmark > > results for pvops dom0 kernels 2.6.30-rc3, 2.6.31-rc6, and 2.6.31.1. > > Did you change the build-id of Xen between the tests? Meaning did you > check out a newer one between the releases? >No. I did not change the changesets of xen between the tests.> > What is your underlaying disk for your guest? >I am not using a disk image file. I am using LVM2 logical volume for my Win XP Home guest.> Did you flush the cache before you ran the tests? > echo 3 > /proc/sys/vm/drop_caches >No I did not. I am not aware of this requirement.> > Are you using stub-domain or normal QEMU? >I don''t think I am using stub-domain. I should be using normal QEMU.> > What is the xm entry for the disk in your .xm. >Here is my Win XP Home Edition domU guest configuration: #import os, re #arch = os.uname()[4] #if re.search(''64'', arch): # arch_libdir = ''lib64'' #else: # arch_libdir = ''lib'' kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' memory = 3072 # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. #shadow_memory = 8 name = "winxphome32" vif = [ ''bridge=eth0'' ] acpi = 1 apic = 1 disk = [ ''phy:/dev/virtualmachines/winxphome32,hda,w'', ''phy:/dev/sr0,hdc:cdrom,r'' ] #device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' #device_model = ''/usr/'' + ''lib'' + ''/xen/bin/qemu-dm'' device_model = ''qemu-dm'' #----------------------------------------------------------------------------- # boot on floppy (a), hard disk (c) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot="cd" #sdl=0 #vnc=1 #vncconsole=1 #vncpasswd='''' #serial=''pty'' #usbdevice=''tablet'' # onboard #pci = [ ''00:02.0'' ] # nvidia & firewire pci = [ ''01:00.0'',''02:01.0'' ] vcpus=2 # No passthrough #gfx_passthru=0 # onboard #gfx_passthru=1 # nvidia gfx_passthru=2 # Can only pass through one usb device at a time usb=1 # USB Unity Green Mouse #usbdevice = ''host:1bcf:0007'' # USB A1pro Black Mouse usbdevice = ''host:15d9:0a41'' # USB Keyboard #usbdevice = ''host:0603:00f2'' # USB Sony IC Recorder #usbdevice = ''host:054c:0271'' # USB Lexmark X1270 Color Printer #usbdevice = ''host:043d:00ff'' # USB Lexmark X1270 Photo Scanner #usbdevice = ''host:043d:007d'' # USB Lexmark X1270 Generic Hub #usbdevice = ''host:043d:007a''> > Are you using GPLV/Novell VMDK/etc accelerated drivers under Windows? >No. I don''t think so.> > How many iterations of the disk I/O benchmark did you run? As in, are those > screenshots of the first run, or the average over a couple of them. >They are not averages. They are first runs. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2009-Oct-08 14:22 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
> > Did you change the build-id of Xen between the tests? Meaning did you > > check out a newer one between the releases? > > > > No. I did not change the changesets of xen between the tests.Good.> > > > > > What is your underlaying disk for your guest? > > > > I am not using a disk image file. I am using LVM2 logical volume for my Win > XP Home guest.Right. There were two other disks in the screenshots. Did either one of them contain the "virtualmachines" VG?> > > > Did you flush the cache before you ran the tests? > > echo 3 > /proc/sys/vm/drop_caches > > > > No I did not. I am not aware of this requirement.Please do.> > > > > > Are you using stub-domain or normal QEMU? > > > > I don''t think I am using stub-domain. I should be using normal QEMU.You are not based on your guest configuration. .. snip ..> > How many iterations of the disk I/O benchmark did you run? As in, are those > > screenshots of the first run, or the average over a couple of them. > > > > They are not averages. They are first runs.Do the numbers stay about the same on 2.6.31.1 if you run it a couple of times? (And flush the cache between each run, that is it) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-08 14:44 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Thu, Oct 8, 2009 at 10:22 PM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:> > > > Did you change the build-id of Xen between the tests? Meaning did you > > > check out a newer one between the releases? > > > > > > > No. I did not change the changesets of xen between the tests. > > Good. > > > > > > > > > > What is your underlaying disk for your guest? > > > > > > > I am not using a disk image file. I am using LVM2 logical volume for my Win > > XP Home guest. > > Right. There were two other disks in the screenshots. Did either one of them > contain the "virtualmachines" VG?In the screenshots, the current drive (red color) is in the virtualmachines volume group. All the other harddisks (other than "current drive") are reference harddisks provided by the benchmark software for comparison.> > > > > > > Did you flush the cache before you ran the tests? > > > echo 3 > /proc/sys/vm/drop_caches > > > > > > > No I did not. I am not aware of this requirement. > > Please do.I will do it before I start the Win XP guest. After I start win xp domU, I won''t be able to access dom0 any more. So I won''t be able to clear caches in between iterations of the disk I/O benchmark tests.> > > > > > > > > > Are you using stub-domain or normal QEMU? > > > > > > > I don''t think I am using stub-domain. I should be using normal QEMU. > > You are not based on your guest configuration. > > .. snip ..I don''t quite understand.> > > How many iterations of the disk I/O benchmark did you run? As in, are those > > > screenshots of the first run, or the average over a couple of them. > > > > > > > They are not averages. They are first runs. > > Do the numbers stay about the same on 2.6.31.1 if you run it a couple of times? (And flush > the cache between each run, that is it)I will try to run the disk I/O benchmark tests a few iterations on 2.6.31.1. But I won''t be able to clear caches in between iterations as I can''t access dom0 after I have started win XP domU. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2009-Oct-08 14:49 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
> > > No I did not. I am not aware of this requirement. > > > > Please do. > > I will do it before I start the Win XP guest. After I start win xp > domU, I won''t be able to access dom0 any more. So I won''t be able to > clear caches in between iterations of the disk I/O benchmark tests.You should be able to ssh from the DomU to the Dom0?> > > > > > > > > > > > > > > Are you using stub-domain or normal QEMU? > > > > > > > > > > I don''t think I am using stub-domain. I should be using normal QEMU. > > > > You are not based on your guest configuration. > > > > .. snip .. > > I don''t quite understand.I missed a comma. It should have said: You are not, based on your guest configuration. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-08 15:05 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Thu, Oct 8, 2009 at 10:49 PM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:>> > > No I did not. I am not aware of this requirement. >> > >> > Please do. >> >> I will do it before I start the Win XP guest. After I start win xp >> domU, I won''t be able to access dom0 any more. So I won''t be able to >> clear caches in between iterations of the disk I/O benchmark tests. > > You should be able to ssh from the DomU to the Dom0? >By right I should be able to. But a few minutes after I have started Win XP domU, the IP address of dom0 will disappear. So I won''t be able to ssh from Win XP domU to dom0.>> >> > > >> > > >> > > > >> > > > Are you using stub-domain or normal QEMU? >> > > > >> > > >> > > I don''t think I am using stub-domain. I should be using normal QEMU. >> > >> > You are not based on your guest configuration. >> > >> > .. snip .. >> >> I don''t quite understand. > > I missed a comma. It should have said: > > You are not, based on your guest configuration. >-- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-09 00:54 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Hi, I have performed 5 iterations of the disk I/O benchmark tests. Here are the results: #1: 26.67 MB/s #2: 31.65 MB/s #3: 30 MB/s #4: 28 MB/s #5: 28.87 MB/s Just to confirm, if I do a "git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen", but if I did not do a git checkout, the default branch selected will be rebase/master right? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Thu, Oct 8, 2009 at 11:05 PM, Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com> wrote:> On Thu, Oct 8, 2009 at 10:49 PM, Konrad Rzeszutek Wilk > <konrad.wilk@oracle.com> wrote: >>> > > No I did not. I am not aware of this requirement. >>> > >>> > Please do. >>> >>> I will do it before I start the Win XP guest. After I start win xp >>> domU, I won''t be able to access dom0 any more. So I won''t be able to >>> clear caches in between iterations of the disk I/O benchmark tests. >> >> You should be able to ssh from the DomU to the Dom0? >> > > By right I should be able to. But a few minutes after I have started > Win XP domU, the IP address of dom0 will disappear. So I won''t be able > to ssh from Win XP domU to dom0. > >>> >>> > > >>> > > >>> > > > >>> > > > Are you using stub-domain or normal QEMU? >>> > > > >>> > > >>> > > I don''t think I am using stub-domain. I should be using normal QEMU. >>> > >>> > You are not based on your guest configuration. >>> > >>> > .. snip .. >>> >>> I don''t quite understand. >> >> I missed a comma. It should have said: >> >> You are not, based on your guest configuration. >> > > > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2009-Oct-09 07:11 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On Fri, Oct 09, 2009 at 08:54:24AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Hi, > > I have performed 5 iterations of the disk I/O benchmark tests. Here > are the results: > > #1: 26.67 MB/s > #2: 31.65 MB/s > #3: 30 MB/s > #4: 28 MB/s > #5: 28.87 MB/s > > Just to confirm, if I do a "git clone > git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git > linux-2.6-xen", but if I did not do a git checkout, the default branch > selected will be rebase/master right? >I think the default is ''xen/master'' nowadays.. -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-09 07:52 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
So if I don''t do a git checkout of a specific branch, the default will be xen/master, and at the time of this writing, the pvops dom0 kernel will be 2.6.31.1? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Fri, Oct 9, 2009 at 3:11 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Fri, Oct 09, 2009 at 08:54:24AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >> Hi, >> >> I have performed 5 iterations of the disk I/O benchmark tests. Here >> are the results: >> >> #1: 26.67 MB/s >> #2: 31.65 MB/s >> #3: 30 MB/s >> #4: 28 MB/s >> #5: 28.87 MB/s >> >> Just to confirm, if I do a "git clone >> git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git >> linux-2.6-xen", but if I did not do a git checkout, the default branch >> selected will be rebase/master right? >> > > I think the default is ''xen/master'' nowadays.. > > -- Pasi > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jeremy Fitzhardinge
2009-Oct-09 21:41 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
On 10/09/09 00:52, Mr. Teo En Ming (Zhang Enming) wrote:> So if I don''t do a git checkout of a specific branch, the default will > be xen/master, and at the time of this writing, the pvops dom0 kernel > will be 2.6.31.1? >Yep, that''s the plan. Tell me if it works. J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-11 07:22 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
It works. How do I get more than 1 usb device to be passed through to win xp domU? At the moment I can only passthrough the usb optical mouse and not the usb keyboard. I have to use the on-screen keyboard. I have also tried to pass through the OHCI Firewire controller to the win xp domu. Win XP domU device manager reports that the firewire controller is working properly. However, when I plug in my Canon HV20 firewire-based digital camcorder, it cannot be detected at all. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Oct 10, 2009 at 5:41 AM, Jeremy Fitzhardinge <jeremy@goop.org> wrote:> On 10/09/09 00:52, Mr. Teo En Ming (Zhang Enming) wrote: >> So if I don''t do a git checkout of a specific branch, the default will >> be xen/master, and at the time of this writing, the pvops dom0 kernel >> will be 2.6.31.1? >> > > Yep, that''s the plan. Tell me if it works. > > J > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2009-Oct-12 18:10 UTC
[Xen-devel] Fire-wire passthrough with Linux pv-ops (2.6.31.1)
On Sun, Oct 11, 2009 at 03:22:32PM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> It works. > > How do I get more than 1 usb device to be passed through to win xp > domU? At the moment I can only passthrough the usb optical mouse and > not the usb keyboard. I have to use the on-screen keyboard. > > I have also tried to pass through the OHCI Firewire controller to the > win xp domu. Win XP domU device manager reports that the firewire > controller is working properly. However, when I plug in my Canon HV20 > firewire-based digital camcorder, it cannot be detected at all.Did it used to work in the past? How do you pass through the device? What are the settings in your .xm file for it? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-13 01:32 UTC
[Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi, I have a firewire passthrough script passthru-firewire.sh. #!/bin/sh echo "11c1 5811" > /sys/bus/pci/drivers/pci-stub/new_id echo "0000:02:01.0" > /sys/bus/pci/devices/0000:02:01.0/driver/unbind echo "0000:02:01.0" > /sys/bus/pci/drivers/pci-stub/bind #Unload firewire driver rmmod firewire_ohci rmmod firewire_core I have the pci directive in winxp domU config: # nvidia & firewire pci = [ ''01:00.0'',''02:01.0'' ] 01:00.0 is for passing through the nvidia pci express x16 graphics card and 02:01.0 is the BDF of the OHCI firewire controller. And I also added the vendorid and productid of the firewire controller in xend-pci-permissive.sxp. (unconstrained_dev_ids #(''0123:4567:89AB:CDEF'') (''11c1:5811'') ) This is the first time I am trying to get it to work. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Tue, Oct 13, 2009 at 2:10 AM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:> On Sun, Oct 11, 2009 at 03:22:32PM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >> It works. >> >> How do I get more than 1 usb device to be passed through to win xp >> domU? At the moment I can only passthrough the usb optical mouse and >> not the usb keyboard. I have to use the on-screen keyboard. >> >> I have also tried to pass through the OHCI Firewire controller to the >> win xp domu. Win XP domU device manager reports that the firewire >> controller is working properly. However, when I plug in my Canon HV20 >> firewire-based digital camcorder, it cannot be detected at all. > > Did it used to work in the past? > > How do you pass through the device? What are the settings in your .xm file > for it? >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-13 03:49 UTC
[Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
btw how can I passthrough both usb optical mouse and usb keyboard to winxp domU at the same time? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Tue, Oct 13, 2009 at 9:32 AM, Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com> wrote:> Hi, > > I have a firewire passthrough script passthru-firewire.sh. > > #!/bin/sh > echo "11c1 5811" > /sys/bus/pci/drivers/pci-stub/new_id > echo "0000:02:01.0" > /sys/bus/pci/devices/0000:02:01.0/driver/unbind > echo "0000:02:01.0" > /sys/bus/pci/drivers/pci-stub/bind > > #Unload firewire driver > rmmod firewire_ohci > rmmod firewire_core > > I have the pci directive in winxp domU config: > > # nvidia & firewire > pci = [ ''01:00.0'',''02:01.0'' ] > > 01:00.0 is for passing through the nvidia pci express x16 graphics > card and 02:01.0 is the BDF of the OHCI firewire controller. > > And I also added the vendorid and productid of the firewire controller > in xend-pci-permissive.sxp. > > (unconstrained_dev_ids > #(''0123:4567:89AB:CDEF'') > (''11c1:5811'') > ) > > This is the first time I am trying to get it to work. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > > On Tue, Oct 13, 2009 at 2:10 AM, Konrad Rzeszutek Wilk > <konrad.wilk@oracle.com> wrote: >> On Sun, Oct 11, 2009 at 03:22:32PM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >>> It works. >>> >>> How do I get more than 1 usb device to be passed through to win xp >>> domU? At the moment I can only passthrough the usb optical mouse and >>> not the usb keyboard. I have to use the on-screen keyboard. >>> >>> I have also tried to pass through the OHCI Firewire controller to the >>> win xp domu. Win XP domU device manager reports that the firewire >>> controller is working properly. However, when I plug in my Canon HV20 >>> firewire-based digital camcorder, it cannot be detected at all. >> >> Did it used to work in the past? >> >> How do you pass through the device? What are the settings in your .xm file >> for it? >> >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2009-Oct-13 14:22 UTC
[Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
On Tue, Oct 13, 2009 at 09:32:08AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Hi, > > I have a firewire passthrough script passthru-firewire.sh. > > #!/bin/sh > echo "11c1 5811" > /sys/bus/pci/drivers/pci-stub/new_id > echo "0000:02:01.0" > /sys/bus/pci/devices/0000:02:01.0/driver/unbind > echo "0000:02:01.0" > /sys/bus/pci/drivers/pci-stub/bind > > #Unload firewire driver > rmmod firewire_ohci > rmmod firewire_core > > I have the pci directive in winxp domU config: > > # nvidia & firewire > pci = [ ''01:00.0'',''02:01.0'' ] > > 01:00.0 is for passing through the nvidia pci express x16 graphics > card and 02:01.0 is the BDF of the OHCI firewire controller. > > And I also added the vendorid and productid of the firewire controller > in xend-pci-permissive.sxp. > > (unconstrained_dev_ids > #(''0123:4567:89AB:CDEF'') > (''11c1:5811'') > ) > > This is the first time I am trying to get it to work.It should not work. I am saying this b/c the pciback which is required to pass-through PCI writes/reads has not been ported over to 2.6.31.1 yet. I am working on this right now. The pci-stub is just what it says. A stub. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-13 14:39 UTC
[Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi Konrad, So if I try firewire passthrough in pvops dom0 kernel 2.6.30-rc3 it will not work also because the code for firewire controller passthrough is non-existent as of now? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Tue, Oct 13, 2009 at 10:22 PM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:> On Tue, Oct 13, 2009 at 09:32:08AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >> Hi, >> >> I have a firewire passthrough script passthru-firewire.sh. >> >> #!/bin/sh >> echo "11c1 5811" > /sys/bus/pci/drivers/pci-stub/new_id >> echo "0000:02:01.0" > /sys/bus/pci/devices/0000:02:01.0/driver/unbind >> echo "0000:02:01.0" > /sys/bus/pci/drivers/pci-stub/bind >> >> #Unload firewire driver >> rmmod firewire_ohci >> rmmod firewire_core >> >> I have the pci directive in winxp domU config: >> >> # nvidia & firewire >> pci = [ ''01:00.0'',''02:01.0'' ] >> >> 01:00.0 is for passing through the nvidia pci express x16 graphics >> card and 02:01.0 is the BDF of the OHCI firewire controller. >> >> And I also added the vendorid and productid of the firewire controller >> in xend-pci-permissive.sxp. >> >> (unconstrained_dev_ids >> #(''0123:4567:89AB:CDEF'') >> (''11c1:5811'') >> ) >> >> This is the first time I am trying to get it to work. > > It should not work. I am saying this b/c the pciback which is required to > pass-through PCI writes/reads has not been ported over to 2.6.31.1 yet. I am > working on this right now. > > The pci-stub is just what it says. A stub. >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Sander Eikelenboom
2009-Oct-13 14:48 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Good to hear pciback is coming soon ! :-) Tuesday, October 13, 2009, 4:22:53 PM, you wrote:> On Tue, Oct 13, 2009 at 09:32:08AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >> Hi, >> >> I have a firewire passthrough script passthru-firewire.sh. >> >> #!/bin/sh >> echo "11c1 5811" > /sys/bus/pci/drivers/pci-stub/new_id >> echo "0000:02:01.0" > /sys/bus/pci/devices/0000:02:01.0/driver/unbind >> echo "0000:02:01.0" > /sys/bus/pci/drivers/pci-stub/bind >> >> #Unload firewire driver >> rmmod firewire_ohci >> rmmod firewire_core >> >> I have the pci directive in winxp domU config: >> >> # nvidia & firewire >> pci = [ ''01:00.0'',''02:01.0'' ] >> >> 01:00.0 is for passing through the nvidia pci express x16 graphics >> card and 02:01.0 is the BDF of the OHCI firewire controller. >> >> And I also added the vendorid and productid of the firewire controller >> in xend-pci-permissive.sxp. >> >> (unconstrained_dev_ids >> #(''0123:4567:89AB:CDEF'') >> (''11c1:5811'') >> ) >> >> This is the first time I am trying to get it to work.> It should not work. I am saying this b/c the pciback which is required to > pass-through PCI writes/reads has not been ported over to 2.6.31.1 yet. I am > working on this right now.> The pci-stub is just what it says. A stub.-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-13 15:24 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Couldn''t pci-stub be used to passthrough the ohci firewire controller? I had used pci-stub to passthrough the PCI-E x16 graphics card to Windows guest. For firewire controller, must it really use pciback for passthrough? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Tue, Oct 13, 2009 at 10:48 PM, Sander Eikelenboom <linux@eikelenboom.it> wrote:> Good to hear pciback is coming soon ! :-) > > > Tuesday, October 13, 2009, 4:22:53 PM, you wrote: > >> On Tue, Oct 13, 2009 at 09:32:08AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >>> Hi, >>> >>> I have a firewire passthrough script passthru-firewire.sh. >>> >>> #!/bin/sh >>> echo "11c1 5811" > /sys/bus/pci/drivers/pci-stub/new_id >>> echo "0000:02:01.0" > /sys/bus/pci/devices/0000:02:01.0/driver/unbind >>> echo "0000:02:01.0" > /sys/bus/pci/drivers/pci-stub/bind >>> >>> #Unload firewire driver >>> rmmod firewire_ohci >>> rmmod firewire_core >>> >>> I have the pci directive in winxp domU config: >>> >>> # nvidia & firewire >>> pci = [ ''01:00.0'',''02:01.0'' ] >>> >>> 01:00.0 is for passing through the nvidia pci express x16 graphics >>> card and 02:01.0 is the BDF of the OHCI firewire controller. >>> >>> And I also added the vendorid and productid of the firewire controller >>> in xend-pci-permissive.sxp. >>> >>> (unconstrained_dev_ids >>> #(''0123:4567:89AB:CDEF'') >>> (''11c1:5811'') >>> ) >>> >>> This is the first time I am trying to get it to work. > >> It should not work. I am saying this b/c the pciback which is required to >> pass-through PCI writes/reads has not been ported over to 2.6.31.1 yet. I am >> working on this right now. > >> The pci-stub is just what it says. A stub. > > > > > > -- > Best regards, > Sander mailto:linux@eikelenboom.it > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2009-Oct-13 17:04 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
On Tue, Oct 13, 2009 at 10:39:21PM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Hi Konrad, > > So if I try firewire passthrough in pvops dom0 kernel 2.6.30-rc3 it > will not work also because the code for firewire controller > passthrough is non-existent as of now?Actually I was mistaken. The pci-stub is used by qemu to emulate/pass through. If you are using an HVM guest (which you are), then QEMU is the one handling the PCI device. But if you are using a PV guest, you need to have pciback/pcifront support - that is what I am porting over right now. For your issue, I would recompile QEMU with debug enabled in the hw/pass-through.c code and see what is happening. Maybe there are some errors in the log that would explain why it is not working properly? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-14 10:26 UTC
Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
Dear All, I was wrong in stating that only one USB device can be passed through to Windows XP domU at any one time. In making this assumption, I had passed through the USB optical mouse only and relied on the onscreen keyboard as a substitute for the physical USB keyboard. I realized that I couldn''t get to the QEMU monitor and issue the "usb_add host:vendorid:productid" command even after I have vnc-ed into my Windows XP domU. This is because the VNC server is running within Windows XP guest operating system. In order to reach the QEMU monitor and execute the usb_add command, you have to initialize the vnc server built-in to QEMU, which I did not previously do so. So today I have re-configured my Windows XP Home Edition virtual machine configuration, particularly pertaining to vnc settings. Here is my WinXP HVM configuration: #import os, re #arch = os.uname()[4] #if re.search(''64'', arch): # arch_libdir = ''lib64'' #else: # arch_libdir = ''lib'' kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' memory = 3072 # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. #shadow_memory = 8 name = "winxphome32" vif = [ ''bridge=eth0'' ] acpi = 1 apic = 1 disk = [ ''phy:/dev/virtualmachines/winxphome32,hda,w'', ''phy:/dev/sr0,hdc:cdrom,r'' ] #device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' #device_model = ''/usr/'' + ''lib'' + ''/xen/bin/qemu-dm'' device_model = ''qemu-dm'' #----------------------------------------------------------------------------- # boot on floppy (a), hard disk (c) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot="cd" sdl=0 vnc=1 vnclisten="<IP address of dom 0>" vncdisplay=1 vncunused=1 vncconsole=0 vncpasswd='''' #serial=''pty'' #usbdevice=''tablet'' # onboard #pci = [ ''00:02.0'' ] # nvidia & firewire pci = [ ''01:00.0'',''02:01.0'' ] vcpus=2 # No passthrough #gfx_passthru=0 # onboard #gfx_passthru=1 # nvidia gfx_passthru=2 # Can only pass through one usb device at a time usb=1 # USB Unity Green Mouse #usbdevice = ''host:1bcf:0007'' # USB A1pro Black Mouse usbdevice = ''host:15d9:0a41'' # USB Keyboard #usbdevice = ''host:0603:00f2'' # USB Sony IC Recorder #usbdevice = ''host:054c:0271'' # USB Lexmark X1270 Color Printer #usbdevice = ''host:043d:00ff'' # USB Lexmark X1270 Photo Scanner #usbdevice = ''host:043d:007d'' # USB Lexmark X1270 Generic Hub #usbdevice = ''host:043d:007a'' After I have started Windows XP domU on my Intel DQ45CB, I vnc-ed into the VNC server built-in to QEMU using my laptop over network. USB optical mouse was already passed through to WinXP domU as specified in the HVM config. On the QEMU monitor, I executed "usb_add host:0603:00f2" to passthrough my USB keyboard. Windows XP domU immediately detected the presence of the physical USB keyboard. Now I have both USB optical mouse and USB keyboard passed through to my Xen-based Windows XP virtual machine. Sorry Timothy I took so long to figure it out. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sun, Oct 11, 2009 at 3:22 PM, Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com> wrote:> It works. > > How do I get more than 1 usb device to be passed through to win xp > domU? At the moment I can only passthrough the usb optical mouse and > not the usb keyboard. I have to use the on-screen keyboard. > > I have also tried to pass through the OHCI Firewire controller to the > win xp domu. Win XP domU device manager reports that the firewire > controller is working properly. However, when I plug in my Canon HV20 > firewire-based digital camcorder, it cannot be detected at all. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Sat, Oct 10, 2009 at 5:41 AM, Jeremy Fitzhardinge <jeremy@goop.org> wrote: >> On 10/09/09 00:52, Mr. Teo En Ming (Zhang Enming) wrote: >>> So if I don''t do a git checkout of a specific branch, the default will >>> be xen/master, and at the time of this writing, the pvops dom0 kernel >>> will be 2.6.31.1? >>> >> >> Yep, that''s the plan. Tell me if it works. >> >> J >> >> >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-23 17:47 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi, Could you help me look at here http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html and also here http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Wed, Oct 14, 2009 at 1:04 AM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:> On Tue, Oct 13, 2009 at 10:39:21PM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >> Hi Konrad, >> >> So if I try firewire passthrough in pvops dom0 kernel 2.6.30-rc3 it >> will not work also because the code for firewire controller >> passthrough is non-existent as of now? > > Actually I was mistaken. The pci-stub is used by qemu to emulate/pass through. > If you are using an HVM guest (which you are), then QEMU is the one handling > the PCI device. But if you are using a PV guest, you need to have pciback/pcifront > support - that is what I am porting over right now. > > For your issue, I would recompile QEMU with debug enabled in the hw/pass-through.c > code and see what is happening. Maybe there are some errors in the log that would > explain why it is not working properly? >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2009-Oct-23 17:57 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Hi, > > Could you help me look at here > http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html > and also here http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.htmlIts looks to be working from the Dom0 side just fine. I am curious as what is happening on the Windows driver side. I don''t know enough about where Windows drivers put debug information so I can''t suggest where to look there. One suggestion is that you install Fedora Core 11 as a HVM guest and passthrough your firewire controller to it. And then include the logs from the Fedora domU - that should give more insight on why it is not working properly. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-23 18:19 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
>From the screenshots of the device manager in the Win XP Home domU,the OHCI IEEE 1394 firewire controller appears to be working properly. The Windows drivers for the firewire controller reports that the firewire controller is working fine. However, when you connect a firewire-based digital video camera to the firewire port, it is not detected in the Windows virtual machine. I will probably have to find time to install a Linux HVM domU and try to pass through the 1394 controller to it. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:> On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >> Hi, >> >> Could you help me look at here >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html >> and also here http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html > > Its looks to be working from the Dom0 side just fine. I am curious as what is happening > on the Windows driver side. I don''t know enough about where Windows drivers put > debug information so I can''t suggest where to look there. One suggestion is that > you install Fedora Core 11 as a HVM guest and passthrough your firewire controller to it. > And then include the logs from the Fedora domU - that should give more insight on why > it is not working properly. >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Nov-01 14:07 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi All, I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please refer to http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/for more details and screenshots. I have tried to passthrough the firewire controller on Intel DQ45CB motherboard to Slackware64 13.0 HVM domU but I can''t load the kernel modules for it. Please have a look at the following output within Slackware64 13.0 HVM domU. 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 [OHCI]) Subsystem: Intel Corporation Device 1003 Flags: bus master, medium devsel, latency 128, IRQ 36 Memory at e3001000 (32-bit, non-prefetchable) [size=4K] Memory at e3002000 (32-bit, non-prefetchable) [size=4K] Capabilities: [44] Power Management version 2 Kernel driver in use: ohci1394 Kernel modules: ohci1394 root@slackware64-13:~# lsmod | egrep "(ohci|1394)" root@slackware64-13:~# cd /lib/modules/2.6.29.6/kernel/drivers/ieee1394/ root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# ls dv1394.ko eth1394.ko ieee1394.ko ohci1394.ko pcilynx.ko raw1394.ko sbp2.ko video1394.ko root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modinfo ohci1394.ko filename: ohci1394.ko license: GPL description: Driver for PCI OHCI IEEE-1394 controllers author: Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au> alias: pci:v*d*sv*sd*bc0Csc00i10* depends: ieee1394 vermagic: 2.6.29.6 SMP mod_unload parm: phys_dma:Enable physical DMA (default = 1). (int) root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modinfo ieee1394.ko filename: ieee1394.ko license: GPL depends: vermagic: 2.6.29.6 SMP mod_unload parm: ignore_drivers:Disable automatic probing for drivers. (int) parm: fcp:Map FCP registers (default = 1, disable = 0). (int) parm: disable_nodemgr:Disable nodemgr functionality. (int) parm: disable_irm:Disable Isochronous Resource Manager functionality. (bool) root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modprobe ieee1394 FATAL: Error inserting ieee1394 (/lib/modules/ 2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko): Invalid argument root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modprobe ohci1394 FATAL: Error inserting ohci1394 (/lib/modules/ 2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko): Invalid argument root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | grep -i firewire root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | grep -i ieee ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# lsmod | grep ieee1394 root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | grep 1394 ohci1394 0000:00:05.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36 ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[36] MMIO=[e3001000-e30017ff] Max Packet=[2048] IR/IT contexts=[8/8] ieee1394: module is already loaded ohci1394: module is already loaded ieee1394: module is already loaded ohci1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ohci1394: module is already loaded Debug messages in Dom0: domid: 3 qemu: the number of cpus is 2 config qemu network with xen bridge for tap3.0 eth0 Watching /local/domain/0/device-model/3/logdirty/next-active Watching /local/domain/0/device-model/3/command qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 9a35fdea-fa74-6fec-e0f2-a852836d9a22 Time offset set 0 cirrus_vga_enabled populating video RAM at ff000000 mapping video RAM from ff000000 Register xen platform. Done register platform. xs_read(/vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/log-throttling): read error platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/vncpasswd. medium change watch on `hdc'' (index: 1): /media/hitachi/slackware64-13.0-install-dvd.iso I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 02:01.0 ... pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x2:0x1.0x0 pt_register_regions: IO region registered (size=0x00001000 base_addr=0xd3801000) pt_register_regions: IO region registered (size=0x00000100 base_addr=0xd3800000) register_real_device: Error: Binding of interrupt failed! rc=-1 register_real_device: Real physical device 02:01.0 registered successfuly! IRQ type = INTx cirrus vga map change while on lfb mode pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 first_map=1 pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 first_map=1 mapping vram to e0000000 - e0400000 platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state. *pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:05.0][Offset:30h][Length:4]* The line immediately above looks very suspicious. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone (SingTel): +65-9648-9798 Mobile Phone (Starhub Prepaid): +65-8369-2618 Age: 31 (as at 30 Oct 2009) Height: 1.78 meters Race: Chinese Dialect: Hokkien Street: Bedok Reservoir Road Country: Singapore On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> From the screenshots of the device manager in the Win XP Home domU, > the OHCI IEEE 1394 firewire controller appears to be working properly. > The Windows drivers for the firewire controller reports that the > firewire controller is working fine. > > However, when you connect a firewire-based digital video camera to the > firewire port, it is not detected in the Windows virtual machine. > > I will probably have to find time to install a Linux HVM domU and try > to pass through the 1394 controller to it. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > > On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk > <konrad.wilk@oracle.com> wrote: > > On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming) > wrote: > >> Hi, > >> > >> Could you help me look at here > >> > http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html > >> and also here > http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html > > > > Its looks to be working from the Dom0 side just fine. I am curious as > what is happening > > on the Windows driver side. I don''t know enough about where Windows > drivers put > > debug information so I can''t suggest where to look there. One suggestion > is that > > you install Fedora Core 11 as a HVM guest and passthrough your firewire > controller to it. > > And then include the logs from the Fedora domU - that should give more > insight on why > > it is not working properly. > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Nov-02 10:29 UTC
[Xen-users] Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi, Anybody knows how to solve this problem? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone (SingTel): +65-9648-9798 Mobile Phone (Starhub Prepaid): +65-8369-2618 Age: 31 (as at 30 Oct 2009) Height: 1.78 meters Race: Chinese Dialect: Hokkien Street: Bedok Reservoir Road Country: Singapore On Sun, Nov 1, 2009 at 10:07 PM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote:> Hi All, > > I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please > refer to > http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/for more details and screenshots. > > I have tried to passthrough the firewire controller on Intel DQ45CB > motherboard to Slackware64 13.0 HVM domU but I can''t load the kernel modules > for it. > > Please have a look at the following output within Slackware64 13.0 HVM > domU. > > 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 > [OHCI]) > Subsystem: Intel Corporation Device 1003 > Flags: bus master, medium devsel, latency 128, IRQ 36 > Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > Memory at e3002000 (32-bit, non-prefetchable) [size=4K] > Capabilities: [44] Power Management version 2 > Kernel driver in use: ohci1394 > Kernel modules: ohci1394 > > root@slackware64-13:~# lsmod | egrep "(ohci|1394)" > root@slackware64-13:~# cd /lib/modules/2.6.29.6/kernel/drivers/ieee1394/ > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# ls > dv1394.ko eth1394.ko ieee1394.ko ohci1394.ko pcilynx.ko raw1394.ko > sbp2.ko video1394.ko > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modinfo > ohci1394.ko > filename: ohci1394.ko > license: GPL > description: Driver for PCI OHCI IEEE-1394 controllers > author: Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au> > alias: pci:v*d*sv*sd*bc0Csc00i10* > depends: ieee1394 > vermagic: 2.6.29.6 SMP mod_unload > parm: phys_dma:Enable physical DMA (default = 1). (int) > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modinfo > ieee1394.ko > filename: ieee1394.ko > license: GPL > depends: > vermagic: 2.6.29.6 SMP mod_unload > parm: ignore_drivers:Disable automatic probing for drivers. (int) > parm: fcp:Map FCP registers (default = 1, disable = 0). (int) > parm: disable_nodemgr:Disable nodemgr functionality. (int) > parm: disable_irm:Disable Isochronous Resource Manager > functionality. (bool) > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modprobe ieee1394 > FATAL: Error inserting ieee1394 (/lib/modules/ > 2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko): Invalid argument > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modprobe ohci1394 > FATAL: Error inserting ohci1394 (/lib/modules/ > 2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko): Invalid argument > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep -i firewire > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep -i ieee > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# lsmod | > grep ieee1394 > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep 1394 > ohci1394 0000:00:05.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36 > ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[36] > MMIO=[e3001000-e30017ff] Max Packet=[2048] IR/IT contexts=[8/8] > ieee1394: module is already loaded > ohci1394: module is already loaded > ieee1394: module is already loaded > ohci1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ohci1394: module is already loaded > > Debug messages in Dom0: > > domid: 3 > qemu: the number of cpus is 2 > config qemu network with xen bridge for tap3.0 eth0 > Watching /local/domain/0/device-model/3/logdirty/next-active > Watching /local/domain/0/device-model/3/command > qemu_map_cache_init nr_buckets = 10000 size 4194304 > shared page at pfn feffd > buffered io page at pfn feffb > Guest uuid = 9a35fdea-fa74-6fec-e0f2-a852836d9a22 > Time offset set 0 > cirrus_vga_enabled > populating video RAM at ff000000 > mapping video RAM from ff000000 > Register xen platform. > Done register platform. > xs_read(/vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/log-throttling): read > error > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error > xs_read(): vncpasswd get error. > /vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/vncpasswd. > medium change watch on `hdc'' (index: 1): > /media/hitachi/slackware64-13.0-install-dvd.iso > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 02:01.0 ... > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No > such file or directory: 0x2:0x1.0x0 > pt_register_regions: IO region registered (size=0x00001000 > base_addr=0xd3801000) > pt_register_regions: IO region registered (size=0x00000100 > base_addr=0xd3800000) > register_real_device: Error: Binding of interrupt failed! rc=-1 > register_real_device: Real physical device 02:01.0 registered successfuly! > IRQ type = INTx > cirrus vga map change while on lfb mode > pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 > first_map=1 > pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 > first_map=1 > mapping vram to e0000000 - e0400000 > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro > state. > *pt_pci_write_config: Warning: Guest attempt to set address to unused Base > Address Register. [00:05.0][Offset:30h][Length:4]* > > The line immediately above looks very suspicious. > > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com > My Secondary Blog: http://enmingteo.wordpress.com > My Youtube videos: http://www.youtube.com/user/enmingteo > > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone (SingTel): +65-9648-9798 > Mobile Phone (Starhub Prepaid): +65-8369-2618 > Age: 31 (as at 30 Oct 2009) > Height: 1.78 meters > Race: Chinese > Dialect: Hokkien > Street: Bedok Reservoir Road > Country: Singapore > > > On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> From the screenshots of the device manager in the Win XP Home domU, >> the OHCI IEEE 1394 firewire controller appears to be working properly. >> The Windows drivers for the firewire controller reports that the >> firewire controller is working fine. >> >> However, when you connect a firewire-based digital video camera to the >> firewire port, it is not detected in the Windows virtual machine. >> >> I will probably have to find time to install a Linux HVM domU and try >> to pass through the 1394 controller to it. >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> >> On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk >> <konrad.wilk@oracle.com> wrote: >> > On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming) >> wrote: >> >> Hi, >> >> >> >> Could you help me look at here >> >> >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html >> >> and also here >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html >> > >> > Its looks to be working from the Dom0 side just fine. I am curious as >> what is happening >> > on the Windows driver side. I don''t know enough about where Windows >> drivers put >> > debug information so I can''t suggest where to look there. One suggestion >> is that >> > you install Fedora Core 11 as a HVM guest and passthrough your firewire >> controller to it. >> > And then include the logs from the Fedora domU - that should give more >> insight on why >> > it is not working properly. >> > >> > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Konrad Rzeszutek Wilk
2009-Nov-02 14:13 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
On Sun, Nov 01, 2009 at 10:07:41PM +0800, Mr. Teo En Ming (Zhang Enming) wrote:> Hi All, > > I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please > refer to > http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/for > more details and screenshots. > > I have tried to passthrough the firewire controller on Intel DQ45CB > motherboard to Slackware64 13.0 HVM domU but I can''t load the kernel modules > for it.It looks as if they are were already loaded during bootup. If you want to re-load them, first do ''rmmod'' for all of the modules associated with the card. But looking at your ''dmesg'' output it looks as if it was loaded correctly?> > Please have a look at the following output within Slackware64 13.0 HVM domU. > > 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 > [OHCI]) > Subsystem: Intel Corporation Device 1003 > Flags: bus master, medium devsel, latency 128, IRQ 36Wow. IRQ 36? Hmm, well mmaybe that is OK since you are running under QEMU as HVM guest. Can you provide the lspci -vv output of the Dom0 and DomU, please?> Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > Memory at e3002000 (32-bit, non-prefetchable) [size=4K] > Capabilities: [44] Power Management version 2 > Kernel driver in use: ohci1394 > Kernel modules: ohci1394... snup ..> dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 02:01.0 ... > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No > such file or directory: 0x2:0x1.0x0 > pt_register_regions: IO region registered (size=0x00001000 > base_addr=0xd3801000) > pt_register_regions: IO region registered (size=0x00000100 > base_addr=0xd3800000) > register_real_device: Error: Binding of interrupt failed! rc=-1 > register_real_device: Real physical device 02:01.0 registered successfuly! > IRQ type = INTxHmmm.. I think that message is misleading. The code shows that it failed to bind the PCI card (02:01:0) to an interrupt and disabled the card. Then it prints the ''registered succesfully!'' which is incorrect. Can you provide the output of: - lspci -vvv (from Dom0) - lspci -vvv (from DomU) - cat /proc/interrupts (from Dom0) _before_ you launch any guests or call bind any devices to the pcistub/pciback. - cat /proc/interrupts (from DomU) after you launch it and try to do stuff with the firewire. For example try to pull videos from your camera via the firewire port.> cirrus vga map change while on lfb mode > pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 > first_map=1 > pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 > first_map=1 > mapping vram to e0000000 - e0400000 > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro > state. > *pt_pci_write_config: Warning: Guest attempt to set address to unused Base > Address Register. [00:05.0][Offset:30h][Length:4]*It does pass it throught. I believe it is OK during the probing of the device - but it does not say what the value it tried to write, so it is unclear what it is doing at that point.> > The line immediately above looks very suspicious. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com > My Secondary Blog: http://enmingteo.wordpress.com > My Youtube videos: http://www.youtube.com/user/enmingteo > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone (SingTel): +65-9648-9798 > Mobile Phone (Starhub Prepaid): +65-8369-2618 > Age: 31 (as at 30 Oct 2009) > Height: 1.78 meters > Race: Chinese > Dialect: Hokkien > Street: Bedok Reservoir Road > Country: Singapore > > On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > > > From the screenshots of the device manager in the Win XP Home domU, > > the OHCI IEEE 1394 firewire controller appears to be working properly. > > The Windows drivers for the firewire controller reports that the > > firewire controller is working fine. > > > > However, when you connect a firewire-based digital video camera to the > > firewire port, it is not detected in the Windows virtual machine. > > > > I will probably have to find time to install a Linux HVM domU and try > > to pass through the 1394 controller to it. > > > > -- > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > Engineering) > > Alma Maters: > > (1) Singapore Polytechnic > > (2) National University of Singapore > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > Email: space.time.universe@gmail.com > > MSN: teoenming@hotmail.com > > Mobile Phone: +65-9648-9798 > > Street: Bedok Reservoir Road > > Republic of Singapore > > > > > > On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk > > <konrad.wilk@oracle.com> wrote: > > > On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming) > > wrote: > > >> Hi, > > >> > > >> Could you help me look at here > > >> > > http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html > > >> and also here > > http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html > > > > > > Its looks to be working from the Dom0 side just fine. I am curious as > > what is happening > > > on the Windows driver side. I don''t know enough about where Windows > > drivers put > > > debug information so I can''t suggest where to look there. One suggestion > > is that > > > you install Fedora Core 11 as a HVM guest and passthrough your firewire > > controller to it. > > > And then include the logs from the Fedora domU - that should give more > > insight on why > > > it is not working properly. > > > > >> _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Nov-02 15:19 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi Konrad,>It looks as if they are were already loaded during bootup. >If you want to >re-load them, first do ''rmmod'' for all of the modules >associated with thecard.>But looking at your ''dmesg'' output it looks as if it was >loaded correctly?The kernel modules for the firewire controller were not loaded during bootup inside Slackware HVM domU. I believe there was an attempt to load the kernel modules for the firewire controller during bootup but failed with invalid argument.>Wow. IRQ 36? Hmm, well mmaybe that is OK since you >are running >under QEMU as HVM guest.>Can you provide the lspci -vv output of the Dom0 and >DomU, please?lspci -vvv of my firewire controller in Dom0: 02:01.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 [OHCI]) Subsystem: Intel Corporation Device 1003 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 32 (3000ns min, 6000ns max), Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 22 Region 0: Memory at d3801000 (32-bit, non-prefetchable) [size=4K] Region 1: Memory at d3800000 (32-bit, non-prefetchable) [size=256] Capabilities: [44] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME+ Kernel driver in use: firewire_ohci Kernel modules: firewire-ohci>Hmmm.. I think that message is misleading. The code >shows that it >failed to bind the PCI card (02:01:0) to an interrupt and >disabled >the card. Then it prints the ''registered succesfully!'' which is >incorrect.>Can you provide the output of: > - lspci -vvv (from Dom0)Provided above.> - lspci -vvv (from DomU)00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 [OHCI]) Subsystem: Intel Corporation Device 1003 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+ Latency: 128 (3000ns min, 6000ns max) Interrupt: pin A routed to IRQ 36 Region 0: Memory at e3001000 (32-bit, non-prefetchable) [size=4K] Region 1: Memory at e3002000 (32-bit, non-prefetchable) [size=4K] Capabilities: [44] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: ohci1394 Kernel modules: ohci1394> - cat /proc/interrupts (from Dom0) _before_ you launch >any guests or > call bind any devices to the pcistub/pciback.CPU0 CPU1 1: 2 0 xen-pirq-ioapic-edge i8042 4: 3 0 xen-pirq-ioapic-edge 8: 1 0 xen-pirq-ioapic-edge rtc0 9: 0 0 xen-pirq-ioapic-level acpi 12: 4 0 xen-pirq-ioapic-edge i8042 16: 0 0 xen-pirq-ioapic-level uhci_hcd:usb3 17: 1 0 xen-pirq-ioapic-level 18: 58 0 xen-pirq-ioapic-level ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8 19: 242304 0 xen-pirq-ioapic-level ata_piix, ata_piix, uhci_hcd:usb7 21: 0 0 xen-pirq-ioapic-level uhci_hcd:usb4 22: 387742 0 xen-pirq-ioapic-level HDA Intel, firewire_ohci 23: 252475 0 xen-pirq-ioapic-level ehci_hcd:usb2, uhci_hcd:usb6 24: 97835 0 xen-dyn-virq timer0 25: 780164 0 xen-dyn-ipi resched0 26: 0 0 xen-dyn-ipi callfunc0 27: 0 0 xen-dyn-virq debug0 28: 273 0 xen-dyn-ipi callfuncsingle0 29: 0 28539658 xen-dyn-virq timer1 30: 0 829152 xen-dyn-ipi resched1 31: 0 0 xen-dyn-ipi callfunc1 32: 0 0 xen-dyn-virq debug1 33: 0 706 xen-dyn-ipi callfuncsingle1 34: 3415 3219 xen-dyn-event xenbus 36: 0 0 xen-dyn-virq mce 38: 439766 0 xen-pirq-msi peth0 39: 2010 1905 xen-dyn-event evtchn:xenstored 40: 9 0 xen-dyn-event evtchn:xenstored NMI: 0 0 Non-maskable interrupts LOC: 0 0 Local timer interrupts SPU: 0 0 Spurious interrupts CNT: 0 0 Performance counter interrupts PND: 0 0 Performance pending work RES: 780164 829152 Rescheduling interrupts CAL: 273 706 Function call interrupts TLB: 0 0 TLB shootdowns TRM: 0 0 Thermal event interrupts THR: 0 0 Threshold APIC interrupts MCE: 0 0 Machine check exceptions MCP: 32 32 Machine check polls ERR: 0 MIS: 0> - cat /proc/interrupts (from DomU) after you launch it and >try to > do stuff with the firewire. For example try to pull videos >from > your camera via the firewire port.I haven''t tried to control the camera using the firewire port but here''s my /proc/interrupts output. CPU0 CPU1 0: 132 0 IO-APIC-edge timer 1: 134 132 IO-APIC-edge i8042 4: 1 0 IO-APIC-edge 6: 1 2 IO-APIC-edge floppy 7: 0 0 IO-APIC-edge parport0 8: 1 0 IO-APIC-edge rtc0 9: 0 0 IO-APIC-fasteoi acpi 12: 137 86 IO-APIC-edge i8042 14: 2492 2500 IO-APIC-edge ide0 15: 252 238 IO-APIC-edge ide1 32: 63 71 IO-APIC-fasteoi eth0 36: 0 0 IO-APIC-fasteoi ohci1394 NMI: 0 0 Non-maskable interrupts LOC: 181885 181753 Local timer interrupts RES: 1994 1700 Rescheduling interrupts CAL: 18 26 Function call interrupts TLB: 316 345 TLB shootdowns TRM: 0 0 Thermal event interrupts THR: 0 0 Threshold APIC interrupts SPU: 0 0 Spurious interrupts ERR: 0 MIS: 0 The kernel modules for the firewire controller in Slackware HVM DomU are unable to load. root@slackware64-13:~# lsmod | grep 1394 root@slackware64-13:~# modprobe ieee1394 FATAL: Error inserting ieee1394 (/lib/modules/ 2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko): Invalid argument root@slackware64-13:~# modprobe ohci1394 FATAL: Error inserting ohci1394 (/lib/modules/ 2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko): Invalid argument I am running pv-ops dom0 kernel 2.6.31.5 now. There appears to be some sluggishness/unresponsiveness with this kernel after I have started a HVM guest. By the way, can you also help me to solve this problem as well? http://lists.xensource.com/archives/html/xen-devel/2009-11/msg00044.html Thank you! -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore On Mon, Nov 2, 2009 at 10:13 PM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> wrote:> On Sun, Nov 01, 2009 at 10:07:41PM +0800, Mr. Teo En Ming (Zhang Enming) > wrote: > > Hi All, > > > > I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please > > refer to > > > http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/for > > more details and screenshots. > > > > I have tried to passthrough the firewire controller on Intel DQ45CB > > motherboard to Slackware64 13.0 HVM domU but I can''t load the kernel > modules > > for it. > > It looks as if they are were already loaded during bootup. If you want to > re-load them, first do ''rmmod'' for all of the modules associated with the > card. > > But looking at your ''dmesg'' output it looks as if it was loaded correctly? > > > > > Please have a look at the following output within Slackware64 13.0 HVM > domU. > > > > 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if > 10 > > [OHCI]) > > Subsystem: Intel Corporation Device 1003 > > Flags: bus master, medium devsel, latency 128, IRQ 36 > > Wow. IRQ 36? Hmm, well mmaybe that is OK since you are running > under QEMU as HVM guest. > > Can you provide the lspci -vv output of the Dom0 and DomU, please? > > > Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > > Memory at e3002000 (32-bit, non-prefetchable) [size=4K] > > Capabilities: [44] Power Management version 2 > > Kernel driver in use: ohci1394 > > Kernel modules: ohci1394 > > ... snup .. > > dm-command: hot insert pass-through pci dev > > register_real_device: Assigning real physical device 02:01.0 ... > > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: > No > > such file or directory: 0x2:0x1.0x0 > > pt_register_regions: IO region registered (size=0x00001000 > > base_addr=0xd3801000) > > pt_register_regions: IO region registered (size=0x00000100 > > base_addr=0xd3800000) > > register_real_device: Error: Binding of interrupt failed! rc=-1 > > register_real_device: Real physical device 02:01.0 registered > successfuly! > > IRQ type = INTx > > Hmmm.. I think that message is misleading. The code shows that it > failed to bind the PCI card (02:01:0) to an interrupt and disabled > the card. Then it prints the ''registered succesfully!'' which is incorrect. > > Can you provide the output of: > - lspci -vvv (from Dom0) > - lspci -vvv (from DomU) > - cat /proc/interrupts (from Dom0) _before_ you launch any guests or > call bind any devices to the pcistub/pciback. > - cat /proc/interrupts (from DomU) after you launch it and try to > do stuff with the firewire. For example try to pull videos from > your camera via the firewire port. > > > cirrus vga map change while on lfb mode > > pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 > > first_map=1 > > pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 > > first_map=1 > > mapping vram to e0000000 - e0400000 > > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > > state. > > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro > > state. > > *pt_pci_write_config: Warning: Guest attempt to set address to unused > Base > > Address Register. [00:05.0][Offset:30h][Length:4]* > > It does pass it throught. I believe it is OK during the probing of the > device - but it does not say what the value it tried to write, so it is > unclear what it is doing at that point. > > > > > The line immediately above looks very suspicious. > > > > -- > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > Engineering) > > Alma Maters: > > (1) Singapore Polytechnic > > (2) National University of Singapore > > My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com > > My Secondary Blog: http://enmingteo.wordpress.com > > My Youtube videos: http://www.youtube.com/user/enmingteo > > Email: space.time.universe@gmail.com > > MSN: teoenming@hotmail.com > > Mobile Phone (SingTel): +65-9648-9798 > > Mobile Phone (Starhub Prepaid): +65-8369-2618 > > Age: 31 (as at 30 Oct 2009) > > Height: 1.78 meters > > Race: Chinese > > Dialect: Hokkien > > Street: Bedok Reservoir Road > > Country: Singapore > > > > On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) < > > space.time.universe@gmail.com> wrote: > > > > > From the screenshots of the device manager in the Win XP Home domU, > > > the OHCI IEEE 1394 firewire controller appears to be working properly. > > > The Windows drivers for the firewire controller reports that the > > > firewire controller is working fine. > > > > > > However, when you connect a firewire-based digital video camera to the > > > firewire port, it is not detected in the Windows virtual machine. > > > > > > I will probably have to find time to install a Linux HVM domU and try > > > to pass through the 1394 controller to it. > > > > > > -- > > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > > > Engineering) > > > Alma Maters: > > > (1) Singapore Polytechnic > > > (2) National University of Singapore > > > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > > > Email: space.time.universe@gmail.com > > > MSN: teoenming@hotmail.com > > > Mobile Phone: +65-9648-9798 > > > Street: Bedok Reservoir Road > > > Republic of Singapore > > > > > > > > > On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk > > > <konrad.wilk@oracle.com> wrote: > > > > On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang > Enming) > > > wrote: > > > >> Hi, > > > >> > > > >> Could you help me look at here > > > >> > > > > http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html > > > >> and also here > > > > http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html > > > > > > > > Its looks to be working from the Dom0 side just fine. I am curious as > > > what is happening > > > > on the Windows driver side. I don''t know enough about where Windows > > > drivers put > > > > debug information so I can''t suggest where to look there. One > suggestion > > > is that > > > > you install Fedora Core 11 as a HVM guest and passthrough your > firewire > > > controller to it. > > > > And then include the logs from the Fedora domU - that should give > more > > > insight on why > > > > it is not working properly. > > > > > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2009-Nov-02 16:05 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
> >Can you provide the lspci -vv output of the Dom0 and >DomU, please?.. snip ..> Region 0: Memory at d3801000 (32-bit, non-prefetchable) [size=4K] > Region 1: Memory at d3800000 (32-bit, non-prefetchable) [size=256].. snip ..> Region 0: Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > Region 1: Memory at e3002000 (32-bit, non-prefetchable) [size=4K]That is weird. The second region is at the wrong location (unless QEMU actually does some copying after each MMIO operation..). I think what you saw before in the QEMU is a good hint. It could be that the QEMU code assumes the BARs addresses have to be in an increased order, whilst in this case it is the reverse.> Capabilities: [44] Power Management version 2 > Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA > PME(D0-,D1-,D2-,D3hot-,D3cold-) > Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- > Kernel driver in use: ohci1394 > Kernel modules: ohci1394 > > > > - cat /proc/interrupts (from Dom0) _before_ you launch >any guests or > > call bind any devices to the pcistub/pciback.> 22: 387742 0 xen-pirq-ioapic-level HDA Intel, firewire_ohciAll right. You probably need to unload your sound card first in the DomO and pass it to the guest as well. But I vaguely remember you saying that you do that already - so I think this is OK. .. snip ..> 36: 0 0 IO-APIC-fasteoi ohci1394That looks weird at first, but fasteoi == level, so that is OK. I think the issue you pointed out earlier, where the error about the BARs was printed, is the culprit. I am not going to get to this until I am done with the pciback/pcifront work. But it could be that somebody else will pick this bug up in the interim. Can you open a bug on this (http://bugzilla.xensource.com/) and CC me on it? Please include the qemu logs, the dmesg log, /proc/interrupts, lspci -vvv, and anything else you can think off. That way I won''t forget about it. .. snip ..> I am running pv-ops dom0 kernel 2.6.31.5 now. There appears to be some > sluggishness/unresponsiveness with this kernel after I have started a HVM > guest. > > By the way, can you also help me to solve this problem as well? > > http://lists.xensource.com/archives/html/xen-devel/2009-11/msg00044.htmlUuhh.. What did ''info blocks'' (or maybe it is ''info block'') tell you? Did you look up any guides on how to do this? How do you know the guest did not detect the CD change? Did you try to do a read on it? Like ''sg_readcap /dev/sr0'' or ''dd if=/dev/sr0 of=/tmp/temp.iso'' within the guest? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Han, Weidong
2009-Nov-03 01:47 UTC
RE: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi En Ming, I found the line "register_real_device: Error: Binding of interrupt failed! rc=-1". So I guess the Fire-wire device doesn't support MSI, and shares IRQ with other devices. This is the issue I and Jeremy are discussing. You can search mail subject "pv-ops: fix shared irq device passthrough" in mailing list for more details. Pls apply the attached patch to pv-ops dom0 see if it fixes your problem. Regards, Weidong ________________________________ From: Mr. Teo En Ming (Zhang Enming) [mailto:space.time.universe@gmail.com] Sent: 2009年11月1日 22:08 To: Konrad Rzeszutek Wilk Cc: Jeremy Fitzhardinge; xen-devel@lists.xensource.com; Han, Weidong; space.time.universe@gmail.com; xen-users@lists.xensource.com Subject: Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1) Hi All, I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please refer to http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/ for more details and screenshots. I have tried to passthrough the firewire controller on Intel DQ45CB motherboard to Slackware64 13.0 HVM domU but I can't load the kernel modules for it. Please have a look at the following output within Slackware64 13.0 HVM domU. 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 [OHCI]) Subsystem: Intel Corporation Device 1003 Flags: bus master, medium devsel, latency 128, IRQ 36 Memory at e3001000 (32-bit, non-prefetchable) [size=4K] Memory at e3002000 (32-bit, non-prefetchable) [size=4K] Capabilities: [44] Power Management version 2 Kernel driver in use: ohci1394 Kernel modules: ohci1394 root@slackware64-13:~# lsmod | egrep "(ohci|1394)" root@slackware64-13:~# cd /lib/modules/2.6.29.6/kernel/drivers/ieee1394/<http://2.6.29.6/kernel/drivers/ieee1394/> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> ls dv1394.ko eth1394.ko ieee1394.ko ohci1394.ko pcilynx.ko raw1394.ko sbp2.ko video1394.ko root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> modinfo ohci1394.ko filename: ohci1394.ko license: GPL description: Driver for PCI OHCI IEEE-1394 controllers author: Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au<mailto:sebastien.rougeaux@anu.edu.au>> alias: pci:v*d*sv*sd*bc0Csc00i10* depends: ieee1394 vermagic: 2.6.29.6 SMP mod_unload parm: phys_dma:Enable physical DMA (default = 1). (int) root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> modinfo ieee1394.ko filename: ieee1394.ko license: GPL depends: vermagic: 2.6.29.6 SMP mod_unload parm: ignore_drivers:Disable automatic probing for drivers. (int) parm: fcp:Map FCP registers (default = 1, disable = 0). (int) parm: disable_nodemgr:Disable nodemgr functionality. (int) parm: disable_irm:Disable Isochronous Resource Manager functionality. (bool) root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> modprobe ieee1394 FATAL: Error inserting ieee1394 (/lib/modules/2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko<http://2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko>): Invalid argument root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> modprobe ohci1394 FATAL: Error inserting ohci1394 (/lib/modules/2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko<http://2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko>): Invalid argument root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> dmesg | grep -i firewire root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> dmesg | grep -i ieee ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> lsmod | grep ieee1394 root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> dmesg | grep 1394 ohci1394 0000:00:05.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36 ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[36] MMIO=[e3001000-e30017ff] Max Packet=[2048] IR/IT contexts=[8/8] ieee1394: module is already loaded ohci1394: module is already loaded ieee1394: module is already loaded ohci1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ohci1394: module is already loaded Debug messages in Dom0: domid: 3 qemu: the number of cpus is 2 config qemu network with xen bridge for tap3.0 eth0 Watching /local/domain/0/device-model/3/logdirty/next-active Watching /local/domain/0/device-model/3/command qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 9a35fdea-fa74-6fec-e0f2-a852836d9a22 Time offset set 0 cirrus_vga_enabled populating video RAM at ff000000 mapping video RAM from ff000000 Register xen platform. Done register platform. xs_read(/vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/log-throttling): read error platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/vncpasswd. medium change watch on `hdc' (index: 1): /media/hitachi/slackware64-13.0-install-dvd.iso I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 02:01.0 ... pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x2:0x1.0x0 pt_register_regions: IO region registered (size=0x00001000 base_addr=0xd3801000) pt_register_regions: IO region registered (size=0x00000100 base_addr=0xd3800000) register_real_device: Error: Binding of interrupt failed! rc=-1 register_real_device: Real physical device 02:01.0 registered successfuly! IRQ type = INTx cirrus vga map change while on lfb mode pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 first_map=1 pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 first_map=1 mapping vram to e0000000 - e0400000 platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state. pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:05.0][Offset:30h][Length:4] The line immediately above looks very suspicious. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com<mailto:space.time.universe@gmail.com> MSN: teoenming@hotmail.com<mailto:teoenming@hotmail.com> Mobile Phone (SingTel): +65-9648-9798 Mobile Phone (Starhub Prepaid): +65-8369-2618 Age: 31 (as at 30 Oct 2009) Height: 1.78 meters Race: Chinese Dialect: Hokkien Street: Bedok Reservoir Road Country: Singapore On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com<mailto:space.time.universe@gmail.com>> wrote: From the screenshots of the device manager in the Win XP Home domU, the OHCI IEEE 1394 firewire controller appears to be working properly. The Windows drivers for the firewire controller reports that the firewire controller is working fine. However, when you connect a firewire-based digital video camera to the firewire port, it is not detected in the Windows virtual machine. I will probably have to find time to install a Linux HVM domU and try to pass through the 1394 controller to it. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com<mailto:space.time.universe@gmail.com> MSN: teoenming@hotmail.com<mailto:teoenming@hotmail.com> Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com<mailto:konrad.wilk@oracle.com>> wrote:> On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >> Hi, >> >> Could you help me look at here >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html >> and also here http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html > > Its looks to be working from the Dom0 side just fine. I am curious as what is happening > on the Windows driver side. I don't know enough about where Windows drivers put > debug information so I can't suggest where to look there. One suggestion is that > you install Fedora Core 11 as a HVM guest and passthrough your firewire controller to it. > And then include the logs from the Fedora domU - that should give more insight on why > it is not working properly. >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Nov-03 12:27 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi Weidong, I have applied the patch to pv-ops dom0 kernel 2.6.31.5. Please refer to the following link: http://enmingteo.files.wordpress.com/2009/11/screenshot-01.png It does however cause my console terminal in dom0 to be very sluggish/unresponsive after I have started Slackware64 13.0 HVM. Here is my qemu-dm-slackware64.log output: domid: 1 qemu: the number of cpus is 2 config qemu network with xen bridge for tap1.0 eth0 Watching /local/domain/0/device-model/1/logdirty/next-active Watching /local/domain/0/device-model/1/command qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 4d2942cf-1ba2-0ff1-4252-184d1ab31369 Time offset set 0 cirrus_vga_enabled populating video RAM at ff000000 mapping video RAM from ff000000 Register xen platform. Done register platform. xs_read(/vm/4d2942cf-1ba2-0ff1-4252-184d1ab31369/log-throttling): read error platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/4d2942cf-1ba2-0ff1-4252-184d1ab31369/vncpasswd. medium change watch on `hdc'' (index: 1): /media/hitachi/slackware64-13.0-install-dvd.iso I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 02:01.0 ... pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x2:0x1.0x0 pt_register_regions: IO region registered (size=0x00001000 base_addr=0xd3801000) pt_register_regions: IO region registered (size=0x00000100 base_addr=0xd3800000) register_real_device: Real physical device 02:01.0 registered successfuly! IRQ type = INTx cirrus vga map change while on lfb mode pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 first_map=1 pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 first_map=1 mapping vram to e0000000 - e0400000 platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state. pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:05.0][Offset:30h][Length:4] Here is my domU lspci -vvv output: 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 [OHCI]) Subsystem: Intel Corporation Device 1003 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 128 (3000ns min, 6000ns max) Interrupt: pin A routed to IRQ 36 Region 0: Memory at e3001000 (32-bit, non-prefetchable) [size=4K] Region 1: Memory at e3002000 (32-bit, non-prefetchable) [size=4K] Capabilities: [44] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: ohci1394 Kernel modules: ohci1394 Here is my domU /proc/interrupts output: CPU0 CPU1 0: 132 0 IO-APIC-edge timer 1: 176 181 IO-APIC-edge i8042 4: 0 1 IO-APIC-edge 6: 1 2 IO-APIC-edge floppy 7: 0 0 IO-APIC-edge parport0 8: 1 0 IO-APIC-edge rtc0 9: 0 0 IO-APIC-fasteoi acpi 12: 518 632 IO-APIC-edge i8042 14: 2600 2591 IO-APIC-edge ide0 15: 2023 2073 IO-APIC-edge ide1 32: 174 167 IO-APIC-fasteoi eth0 36: 842 815 IO-APIC-fasteoi ohci1394 NMI: 0 0 Non-maskable interrupts LOC: 1362927 1362831 Local timer interrupts RES: 2164 2467 Rescheduling interrupts CAL: 10 38 Function call interrupts TLB: 323 324 TLB shootdowns TRM: 0 0 Thermal event interrupts THR: 0 0 Threshold APIC interrupts SPU: 0 0 Spurious interrupts ERR: 0 MIS: 0 I still cannot load the kernel modules for the firewire controller in domU. root@slackware64-13:~# modprobe ieee1394 FATAL: Error inserting ieee1394 (/lib/modules/ 2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko): Invalid argument root@slackware64-13:~# modprobe ohci1394 FATAL: Error inserting ohci1394 (/lib/modules/ 2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko): Invalid argument Here is my /proc/interrupts output in dom0 AFTER I have started Slackware64 domU: CPU0 CPU1 1: 2 0 xen-pirq-ioapic-edge i8042 4: 3 0 xen-pirq-ioapic-edge 8: 1 0 xen-pirq-ioapic-edge rtc0 9: 0 0 xen-pirq-ioapic-level acpi 12: 4 0 xen-pirq-ioapic-edge i8042 16: 0 0 xen-pirq-ioapic-level uhci_hcd:usb3 17: 1 0 xen-pirq-ioapic-level 18: 59 0 xen-pirq-ioapic-level ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8 19: 60581 0 xen-pirq-ioapic-level ata_piix, ata_piix, uhci_hcd:usb7 21: 0 0 xen-pirq-ioapic-level uhci_hcd:usb4 22: 2500 0 xen-pirq-ioapic-level HDA Intel 23: 35508 0 xen-pirq-ioapic-level ehci_hcd:usb2, uhci_hcd:usb6 24: 121214 0 xen-dyn-virq timer0 25: 290373 0 xen-dyn-ipi resched0 26: 0 0 xen-dyn-ipi callfunc0 27: 0 0 xen-dyn-virq debug0 28: 213 0 xen-dyn-ipi callfuncsingle0 29: 0 3091038 xen-dyn-virq timer1 30: 0 76203 xen-dyn-ipi resched1 31: 0 0 xen-dyn-ipi callfunc1 32: 0 0 xen-dyn-virq debug1 33: 0 644 xen-dyn-ipi callfuncsingle1 34: 87 1002 xen-dyn-event xenbus 36: 0 0 xen-dyn-virq mce 38: 8967 5621 xen-pirq-msi peth0 39: 61 563 xen-dyn-event evtchn:xenstored 40: 0 0 xen-dyn-event evtchn:xenstored 42: 1 0 xen-dyn-event evtchn:xenstored 43: 4098 462204 xen-dyn-event evtchn:qemu-dm 44: 8156 115233 xen-dyn-event evtchn:qemu-dm NMI: 0 0 Non-maskable interrupts LOC: 0 0 Local timer interrupts SPU: 0 0 Spurious interrupts CNT: 0 0 Performance counter interrupts PND: 0 0 Performance pending work RES: 290373 76203 Rescheduling interrupts CAL: 213 644 Function call interrupts TLB: 0 0 TLB shootdowns TRM: 0 0 Thermal event interrupts THR: 0 0 Threshold APIC interrupts MCE: 0 0 Machine check exceptions MCP: 6 6 Machine check polls ERR: 0 MIS: 0 -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore 2009/11/3 Han, Weidong <weidong.han@intel.com>> Hi En Ming, > > I found the line "register_real_device: Error: Binding of interrupt > failed! rc=-1". So I guess the Fire-wire device doesn''t support MSI, and > shares IRQ with other devices. This is the issue I and Jeremy are > discussing. You can search mail subject "pv-ops: fix shared irq device > passthrough" in mailing list for more details. Pls apply the attached patch > to pv-ops dom0 see if it fixes your problem. > > > Regards, > Weidong > > ------------------------------ > *From:* Mr. Teo En Ming (Zhang Enming) [mailto: > space.time.universe@gmail.com] > *Sent:* 2009年11月1日 22:08 > *To:* Konrad Rzeszutek Wilk > *Cc:* Jeremy Fitzhardinge; xen-devel@lists.xensource.com; Han, Weidong; > space.time.universe@gmail.com; xen-users@lists.xensource.com > *Subject:* Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops > (2.6.31.1) > > Hi All, > > I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please > refer to > http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/for more details and screenshots. > > I have tried to passthrough the firewire controller on Intel DQ45CB > motherboard to Slackware64 13.0 HVM domU but I can''t load the kernel modules > for it. > > Please have a look at the following output within Slackware64 13.0 HVM > domU. > > 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 > [OHCI]) > Subsystem: Intel Corporation Device 1003 > Flags: bus master, medium devsel, latency 128, IRQ 36 > Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > Memory at e3002000 (32-bit, non-prefetchable) [size=4K] > Capabilities: [44] Power Management version 2 > Kernel driver in use: ohci1394 > Kernel modules: ohci1394 > > root@slackware64-13:~# lsmod | egrep "(ohci|1394)" > root@slackware64-13:~# cd /lib/modules/2.6.29.6/kernel/drivers/ieee1394/ > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# ls > dv1394.ko eth1394.ko ieee1394.ko ohci1394.ko pcilynx.ko raw1394.ko > sbp2.ko video1394.ko > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modinfo > ohci1394.ko > filename: ohci1394.ko > license: GPL > description: Driver for PCI OHCI IEEE-1394 controllers > author: Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au> > alias: pci:v*d*sv*sd*bc0Csc00i10* > depends: ieee1394 > vermagic: 2.6.29.6 SMP mod_unload > parm: phys_dma:Enable physical DMA (default = 1). (int) > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modinfo > ieee1394.ko > filename: ieee1394.ko > license: GPL > depends: > vermagic: 2.6.29.6 SMP mod_unload > parm: ignore_drivers:Disable automatic probing for drivers. (int) > parm: fcp:Map FCP registers (default = 1, disable = 0). (int) > parm: disable_nodemgr:Disable nodemgr functionality. (int) > parm: disable_irm:Disable Isochronous Resource Manager > functionality. (bool) > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modprobe ieee1394 > FATAL: Error inserting ieee1394 (/lib/modules/ > 2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko): Invalid argument > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modprobe ohci1394 > FATAL: Error inserting ohci1394 (/lib/modules/ > 2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko): Invalid argument > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep -i firewire > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep -i ieee > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# lsmod | > grep ieee1394 > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep 1394 > ohci1394 0000:00:05.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36 > ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[36] > MMIO=[e3001000-e30017ff] Max Packet=[2048] IR/IT contexts=[8/8] > ieee1394: module is already loaded > ohci1394: module is already loaded > ieee1394: module is already loaded > ohci1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ohci1394: module is already loaded > > Debug messages in Dom0: > > domid: 3 > qemu: the number of cpus is 2 > config qemu network with xen bridge for tap3.0 eth0 > Watching /local/domain/0/device-model/3/logdirty/next-active > Watching /local/domain/0/device-model/3/command > qemu_map_cache_init nr_buckets = 10000 size 4194304 > shared page at pfn feffd > buffered io page at pfn feffb > Guest uuid = 9a35fdea-fa74-6fec-e0f2-a852836d9a22 > Time offset set 0 > cirrus_vga_enabled > populating video RAM at ff000000 > mapping video RAM from ff000000 > Register xen platform. > Done register platform. > xs_read(/vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/log-throttling): read > error > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error > xs_read(): vncpasswd get error. > /vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/vncpasswd. > medium change watch on `hdc'' (index: 1): > /media/hitachi/slackware64-13.0-install-dvd.iso > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 02:01.0 ... > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No > such file or directory: 0x2:0x1.0x0 > pt_register_regions: IO region registered (size=0x00001000 > base_addr=0xd3801000) > pt_register_regions: IO region registered (size=0x00000100 > base_addr=0xd3800000) > register_real_device: Error: Binding of interrupt failed! rc=-1 > register_real_device: Real physical device 02:01.0 registered successfuly! > IRQ type = INTx > cirrus vga map change while on lfb mode > pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 > first_map=1 > pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 > first_map=1 > mapping vram to e0000000 - e0400000 > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro > state. > *pt_pci_write_config: Warning: Guest attempt to set address to unused Base > Address Register. [00:05.0][Offset:30h][Length:4]* > > The line immediately above looks very suspicious. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com > My Secondary Blog: http://enmingteo.wordpress.com > My Youtube videos: http://www.youtube.com/user/enmingteo > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone (SingTel): +65-9648-9798 > Mobile Phone (Starhub Prepaid): +65-8369-2618 > Age: 31 (as at 30 Oct 2009) > Height: 1.78 meters > Race: Chinese > Dialect: Hokkien > Street: Bedok Reservoir Road > Country: Singapore > > On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> From the screenshots of the device manager in the Win XP Home domU, >> the OHCI IEEE 1394 firewire controller appears to be working properly. >> The Windows drivers for the firewire controller reports that the >> firewire controller is working fine. >> >> However, when you connect a firewire-based digital video camera to the >> firewire port, it is not detected in the Windows virtual machine. >> >> I will probably have to find time to install a Linux HVM domU and try >> to pass through the 1394 controller to it. >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> >> On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk >> <konrad.wilk@oracle.com> wrote: >> > On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang >> Enming) wrote: >> >> Hi, >> >> >> >> Could you help me look at here >> >> >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html >> >> and also here >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html >> > >> > Its looks to be working from the Dom0 side just fine. I am curious as >> what is happening >> > on the Windows driver side. I don''t know enough about where Windows >> drivers put >> > debug information so I can''t suggest where to look there. One suggestion >> is that >> > you install Fedora Core 11 as a HVM guest and passthrough your firewire >> controller to it. >> > And then include the logs from the Fedora domU - that should give more >> insight on why >> > it is not working properly. >> > >> > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Nov-03 13:06 UTC
[Xen-users] Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
After applying the patch to pv-ops dom0 kernel 2.6.31.5, the error "register_real_device: Error: Binding of interrupt failed! rc=-1" disappears but the following message still persists. pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:05.0][Offset:30h][Length:4] Do we need to do something about the BARs just like in VGA pass-through? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore 2009/11/3 Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com>> Hi Weidong, > > I have applied the patch to pv-ops dom0 kernel 2.6.31.5. > > Please refer to the following link: > > http://enmingteo.files.wordpress.com/2009/11/screenshot-01.png > > It does however cause my console terminal in dom0 to be very > sluggish/unresponsive after I have started Slackware64 13.0 HVM. > > Here is my qemu-dm-slackware64.log output: > > > domid: 1 > qemu: the number of cpus is 2 > config qemu network with xen bridge for tap1.0 eth0 > Watching /local/domain/0/device-model/1/logdirty/next-active > Watching /local/domain/0/device-model/1/command > > qemu_map_cache_init nr_buckets = 10000 size 4194304 > shared page at pfn feffd > buffered io page at pfn feffb > Guest uuid = 4d2942cf-1ba2-0ff1-4252-184d1ab31369 > > Time offset set 0 > cirrus_vga_enabled > populating video RAM at ff000000 > mapping video RAM from ff000000 > Register xen platform. > Done register platform. > xs_read(/vm/4d2942cf-1ba2-0ff1-4252-184d1ab31369/log-throttling): read > error > > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error > xs_read(): vncpasswd get error. > /vm/4d2942cf-1ba2-0ff1-4252-184d1ab31369/vncpasswd. > > medium change watch on `hdc'' (index: 1): > /media/hitachi/slackware64-13.0-install-dvd.iso > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 02:01.0 ... > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No > such file or directory: 0x2:0x1.0x0 > pt_register_regions: IO region registered (size=0x00001000 > base_addr=0xd3801000) > pt_register_regions: IO region registered (size=0x00000100 > base_addr=0xd3800000) > register_real_device: Real physical device 02:01.0 registered successfuly! > IRQ type = INTx > cirrus vga map change while on lfb mode > pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 > first_map=1 > pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 > first_map=1 > mapping vram to e0000000 - e0400000 > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro > state. > pt_pci_write_config: Warning: Guest attempt to set address to unused Base > Address Register. [00:05.0][Offset:30h][Length:4] > > Here is my domU lspci -vvv output: > > > 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 > [OHCI]) > Subsystem: Intel Corporation Device 1003 > Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > <TAbort- <MAbort- >SERR- <PERR- INTx- > Latency: 128 (3000ns min, 6000ns max) > Interrupt: pin A routed to IRQ 36 > Region 0: Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > Region 1: Memory at e3002000 (32-bit, non-prefetchable) [size=4K] > > Capabilities: [44] Power Management version 2 > Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA > PME(D0-,D1-,D2-,D3hot-,D3cold-) > Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- > Kernel driver in use: ohci1394 > Kernel modules: ohci1394 > > Here is my domU /proc/interrupts output: > > > CPU0 CPU1 > 0: 132 0 IO-APIC-edge timer > 1: 176 181 IO-APIC-edge i8042 > > 4: 0 1 IO-APIC-edge > 6: 1 2 IO-APIC-edge floppy > 7: 0 0 IO-APIC-edge parport0 > 8: 1 0 IO-APIC-edge rtc0 > 9: 0 0 IO-APIC-fasteoi acpi > 12: 518 632 IO-APIC-edge i8042 > 14: 2600 2591 IO-APIC-edge ide0 > 15: 2023 2073 IO-APIC-edge ide1 > 32: 174 167 IO-APIC-fasteoi eth0 > 36: 842 815 IO-APIC-fasteoi ohci1394 > > NMI: 0 0 Non-maskable interrupts > LOC: 1362927 1362831 Local timer interrupts > RES: 2164 2467 Rescheduling interrupts > CAL: 10 38 Function call interrupts > TLB: 323 324 TLB shootdowns > > TRM: 0 0 Thermal event interrupts > THR: 0 0 Threshold APIC interrupts > SPU: 0 0 Spurious interrupts > ERR: 0 > MIS: 0 > > I still cannot load the kernel modules for the firewire controller in domU. > > root@slackware64-13:~# modprobe ieee1394 > > FATAL: Error inserting ieee1394 (/lib/modules/ > 2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko): Invalid argument > root@slackware64-13:~# modprobe ohci1394 > > FATAL: Error inserting ohci1394 (/lib/modules/ > 2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko): Invalid argument > > Here is my /proc/interrupts output in dom0 AFTER I have started Slackware64 > domU: > > > CPU0 CPU1 > 1: 2 0 xen-pirq-ioapic-edge i8042 > 4: 3 0 xen-pirq-ioapic-edge > 8: 1 0 xen-pirq-ioapic-edge rtc0 > 9: 0 0 xen-pirq-ioapic-level acpi > 12: 4 0 xen-pirq-ioapic-edge i8042 > 16: 0 0 xen-pirq-ioapic-level uhci_hcd:usb3 > 17: 1 0 xen-pirq-ioapic-level > 18: 59 0 xen-pirq-ioapic-level ehci_hcd:usb1, > uhci_hcd:usb5, uhci_hcd:usb8 > 19: 60581 0 xen-pirq-ioapic-level ata_piix, ata_piix, > uhci_hcd:usb7 > 21: 0 0 xen-pirq-ioapic-level uhci_hcd:usb4 > 22: 2500 0 xen-pirq-ioapic-level HDA Intel > 23: 35508 0 xen-pirq-ioapic-level ehci_hcd:usb2, > uhci_hcd:usb6 > 24: 121214 0 xen-dyn-virq timer0 > 25: 290373 0 xen-dyn-ipi resched0 > > 26: 0 0 xen-dyn-ipi callfunc0 > 27: 0 0 xen-dyn-virq debug0 > 28: 213 0 xen-dyn-ipi callfuncsingle0 > 29: 0 3091038 xen-dyn-virq timer1 > 30: 0 76203 xen-dyn-ipi resched1 > > 31: 0 0 xen-dyn-ipi callfunc1 > 32: 0 0 xen-dyn-virq debug1 > 33: 0 644 xen-dyn-ipi callfuncsingle1 > 34: 87 1002 xen-dyn-event xenbus > > 36: 0 0 xen-dyn-virq mce > 38: 8967 5621 xen-pirq-msi peth0 > 39: 61 563 xen-dyn-event evtchn:xenstored > > 40: 0 0 xen-dyn-event evtchn:xenstored > 42: 1 0 xen-dyn-event evtchn:xenstored > 43: 4098 462204 xen-dyn-event evtchn:qemu-dm > 44: 8156 115233 xen-dyn-event evtchn:qemu-dm > > NMI: 0 0 Non-maskable interrupts > LOC: 0 0 Local timer interrupts > SPU: 0 0 Spurious interrupts > CNT: 0 0 Performance counter interrupts > PND: 0 0 Performance pending work > RES: 290373 76203 Rescheduling interrupts > CAL: 213 644 Function call interrupts > > TLB: 0 0 TLB shootdowns > TRM: 0 0 Thermal event interrupts > THR: 0 0 Threshold APIC interrupts > MCE: 0 0 Machine check exceptions > MCP: 6 6 Machine check polls > ERR: 0 > MIS: 0 > > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com > My Secondary Blog: http://enmingteo.wordpress.com > My Youtube videos: http://www.youtube.com/user/enmingteo > Email: space.time.universe@gmail.com > Mobile Phone (Starhub Prepaid): +65-8369-2618 > Street: Bedok Reservoir Road > Country: Singapore > > 2009/11/3 Han, Weidong <weidong.han@intel.com> > > Hi En Ming, >> >> I found the line "register_real_device: Error: Binding of interrupt >> failed! rc=-1". So I guess the Fire-wire device doesn''t support MSI, and >> shares IRQ with other devices. This is the issue I and Jeremy are >> discussing. You can search mail subject "pv-ops: fix shared irq device >> passthrough" in mailing list for more details. Pls apply the attached patch >> to pv-ops dom0 see if it fixes your problem. >> >> >> Regards, >> Weidong >> >> ------------------------------ >> *From:* Mr. Teo En Ming (Zhang Enming) [mailto: >> space.time.universe@gmail.com] >> *Sent:* 2009年11月1日 22:08 >> *To:* Konrad Rzeszutek Wilk >> *Cc:* Jeremy Fitzhardinge; xen-devel@lists.xensource.com; Han, Weidong; >> space.time.universe@gmail.com; xen-users@lists.xensource.com >> *Subject:* Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops >> (2.6.31.1) >> >> Hi All, >> >> I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please >> refer to >> http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/for more details and screenshots. >> >> I have tried to passthrough the firewire controller on Intel DQ45CB >> motherboard to Slackware64 13.0 HVM domU but I can''t load the kernel modules >> for it. >> >> Please have a look at the following output within Slackware64 13.0 HVM >> domU. >> >> 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 >> [OHCI]) >> Subsystem: Intel Corporation Device 1003 >> Flags: bus master, medium devsel, latency 128, IRQ 36 >> Memory at e3001000 (32-bit, non-prefetchable) [size=4K] >> Memory at e3002000 (32-bit, non-prefetchable) [size=4K] >> Capabilities: [44] Power Management version 2 >> Kernel driver in use: ohci1394 >> Kernel modules: ohci1394 >> >> root@slackware64-13:~# lsmod | egrep "(ohci|1394)" >> root@slackware64-13:~# cd /lib/modules/2.6.29.6/kernel/drivers/ieee1394/ >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# ls >> dv1394.ko eth1394.ko ieee1394.ko ohci1394.ko pcilynx.ko raw1394.ko >> sbp2.ko video1394.ko >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modinfo ohci1394.ko >> filename: ohci1394.ko >> license: GPL >> description: Driver for PCI OHCI IEEE-1394 controllers >> author: Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au> >> alias: pci:v*d*sv*sd*bc0Csc00i10* >> depends: ieee1394 >> vermagic: 2.6.29.6 SMP mod_unload >> parm: phys_dma:Enable physical DMA (default = 1). (int) >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modinfo ieee1394.ko >> filename: ieee1394.ko >> license: GPL >> depends: >> vermagic: 2.6.29.6 SMP mod_unload >> parm: ignore_drivers:Disable automatic probing for drivers. >> (int) >> parm: fcp:Map FCP registers (default = 1, disable = 0). (int) >> parm: disable_nodemgr:Disable nodemgr functionality. (int) >> parm: disable_irm:Disable Isochronous Resource Manager >> functionality. (bool) >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modprobe ieee1394 >> FATAL: Error inserting ieee1394 (/lib/modules/ >> 2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko): Invalid argument >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modprobe ohci1394 >> FATAL: Error inserting ohci1394 (/lib/modules/ >> 2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko): Invalid argument >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg >> | grep -i firewire >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg >> | grep -i ieee >> ieee1394: module is already loaded >> ieee1394: module is already loaded >> ieee1394: module is already loaded >> ieee1394: module is already loaded >> ieee1394: module is already loaded >> ieee1394: module is already loaded >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# lsmod >> | grep ieee1394 >> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg >> | grep 1394 >> ohci1394 0000:00:05.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36 >> ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[36] >> MMIO=[e3001000-e30017ff] Max Packet=[2048] IR/IT contexts=[8/8] >> ieee1394: module is already loaded >> ohci1394: module is already loaded >> ieee1394: module is already loaded >> ohci1394: module is already loaded >> ieee1394: module is already loaded >> ieee1394: module is already loaded >> ieee1394: module is already loaded >> ieee1394: module is already loaded >> ohci1394: module is already loaded >> >> Debug messages in Dom0: >> >> domid: 3 >> qemu: the number of cpus is 2 >> config qemu network with xen bridge for tap3.0 eth0 >> Watching /local/domain/0/device-model/3/logdirty/next-active >> Watching /local/domain/0/device-model/3/command >> qemu_map_cache_init nr_buckets = 10000 size 4194304 >> shared page at pfn feffd >> buffered io page at pfn feffb >> Guest uuid = 9a35fdea-fa74-6fec-e0f2-a852836d9a22 >> Time offset set 0 >> cirrus_vga_enabled >> populating video RAM at ff000000 >> mapping video RAM from ff000000 >> Register xen platform. >> Done register platform. >> xs_read(/vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/log-throttling): read >> error >> platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw >> state. >> xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read >> error >> xs_read(): vncpasswd get error. >> /vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/vncpasswd. >> medium change watch on `hdc'' (index: 1): >> /media/hitachi/slackware64-13.0-install-dvd.iso >> I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 >> I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 >> dm-command: hot insert pass-through pci dev >> register_real_device: Assigning real physical device 02:01.0 ... >> pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No >> such file or directory: 0x2:0x1.0x0 >> pt_register_regions: IO region registered (size=0x00001000 >> base_addr=0xd3801000) >> pt_register_regions: IO region registered (size=0x00000100 >> base_addr=0xd3800000) >> register_real_device: Error: Binding of interrupt failed! rc=-1 >> register_real_device: Real physical device 02:01.0 registered successfuly! >> IRQ type = INTx >> cirrus vga map change while on lfb mode >> pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 >> first_map=1 >> pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 >> first_map=1 >> mapping vram to e0000000 - e0400000 >> platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw >> state. >> platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro >> state. >> *pt_pci_write_config: Warning: Guest attempt to set address to unused >> Base Address Register. [00:05.0][Offset:30h][Length:4]* >> >> The line immediately above looks very suspicious. >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com >> My Secondary Blog: http://enmingteo.wordpress.com >> My Youtube videos: http://www.youtube.com/user/enmingteo >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone (SingTel): +65-9648-9798 >> Mobile Phone (Starhub Prepaid): +65-8369-2618 >> Age: 31 (as at 30 Oct 2009) >> Height: 1.78 meters >> Race: Chinese >> Dialect: Hokkien >> Street: Bedok Reservoir Road >> Country: Singapore >> >> On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) < >> space.time.universe@gmail.com> wrote: >> >>> From the screenshots of the device manager in the Win XP Home domU, >>> the OHCI IEEE 1394 firewire controller appears to be working properly. >>> The Windows drivers for the firewire controller reports that the >>> firewire controller is working fine. >>> >>> However, when you connect a firewire-based digital video camera to the >>> firewire port, it is not detected in the Windows virtual machine. >>> >>> I will probably have to find time to install a Linux HVM domU and try >>> to pass through the 1394 controller to it. >>> >>> -- >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >>> Engineering) >>> Alma Maters: >>> (1) Singapore Polytechnic >>> (2) National University of Singapore >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >>> Email: space.time.universe@gmail.com >>> MSN: teoenming@hotmail.com >>> Mobile Phone: +65-9648-9798 >>> Street: Bedok Reservoir Road >>> Republic of Singapore >>> >>> >>> On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk >>> <konrad.wilk@oracle.com> wrote: >>> > On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang >>> Enming) wrote: >>> >> Hi, >>> >> >>> >> Could you help me look at here >>> >> >>> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html >>> >> and also here >>> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html >>> > >>> > Its looks to be working from the Dom0 side just fine. I am curious as >>> what is happening >>> > on the Windows driver side. I don''t know enough about where Windows >>> drivers put >>> > debug information so I can''t suggest where to look there. One >>> suggestion is that >>> > you install Fedora Core 11 as a HVM guest and passthrough your firewire >>> controller to it. >>> > And then include the logs from the Fedora domU - that should give more >>> insight on why >>> > it is not working properly. >>> > >>> >> >> >> >> >> > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Han, Weidong
2009-Nov-04 02:44 UTC
[Xen-users] RE: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
I didn't pass-through Fire-wire, and I'm not familar with it. You only pass-through 02:01.0, why did it access 00:05.0? Regards, Weidong ________________________________ From: Mr. Teo En Ming (Zhang Enming) [mailto:space.time.universe@gmail.com] Sent: 2009年11月3日 21:06 To: Han, Weidong Cc: Konrad Rzeszutek Wilk; Jeremy Fitzhardinge; xen-devel@lists.xensource.com; xen-users@lists.xensource.com; space.time.universe@gmail.com Subject: Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1) After applying the patch to pv-ops dom0 kernel 2.6.31.5, the error "register_real_device: Error: Binding of interrupt failed! rc=-1" disappears but the following message still persists. pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:05.0][Offset:30h][Length:4] Do we need to do something about the BARs just like in VGA pass-through? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com<mailto:space.time.universe@gmail.com> Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore 2009/11/3 Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com<mailto:space.time.universe@gmail.com>> Hi Weidong, I have applied the patch to pv-ops dom0 kernel 2.6.31.5. Please refer to the following link: http://enmingteo.files.wordpress.com/2009/11/screenshot-01.png It does however cause my console terminal in dom0 to be very sluggish/unresponsive after I have started Slackware64 13.0 HVM. Here is my qemu-dm-slackware64.log output: domid: 1 qemu: the number of cpus is 2 config qemu network with xen bridge for tap1.0 eth0 Watching /local/domain/0/device-model/1/logdirty/next-active Watching /local/domain/0/device-model/1/command qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 4d2942cf-1ba2-0ff1-4252-184d1ab31369 Time offset set 0 cirrus_vga_enabled populating video RAM at ff000000 mapping video RAM from ff000000 Register xen platform. Done register platform. xs_read(/vm/4d2942cf-1ba2-0ff1-4252-184d1ab31369/log-throttling): read error platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/4d2942cf-1ba2-0ff1-4252-184d1ab31369/vncpasswd. medium change watch on `hdc' (index: 1): /media/hitachi/slackware64-13.0-install-dvd.iso I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 02:01.0 ... pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x2:0x1.0x0 pt_register_regions: IO region registered (size=0x00001000 base_addr=0xd3801000) pt_register_regions: IO region registered (size=0x00000100 base_addr=0xd3800000) register_real_device: Real physical device 02:01.0 registered successfuly! IRQ type = INTx cirrus vga map change while on lfb mode pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 first_map=1 pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 first_map=1 mapping vram to e0000000 - e0400000 platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state. pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:05.0][Offset:30h][Length:4] Here is my domU lspci -vvv output: 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 [OHCI]) Subsystem: Intel Corporation Device 1003 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 128 (3000ns min, 6000ns max) Interrupt: pin A routed to IRQ 36 Region 0: Memory at e3001000 (32-bit, non-prefetchable) [size=4K] Region 1: Memory at e3002000 (32-bit, non-prefetchable) [size=4K] Capabilities: [44] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: ohci1394 Kernel modules: ohci1394 Here is my domU /proc/interrupts output: CPU0 CPU1 0: 132 0 IO-APIC-edge timer 1: 176 181 IO-APIC-edge i8042 4: 0 1 IO-APIC-edge 6: 1 2 IO-APIC-edge floppy 7: 0 0 IO-APIC-edge parport0 8: 1 0 IO-APIC-edge rtc0 9: 0 0 IO-APIC-fasteoi acpi 12: 518 632 IO-APIC-edge i8042 14: 2600 2591 IO-APIC-edge ide0 15: 2023 2073 IO-APIC-edge ide1 32: 174 167 IO-APIC-fasteoi eth0 36: 842 815 IO-APIC-fasteoi ohci1394 NMI: 0 0 Non-maskable interrupts LOC: 1362927 1362831 Local timer interrupts RES: 2164 2467 Rescheduling interrupts CAL: 10 38 Function call interrupts TLB: 323 324 TLB shootdowns TRM: 0 0 Thermal event interrupts THR: 0 0 Threshold APIC interrupts SPU: 0 0 Spurious interrupts ERR: 0 MIS: 0 I still cannot load the kernel modules for the firewire controller in domU. root@slackware64-13:~# modprobe ieee1394 FATAL: Error inserting ieee1394 (/lib/modules/2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko<http://2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko>): Invalid argument root@slackware64-13:~# modprobe ohci1394 FATAL: Error inserting ohci1394 (/lib/modules/2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko<http://2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko>): Invalid argument Here is my /proc/interrupts output in dom0 AFTER I have started Slackware64 domU: CPU0 CPU1 1: 2 0 xen-pirq-ioapic-edge i8042 4: 3 0 xen-pirq-ioapic-edge 8: 1 0 xen-pirq-ioapic-edge rtc0 9: 0 0 xen-pirq-ioapic-level acpi 12: 4 0 xen-pirq-ioapic-edge i8042 16: 0 0 xen-pirq-ioapic-level uhci_hcd:usb3 17: 1 0 xen-pirq-ioapic-level 18: 59 0 xen-pirq-ioapic-level ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8 19: 60581 0 xen-pirq-ioapic-level ata_piix, ata_piix, uhci_hcd:usb7 21: 0 0 xen-pirq-ioapic-level uhci_hcd:usb4 22: 2500 0 xen-pirq-ioapic-level HDA Intel 23: 35508 0 xen-pirq-ioapic-level ehci_hcd:usb2, uhci_hcd:usb6 24: 121214 0 xen-dyn-virq timer0 25: 290373 0 xen-dyn-ipi resched0 26: 0 0 xen-dyn-ipi callfunc0 27: 0 0 xen-dyn-virq debug0 28: 213 0 xen-dyn-ipi callfuncsingle0 29: 0 3091038 xen-dyn-virq timer1 30: 0 76203 xen-dyn-ipi resched1 31: 0 0 xen-dyn-ipi callfunc1 32: 0 0 xen-dyn-virq debug1 33: 0 644 xen-dyn-ipi callfuncsingle1 34: 87 1002 xen-dyn-event xenbus 36: 0 0 xen-dyn-virq mce 38: 8967 5621 xen-pirq-msi peth0 39: 61 563 xen-dyn-event evtchn:xenstored 40: 0 0 xen-dyn-event evtchn:xenstored 42: 1 0 xen-dyn-event evtchn:xenstored 43: 4098 462204 xen-dyn-event evtchn:qemu-dm 44: 8156 115233 xen-dyn-event evtchn:qemu-dm NMI: 0 0 Non-maskable interrupts LOC: 0 0 Local timer interrupts SPU: 0 0 Spurious interrupts CNT: 0 0 Performance counter interrupts PND: 0 0 Performance pending work RES: 290373 76203 Rescheduling interrupts CAL: 213 644 Function call interrupts TLB: 0 0 TLB shootdowns TRM: 0 0 Thermal event interrupts THR: 0 0 Threshold APIC interrupts MCE: 0 0 Machine check exceptions MCP: 6 6 Machine check polls ERR: 0 MIS: 0 -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com<mailto:space.time.universe@gmail.com> Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore 2009/11/3 Han, Weidong <weidong.han@intel.com<mailto:weidong.han@intel.com>> Hi En Ming, I found the line "register_real_device: Error: Binding of interrupt failed! rc=-1". So I guess the Fire-wire device doesn't support MSI, and shares IRQ with other devices. This is the issue I and Jeremy are discussing. You can search mail subject "pv-ops: fix shared irq device passthrough" in mailing list for more details. Pls apply the attached patch to pv-ops dom0 see if it fixes your problem. Regards, Weidong ________________________________ From: Mr. Teo En Ming (Zhang Enming) [mailto:space.time.universe@gmail.com<mailto:space.time.universe@gmail.com>] Sent: 2009年11月1日 22:08 To: Konrad Rzeszutek Wilk Cc: Jeremy Fitzhardinge; xen-devel@lists.xensource.com<mailto:xen-devel@lists.xensource.com>; Han, Weidong; space.time.universe@gmail.com<mailto:space.time.universe@gmail.com>; xen-users@lists.xensource.com<mailto:xen-users@lists.xensource.com> Subject: Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1) Hi All, I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please refer to http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/ for more details and screenshots. I have tried to passthrough the firewire controller on Intel DQ45CB motherboard to Slackware64 13.0 HVM domU but I can't load the kernel modules for it. Please have a look at the following output within Slackware64 13.0 HVM domU. 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 [OHCI]) Subsystem: Intel Corporation Device 1003 Flags: bus master, medium devsel, latency 128, IRQ 36 Memory at e3001000 (32-bit, non-prefetchable) [size=4K] Memory at e3002000 (32-bit, non-prefetchable) [size=4K] Capabilities: [44] Power Management version 2 Kernel driver in use: ohci1394 Kernel modules: ohci1394 root@slackware64-13:~# lsmod | egrep "(ohci|1394)" root@slackware64-13:~# cd /lib/modules/2.6.29.6/kernel/drivers/ieee1394/<http://2.6.29.6/kernel/drivers/ieee1394/> root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> ls dv1394.ko eth1394.ko ieee1394.ko ohci1394.ko pcilynx.ko raw1394.ko sbp2.ko video1394.ko root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> modinfo ohci1394.ko filename: ohci1394.ko license: GPL description: Driver for PCI OHCI IEEE-1394 controllers author: Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au<mailto:sebastien.rougeaux@anu.edu.au>> alias: pci:v*d*sv*sd*bc0Csc00i10* depends: ieee1394 vermagic: 2.6.29.6 SMP mod_unload parm: phys_dma:Enable physical DMA (default = 1). (int) root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> modinfo ieee1394.ko filename: ieee1394.ko license: GPL depends: vermagic: 2.6.29.6 SMP mod_unload parm: ignore_drivers:Disable automatic probing for drivers. (int) parm: fcp:Map FCP registers (default = 1, disable = 0). (int) parm: disable_nodemgr:Disable nodemgr functionality. (int) parm: disable_irm:Disable Isochronous Resource Manager functionality. (bool) root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> modprobe ieee1394 FATAL: Error inserting ieee1394 (/lib/modules/2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko<http://2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko>): Invalid argument root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> modprobe ohci1394 FATAL: Error inserting ohci1394 (/lib/modules/2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko<http://2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko>): Invalid argument root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> dmesg | grep -i firewire root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> dmesg | grep -i ieee ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> lsmod | grep ieee1394 root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#<http://2.6.29.6/kernel/drivers/ieee1394#> dmesg | grep 1394 ohci1394 0000:00:05.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36 ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[36] MMIO=[e3001000-e30017ff] Max Packet=[2048] IR/IT contexts=[8/8] ieee1394: module is already loaded ohci1394: module is already loaded ieee1394: module is already loaded ohci1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ieee1394: module is already loaded ohci1394: module is already loaded Debug messages in Dom0: domid: 3 qemu: the number of cpus is 2 config qemu network with xen bridge for tap3.0 eth0 Watching /local/domain/0/device-model/3/logdirty/next-active Watching /local/domain/0/device-model/3/command qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 9a35fdea-fa74-6fec-e0f2-a852836d9a22 Time offset set 0 cirrus_vga_enabled populating video RAM at ff000000 mapping video RAM from ff000000 Register xen platform. Done register platform. xs_read(/vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/log-throttling): read error platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/vncpasswd. medium change watch on `hdc' (index: 1): /media/hitachi/slackware64-13.0-install-dvd.iso I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 02:01.0 ... pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x2:0x1.0x0 pt_register_regions: IO region registered (size=0x00001000 base_addr=0xd3801000) pt_register_regions: IO region registered (size=0x00000100 base_addr=0xd3800000) register_real_device: Error: Binding of interrupt failed! rc=-1 register_real_device: Real physical device 02:01.0 registered successfuly! IRQ type = INTx cirrus vga map change while on lfb mode pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 first_map=1 pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 first_map=1 mapping vram to e0000000 - e0400000 platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state. pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:05.0][Offset:30h][Length:4] The line immediately above looks very suspicious. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com<mailto:space.time.universe@gmail.com> MSN: teoenming@hotmail.com<mailto:teoenming@hotmail.com> Mobile Phone (SingTel): +65-9648-9798 Mobile Phone (Starhub Prepaid): +65-8369-2618 Age: 31 (as at 30 Oct 2009) Height: 1.78 meters Race: Chinese Dialect: Hokkien Street: Bedok Reservoir Road Country: Singapore On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com<mailto:space.time.universe@gmail.com>> wrote: From the screenshots of the device manager in the Win XP Home domU, the OHCI IEEE 1394 firewire controller appears to be working properly. The Windows drivers for the firewire controller reports that the firewire controller is working fine. However, when you connect a firewire-based digital video camera to the firewire port, it is not detected in the Windows virtual machine. I will probably have to find time to install a Linux HVM domU and try to pass through the 1394 controller to it. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com<mailto:space.time.universe@gmail.com> MSN: teoenming@hotmail.com<mailto:teoenming@hotmail.com> Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com<mailto:konrad.wilk@oracle.com>> wrote:> On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming) wrote: >> Hi, >> >> Could you help me look at here >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html >> and also here http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html > > Its looks to be working from the Dom0 side just fine. I am curious as what is happening > on the Windows driver side. I don't know enough about where Windows drivers put > debug information so I can't suggest where to look there. One suggestion is that > you install Fedora Core 11 as a HVM guest and passthrough your firewire controller to it. > And then include the logs from the Fedora domU - that should give more insight on why > it is not working properly. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mr. Teo En Ming (Zhang Enming)
2009-Nov-10 22:46 UTC
Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)
Hi Konrad, I have filed a bug report for the firewire controller passthrough issue at http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1539 and also CCed to you and Weidong.>Uuhh.. What did ''info blocks'' (or maybe it is ''info block'') tell you? >Did >you look up any guides on how to do this? How do you know the >guest >did not detect the CD change? Did you try to do a read on it? >Like ''sg_readcap /dev/sr0'' or ''dd if=/dev/sr0 of=/tmp/temp.iso'' >within theguest? For the case of "phy:/dev/sr0,hdc:cdrom,r" in domU config, i.e. using the physical host CD-ROM/DVD drive, if I want to change physical CD/DVD, I have no problems doing it with "eject" and "change hdc" commands. I can successfully change media. The problem exists with ISO image files, in the case of "file:/path/to/dvd-image.iso,hdc:cdrom.r" in domU config. If you want to change ISO files, it cannot be done at all. After executing eject and change hdc commands, QEMU console will still report "not inserted". I have done it many times. If you try to mount the cd/dvd in domU, it will fail because the change of ISO file is not successful. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore On Tue, Nov 3, 2009 at 12:05 AM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> wrote:> > >Can you provide the lspci -vv output of the Dom0 and >DomU, please? > > .. snip .. > > > Region 0: Memory at d3801000 (32-bit, non-prefetchable) [size=4K] > > Region 1: Memory at d3800000 (32-bit, non-prefetchable) [size=256] > > .. snip .. > > Region 0: Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > > Region 1: Memory at e3002000 (32-bit, non-prefetchable) [size=4K] > > That is weird. The second region is at the wrong location (unless > QEMU actually does some copying after each MMIO operation..). > > I think what you saw before in the QEMU is a good hint. It could > be that the QEMU code assumes the BARs addresses have to be > in an increased order, whilst in this case it is the reverse. > > > Capabilities: [44] Power Management version 2 > > Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA > > PME(D0-,D1-,D2-,D3hot-,D3cold-) > > Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- > > Kernel driver in use: ohci1394 > > Kernel modules: ohci1394 > > > > > > > - cat /proc/interrupts (from Dom0) _before_ you launch >any guests or > > > call bind any devices to the pcistub/pciback. > > > 22: 387742 0 xen-pirq-ioapic-level HDA Intel, > firewire_ohci > > All right. You probably need to unload your sound card first in the DomO > and pass it to the guest as well. But I vaguely remember you saying that > you do that already - so I think this is OK. > > .. snip .. > > > 36: 0 0 IO-APIC-fasteoi ohci1394 > > That looks weird at first, but fasteoi == level, so that is OK. > > I think the issue you pointed out earlier, where the error about > the BARs was printed, is the culprit. I am not going to get to this > until I am done with the pciback/pcifront work. But it could be > that somebody else will pick this bug up in the interim. > > Can you open a bug on this (http://bugzilla.xensource.com/) and CC me on > it? > Please include the qemu logs, the dmesg log, /proc/interrupts, lspci -vvv, > and anything else you can think off. That way I won''t forget about it. > > > .. snip .. > > I am running pv-ops dom0 kernel 2.6.31.5 now. There appears to be some > > sluggishness/unresponsiveness with this kernel after I have started a HVM > > guest. > > > > By the way, can you also help me to solve this problem as well? > > > > http://lists.xensource.com/archives/html/xen-devel/2009-11/msg00044.html > > Uuhh.. What did ''info blocks'' (or maybe it is ''info block'') tell you? Did > you look up any guides on how to do this? How do you know the guest > did not detect the CD change? Did you try to do a read on it? > Like ''sg_readcap /dev/sr0'' or ''dd if=/dev/sr0 of=/tmp/temp.iso'' within the > guest? >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel