Skip to contentSkip to conversation

Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine

DISCUSSION Applied Mr. Teo En Ming (Zhang Enming) 6 participants 62 messages Sep 10, 2009 – Nov 10, 2009 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

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

#1 lore raw
Quoted 18 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 9 lines

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

Quoted 29 lines

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.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
#2 lore raw
Quoted 24 lines · Pasi Kärkkäinen
Quoted 22 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 9 lines
Quoted 6 lines

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.

Quoted 2 lines

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

#3 lore raw

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.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 47 lines · Jeremy Fitzhardinge
Quoted 1 line · Pasi Kärkkäinen

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang Enming)

Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please check

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the

Youtube

Quoted 6 lines
Quoted 6 lines

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>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 4 lines
Quoted 4 lines

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

Quoted 4 lines
Quoted 4 lines

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

Quoted 11 lines
Quoted 8 lines

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.

Quoted 2 lines

Any tips how it could be debugged?

Quoted 7 lines

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

#4 lore raw

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.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 19 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 63 lines
Quoted 56 lines · Jeremy Fitzhardinge
Quoted 1 line · Pasi Kärkkäinen

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang Enming)

Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please check

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the

Youtube

Quoted 6 lines
Quoted 6 lines

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>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 4 lines
Quoted 4 lines

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

Quoted 4 lines
Quoted 4 lines

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

Quoted 4 lines
Quoted 4 lines

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

Quoted 7 lines
Quoted 4 lines

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.

Quoted 2 lines

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

#5 lore raw
Quoted 9 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 98 lines
Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 82 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 56 lines · Jeremy Fitzhardinge
Quoted 1 line · Pasi Kärkkäinen

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang Enming)

Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please check

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the

Youtube

Quoted 6 lines
Quoted 6 lines

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>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 4 lines
Quoted 4 lines

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

Quoted 4 lines
Quoted 4 lines

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

Quoted 4 lines
Quoted 4 lines

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

Quoted 7 lines
Quoted 4 lines

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.

Quoted 2 lines

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

#6 lore raw

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

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 97 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines

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

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 7 lines
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 15 lines
Quoted 15 lines

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 1 line

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <[email protected]

Quoted 3 lines · wrote:
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please

check

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce 8400 GS

PCI

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 3 lines
Quoted 3 lines

was fixed. Device manager in Windows XP HVM domU no longer shows an exclamation mark besides the nVidia Geforce 8400 GS graphics card.

The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating system using

Xen

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D video

benchmarks

Quoted 3 lines
Quoted 3 lines

on the passed through nVidia GeForce 8400 GS graphics card.

All this is possible using Xen 3.5 hypervisor with Intel supplied

VGA

Quoted 30 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6

which

Quoted 5 lines
Quoted 4 lines

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

Quoted 21 lines
Quoted 21 lines
Quoted 16 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is causing problems.

Quoted 2 lines

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

#7 lore raw

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

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 24 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 136 lines
Quoted 129 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines

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

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 7 lines
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 15 lines
Quoted 15 lines

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 1 line

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <[email protected]

Quoted 3 lines · wrote:
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please

check

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce 8400 GS

PCI

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines
Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no longer shows

an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS graphics card.

The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating system

using Xen

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D video

benchmarks

Quoted 3 lines
Quoted 3 lines

on the passed through nVidia GeForce 8400 GS graphics card.

All this is possible using Xen 3.5 hypervisor with Intel supplied

VGA

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel 2.6.31-rc6

which

Quoted 5 lines
Quoted 4 lines

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

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is causing problems.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

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

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

#8 lore raw

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.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 22 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 172 lines
Quoted 165 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 134 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines

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

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 7 lines
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 12 lines
Quoted 12 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please

check

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or the

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce 8400

GS PCI

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines
Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no longer shows

an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS graphics

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating system

using Xen

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D video

benchmarks

Quoted 3 lines
Quoted 3 lines

on the passed through nVidia GeForce 8400 GS graphics card.

All this is possible using Xen 3.5 hypervisor with Intel supplied

VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line
Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops dom0

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3 that could

cause

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is causing problems.

Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming from. How

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing lots of IO

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in dom0?

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

#9 lore raw

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.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 21 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 201 lines
Quoted 195 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 166 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 135 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines

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

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 7 lines
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 12 lines
Quoted 12 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce 8400

GS PCI

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines
Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no longer shows

an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS graphics

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating system

using Xen

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D video

benchmarks

Quoted 3 lines
Quoted 3 lines

on the passed through nVidia GeForce 8400 GS graphics card.

All this is possible using Xen 3.5 hypervisor with Intel

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line
Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops dom0

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3 that could

cause

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is causing problems.

Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming from. How

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing lots of IO

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in dom0?

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

#10 lore raw

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.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 18 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 232 lines
Quoted 225 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 198 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 169 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 138 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines

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

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 7 lines
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 12 lines
Quoted 12 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce 8400

GS PCI

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines
Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no longer

shows an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS graphics

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating system

using Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D

video

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

benchmarks

Quoted 3 lines
Quoted 3 lines

on the passed through nVidia GeForce 8400 GS graphics card.

All this is possible using Xen 3.5 hypervisor with Intel

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line
Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops dom0

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3 that could

cause

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is causing problems.

Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming from. How

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing lots of IO

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in dom0?

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

#11 lore raw
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 266 lines
Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 250 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 225 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 198 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 169 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 138 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines

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

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 7 lines
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 12 lines
Quoted 12 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough. Please

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/ or

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce 8400

GS PCI

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines
Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no longer

shows an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS graphics

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating system

using Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D

video

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

benchmarks

Quoted 3 lines
Quoted 3 lines

on the passed through nVidia GeForce 8400 GS graphics card.

All this is possible using Xen 3.5 hypervisor with Intel

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line
Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops dom0

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3 that could

cause

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is causing problems.

Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming from. How

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing lots of IO

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in dom0?

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

#12 lore raw

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.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 265 lines · Pasi Kärkkäinen
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled all USB support in the kernel but I still couldn't get

pvops

Quoted 3 lines

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

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I

still

Quoted 17 lines
Quoted 17 lines

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled USB 1.0 and USB 2.0 drivers simultaneously and enabled

USB

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

3.0 driver but the kernel stops loading.

Then I totally disabled all USB support by passing the "nousb"

parameter

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

Hi,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
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 <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 4 lines

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

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines · Mr. Teo En Ming (Zhang Enming)

Hi,

I will try to stop unnecessary services on Dom 0 and do a disk

I/O

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6

tonight

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

(Singapore

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming

(Zhang

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough.

Please

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/or

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce

8400

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

GS PCI

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines
Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no longer

shows an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS

graphics

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating

system

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

using Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D

video

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

benchmarks

Quoted 3 lines
Quoted 3 lines

on the passed through nVidia GeForce 8400 GS graphics card.

All this is possible using Xen 3.5 hypervisor with Intel

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line
Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops dom0

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3 that

could

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

cause

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is

causing

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

problems.

Quoted 38 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming from.

How

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing lots

of IO

Quoted 29 lines
Quoted 29 lines
Quoted 25 lines
Quoted 22 lines
Quoted 18 lines
Quoted 13 lines

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in dom0?

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

#13 lore raw

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!

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 25 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 316 lines
Quoted 310 lines · Pasi Kärkkäinen
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled all USB support in the kernel but I still couldn't get

pvops

Quoted 3 lines

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

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I

still

Quoted 17 lines
Quoted 17 lines

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled USB 1.0 and USB 2.0 drivers simultaneously and

enabled USB

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

3.0 driver but the kernel stops loading.

Then I totally disabled all USB support by passing the "nousb"

parameter

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

Hi,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
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 <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Results show that Win XP HVM guest runs faster in 2.6.30-rc3

than

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

2.6.31-rc6.

Btw you might also want to test with the latest rebase/master

tree;

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines

it's
at Linux 2.6.31 final now.

-- Pasi

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming)

<

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines · [email protected]> wrote:

Hi,

I will try to stop unnecessary services on Dom 0 and do a disk

I/O

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6

tonight

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

(Singapore

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming

(Zhang

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough.

Please

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/or

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce

8400

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

GS PCI

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines
Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no longer

shows an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS

graphics

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating

system

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

using Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D

video

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

benchmarks

Quoted 1 line
Quoted 1 line

on the passed through nVidia GeForce 8400 GS graphics

card.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

All this is possible using Xen 3.5 hypervisor with Intel

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line
Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops

dom0

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3 that

could

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

cause

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is

causing

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

problems.

Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming from.

How

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing lots

of IO

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in

dom0?

Quoted 27 lines
Quoted 27 lines
Quoted 23 lines
Quoted 20 lines
Quoted 16 lines
Quoted 11 lines

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

#14 lore raw

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>

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 43 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 352 lines
Quoted 346 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 315 lines · Pasi Kärkkäinen
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled all USB support in the kernel but I still couldn't get

pvops

Quoted 3 lines

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

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I

still

Quoted 6 lines
Quoted 6 lines

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

Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled USB 1.0 and USB 2.0 drivers simultaneously and

enabled USB

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

3.0 driver but the kernel stops loading.

Then I totally disabled all USB support by passing the "nousb"

parameter

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

Hi,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
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 <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Results show that Win XP HVM guest runs faster in 2.6.30-rc3

than

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

2.6.31-rc6.

Btw you might also want to test with the latest rebase/master

tree;

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines

it's
at Linux 2.6.31 final now.

-- Pasi

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enming)

<

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines · [email protected]> wrote:

Hi,

I will try to stop unnecessary services on Dom 0 and do a

disk I/O

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6

tonight

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

(Singapore

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming

(Zhang

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:

Dear All,

Here is my latest video presentation on VGA passthrough.

Please

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my

Quoted 1 line

blog at

http://teo-en-ming-aka-zhang-enming.blogspot.com/ or

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube

Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia

Geforce 8400

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

GS PCI

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no

longer

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

shows an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS

graphics

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows

the

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating

system

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

using Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run

3-D

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

video

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

benchmarks

Quoted 1 line

on the passed through nVidia GeForce 8400 GS graphics

card.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

All this is possible using Xen 3.5 hypervisor with Intel

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops

dom0

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3 that

could

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

cause

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is

causing

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

problems.

Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming from.

How

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing lots

of IO

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in

dom0?

Quoted 27 lines
Quoted 27 lines
Quoted 23 lines
Quoted 20 lines
Quoted 16 lines
Quoted 11 lines

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

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

Dear Pasi,

Yes, I have tried the nomodeset kernel parameter without result.

Quoted 8 lines

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

Quoted 1 line

4096M of memory for dom0.

-- Pasi

Quoted 318 lines
Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 303 lines · Pasi Kärkkäinen
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled all USB support in the kernel but I still couldn't get

pvops

Quoted 3 lines

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

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but I

still

Quoted 17 lines
Quoted 17 lines

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled USB 1.0 and USB 2.0 drivers simultaneously and enabled

USB

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

3.0 driver but the kernel stops loading.

Then I totally disabled all USB support by passing the "nousb"

parameter

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

Hi,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
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 <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 4 lines

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

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines · Mr. Teo En Ming (Zhang Enming)

Hi,

I will try to stop unnecessary services on Dom 0 and do a disk

I/O

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6

tonight

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

(Singapore

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Ming

(Zhang

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Dear All,

Here is my latest video presentation on VGA passthrough.

Please

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my

Quoted 1 line
Quoted 1 line

blog at http://teo-en-ming-aka-zhang-enming.blogspot.com/or

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube

Quoted 3 lines
Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia Geforce

8400

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

GS PCI

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Express x16 graphics card in earlier presentation videos:

http://www.youtube.com/watch?v=HNEiSI...<

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines
Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines
Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no longer

shows an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS

graphics

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows the

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines
Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating

system

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

using Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run 3-D

video

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

benchmarks

Quoted 3 lines
Quoted 3 lines

on the passed through nVidia GeForce 8400 GS graphics card.

All this is possible using Xen 3.5 hypervisor with Intel

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line
Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops dom0

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3 that

could

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

cause

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

this HVM slowness?

I can't think of anything, unless the new swiotlb code is

causing

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

problems.

Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming from.

How

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing lots

of IO

Quoted 29 lines
Quoted 29 lines
Quoted 25 lines
Quoted 22 lines
Quoted 18 lines
Quoted 13 lines

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in dom0?

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

#16 lore raw

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?

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 342 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 1 line

work despite disabling all of USB support in the kernel. I will

troubleshoot

Quoted 6 lines

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

Quoted 1 line

4096M of memory for dom0.

-- Pasi

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 3 lines
Quoted 1 line · Pasi Kärkkäinen

On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:

I have disabled all USB support in the kernel but I still couldn't

get

Quoted 8 lines
Quoted 8 lines

pvops

Quoted 3 lines

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

Quoted 6 lines
Quoted 6 lines

messages?

-- Pasi

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but

I

Quoted 7 lines
Quoted 7 lines

still

Quoted 6 lines
Quoted 6 lines

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

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled USB 1.0 and USB 2.0 drivers simultaneously and

enabled

Quoted 11 lines
Quoted 11 lines

USB

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

3.0 driver but the kernel stops loading.

Then I totally disabled all USB support by passing the "nousb"

parameter

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

After disabling the USB 1.0 driver, but leaving the USB 2.0

driver

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

compiled statically into the kernel, I get an error with the USB

2.0

Quoted 2 lines
Quoted 2 lines

driver.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

This means I cannot use either of the USB 1.0 and USB 2.0

drivers.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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

Quoted 15 lines
Quoted 15 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming)

<

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines · [email protected]> wrote:

Hi,

I have tried pvops dom 0 kernel 2.6.31 final from Jeremy's tree.

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 15 lines
Quoted 15 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <[email protected]

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming

(Zhang

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines · Enming)

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Results show that Win XP HVM guest runs faster in 2.6.30-rc3

than

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

2.6.31-rc6.

Btw you might also want to test with the latest rebase/master

tree;

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines

it's
at Linux 2.6.31 final now.

-- Pasi

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang

Enming) <

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines · [email protected]> wrote:

Hi,

I will try to stop unnecessary services on Dom 0 and do a

disk

Quoted 20 lines
Quoted 20 lines

I/O

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6

tonight

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

(Singapore

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen
Quoted 1 line

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En

Ming

Quoted 7 lines
Quoted 7 lines

(Zhang

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:

Dear All,

Here is my latest video presentation on VGA

passthrough.

Quoted 4 lines
Quoted 4 lines

Please

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my

Quoted 1 line

blog at

http://teo-en-ming-aka-zhang-enming.blogspot.com/or

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube

Quoted 3 lines

link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia

Geforce

Quoted 3 lines
Quoted 3 lines

8400

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

GS PCI

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Express x16 graphics card in earlier presentation

videos:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

http://www.youtube.com/watch?v=HNEiSI...<

http://www.youtube.com/watch?v=HNEiSInrav0>

Quoted 2 lines

http://www.youtube.com/watch?v=_hOT_9...<

http://www.youtube.com/watch?v=_hOT_9LIG5w>

Quoted 2 lines

was fixed. Device manager in Windows XP HVM domU no

longer

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

shows an

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS

graphics

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows

the

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory

Quoted 3 lines

ranges.

Full VGA passthrough to Windows XP HVM guest operating

system

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

using Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run

3-D

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

video

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

benchmarks

Quoted 1 line

on the passed through nVidia GeForce 8400 GS graphics

card.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

All this is possible using Xen 3.5 hypervisor with

Intel

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which

Quoted 1 line

causes Win XP domU to run slowly, I am now using pvops

dom0

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3

that

Quoted 5 lines
Quoted 5 lines

could

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

cause

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

this HVM slowness?

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

I can't think of anything, unless the new swiotlb code is

causing

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

problems.

Quoted 2 lines

Any tips how it could be debugged?

It would help to isolate where the slowness is coming

from.

Quoted 37 lines
Quoted 3 lines
Quoted 3 lines

How

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing

lots

Quoted 3 lines
Quoted 3 lines

of IO

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in

dom0?

Quoted 28 lines
Quoted 28 lines
Quoted 27 lines
Quoted 27 lines
Quoted 23 lines
Quoted 20 lines
Quoted 16 lines
Quoted 11 lines

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

#17 lore raw
Quoted 9 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 394 lines
Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 379 lines · Pasi Kärkkäinen
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 1 line

work despite disabling all of USB support in the kernel. I will

troubleshoot

Quoted 6 lines

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

Quoted 1 line

4096M of memory for dom0.

-- Pasi

Quoted 13 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 3 lines
Quoted 1 line · Pasi Kärkkäinen

On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:

I have disabled all USB support in the kernel but I still couldn't

get

Quoted 8 lines
Quoted 8 lines

pvops

Quoted 3 lines

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

Quoted 6 lines
Quoted 6 lines

messages?

-- Pasi

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but

I

Quoted 7 lines
Quoted 7 lines

still

Quoted 6 lines
Quoted 6 lines

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

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

I have disabled USB 1.0 and USB 2.0 drivers simultaneously and

enabled

Quoted 11 lines
Quoted 11 lines

USB

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

3.0 driver but the kernel stops loading.

Then I totally disabled all USB support by passing the "nousb"

parameter

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

After disabling the USB 1.0 driver, but leaving the USB 2.0

driver

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

compiled statically into the kernel, I get an error with the USB

2.0

Quoted 2 lines
Quoted 2 lines

driver.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

This means I cannot use either of the USB 1.0 and USB 2.0

drivers.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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

Quoted 15 lines
Quoted 15 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming)

<

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines · [email protected]> wrote:

Hi,

I have tried pvops dom 0 kernel 2.6.31 final from Jeremy's tree.

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 15 lines
Quoted 15 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Sat, Sep 12, 2009 at 12:03 AM, Pasi Kärkkäinen <[email protected]

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming

(Zhang

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines · Enming)

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Results show that Win XP HVM guest runs faster in 2.6.30-rc3

than

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

2.6.31-rc6.

Btw you might also want to test with the latest rebase/master

tree;

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines

it's
at Linux 2.6.31 final now.

-- Pasi

Quoted 2 lines

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang

Enming) <

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines · [email protected]> wrote:

Hi,

I will try to stop unnecessary services on Dom 0 and do a

disk

Quoted 20 lines
Quoted 20 lines

I/O

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6

tonight

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

(Singapore

Quoted 4 lines
Quoted 4 lines

time). That will be more conclusive.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)

BEng(Hons)(Mechanical

Quoted 11 lines
Quoted 11 lines

Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge <

Quoted 3 lines · [email protected]>wrote:
Quoted 3 lines
Quoted 3 lines · Pasi Kärkkäinen

On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En

Ming

Quoted 7 lines
Quoted 7 lines

(Zhang

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Enming)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wrote:

Dear All,

Here is my latest video presentation on VGA

passthrough.

Quoted 4 lines
Quoted 4 lines

Please

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

check

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

out my
blog at

http://teo-en-ming-aka-zhang-enming.blogspot.com/or

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

the

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Youtube
link at http://www.youtube.com/watch?v=1ia3IwG6tp4

The "not enough free resources" problem for nVidia

Geforce

Quoted 3 lines
Quoted 3 lines

8400

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

GS PCI

Quoted 1 line
Quoted 1 line
Quoted 1 line

Express x16 graphics card in earlier presentation

videos:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

shows an

Quoted 1 line
Quoted 1 line
Quoted 1 line

exclamation mark besides the nVidia Geforce 8400 GS

graphics

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

card. The

Quoted 1 line
Quoted 1 line
Quoted 1 line

device is working properly and the resources tab shows

the

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

available

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

memory
ranges.

Full VGA passthrough to Windows XP HVM guest operating

system

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

using Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line

virtualization has been realized. I am now able to run

3-D

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

video

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

benchmarks
on the passed through nVidia GeForce 8400 GS graphics

card.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

All this is possible using Xen 3.5 hypervisor with

Intel

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

supplied VGA

Quoted 1 line
Quoted 1 line
Quoted 1 line

passthrough patches. Instead of using pvops dom0 kernel

2.6.31-rc6

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

which
causes Win XP domU to run slowly, I am now using pvops

dom0

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

kernel

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

2.6.30-rc3.

Jeremy: Are you aware of any changes after 2.6.30-rc3

that

Quoted 5 lines
Quoted 5 lines

could

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

cause

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

this HVM slowness?

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

I can't think of anything, unless the new swiotlb code is

causing

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

problems.

Any tips how it could be debugged?

It would help to isolate where the slowness is coming

from.

Quoted 3 lines
Quoted 3 lines

How

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

much

Quoted 1 line
Quoted 1 line
Quoted 1 line

slowdown are we talking about? Is the HVM domain doing

lots

Quoted 3 lines
Quoted 3 lines

of IO

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

at

Quoted 1 line
Quoted 1 line
Quoted 1 line

the time? Are there any processes using lots of time in

dom0?

Quoted 28 lines
Quoted 28 lines
Quoted 27 lines
Quoted 27 lines
Quoted 23 lines
Quoted 20 lines
Quoted 16 lines
Quoted 11 lines

What's

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

the interrupt rate like?

J

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

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

#19 lore raw

Testing.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

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

#21 lore raw

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.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

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

#22 lore raw

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?

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 10 lines · [email protected]> 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.

Quoted 18 lines

--
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

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

#23 lore raw

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?

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 20 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 35 lines
Quoted 28 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#25 lore raw

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.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Sun, Sep 20, 2009 at 10:02 PM, Sander Eikelenboom
Quoted 14 lines · <[email protected]>wrote:

To passthrough my usb card + devices i had to add the ID's to pci_permissive as well.

Quoted 7 lines · you

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.

Quoted 10 lines
Quoted 1 line

Any ideas?

--
Best regards,
Sander mailto:[email protected]

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

#26 lore raw

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

Quoted 6 lines

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.

Signature · 2 lines
Best regards,
 Sander                            mailto:[email protected]
#27 lore raw
In reply to Jeremy Fitzhardinge

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.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 17 lines · Jeremy Fitzhardinge
Quoted 9 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 1 line

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.

Quoted 7 lines

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

#28 lore raw

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.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 25 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 31 lines
Quoted 24 lines · Jeremy Fitzhardinge
Quoted 9 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 1 line

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

#29 lore raw
Quoted 2 lines · Mr. Teo En Ming (Zhang Enming)

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.

#30 lore raw

Dear Konrad,

Please refer to my replies under your questions below.

Thank you.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Thu, Oct 8, 2009 at 9:59 PM, Konrad Rzeszutek Wilk <
Quoted 9 lines · [email protected]> wrote:
Quoted 1 line · Mr. Teo En Ming (Zhang Enming)

Attached in this email are three JPEG screenshots showing disk I/O

benchmark

Quoted 1 line

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.

Quoted 3 lines

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.

Quoted 3 lines

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.

Quoted 3 lines

Are you using stub-domain or normal QEMU?

I don't think I am using stub-domain. I should be using normal QEMU.

Quoted 3 lines

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'

Quoted 3 lines

Are you using GPLV/Novell VMDK/etc accelerated drivers under Windows?

No. I don't think so.

Quoted 4 lines

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

#31 lore raw
Quoted 5 lines
Quoted 3 lines

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.

Quoted 8 lines
Quoted 5 lines

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?

Quoted 7 lines
Quoted 5 lines

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.

Quoted 7 lines
Quoted 5 lines

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

Quoted 5 lines
Quoted 3 lines

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)

#32 lore raw
Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 6 lines
Quoted 4 lines

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.

Quoted 3 lines
Quoted 3 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

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.

Quoted 9 lines
Quoted 7 lines
Quoted 5 lines

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.

Quoted 11 lines
Quoted 7 lines
Quoted 5 lines

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.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

#33 lore raw
Quoted 7 lines
Quoted 3 lines
Quoted 1 line

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?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

Are you using stub-domain or normal QEMU?

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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.

#34 lore raw
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 7 lines
Quoted 3 lines
Quoted 1 line

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.

Quoted 19 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

Are you using stub-domain or normal QEMU?

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
#35 lore raw

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?

Signature · 15 lines
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: [email protected]
MSN: [email protected]
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)
Quoted 52 lines · <[email protected]> wrote:
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 7 lines
Quoted 3 lines
Quoted 1 line

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.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 8 lines
Quoted 6 lines

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.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

.. 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

#36 lore raw
Quoted 11 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 5 lines

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

#37 lore raw

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?

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 23 lines · Pasi Kärkkäinen
Quoted 11 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 5 lines

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

#38 lore raw
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

#39 lore raw

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.

Signature · 11 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore
Quoted 11 lines · Jeremy Fitzhardinge
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

#40 lore raw

Fire-wire passthrough with Linux pv-ops (2.6.31.1)

Quoted 10 lines · Mr. Teo En Ming (Zhang Enming)

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?

#41 lore raw

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.

Signature · 14 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore


On Tue, Oct 13, 2009 at 2:10 AM, Konrad Rzeszutek Wilk
Quoted 17 lines · <[email protected]> wrote:
Quoted 10 lines · Mr. Teo En Ming (Zhang Enming)

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?

#42 lore raw

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?

Signature · 14 lines
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: [email protected]
MSN: [email protected]
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)
Quoted 65 lines · <[email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 17 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Mr. Teo En Ming (Zhang Enming)

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?

#43 lore raw

Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

In reply to Mr. Teo En Ming (Zhang Enming)
Quoted 24 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 6 lines

(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.

#44 lore raw

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?

Signature · 14 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore


On Tue, Oct 13, 2009 at 10:22 PM, Konrad Rzeszutek Wilk
Quoted 38 lines · <[email protected]> wrote:
Quoted 24 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 6 lines

(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.

#45 lore raw

Re: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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?

#46 lore raw

Re: 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

Signature · 15 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore



On Wed, Oct 14, 2009 at 1:04 AM, Konrad Rzeszutek Wilk
Quoted 16 lines · <[email protected]> wrote:
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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?

#47 lore raw

Re: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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.

#48 lore raw

Re: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

Quoted 1 line

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.

Signature · 14 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore


On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk
Quoted 14 lines · <[email protected]> wrote:
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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.

#49 lore raw

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

Signature · 20 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 39 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line · Konrad Rzeszutek Wilk

On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming)

Quoted 4 lines · wrote:
Quoted 4 lines

Hi,

Could you help me look at here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html

Quoted 1 line
Quoted 1 line

and also here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html

Quoted 2 lines

Its looks to be working from the Dom0 side just fine. I am curious as

what is happening

Quoted 11 lines
Quoted 1 line

on the Windows driver side. I don't know enough about where Windows

drivers put

Quoted 1 line

debug information so I can't suggest where to look there. One suggestion

is that

Quoted 1 line

you install Fedora Core 11 as a HVM guest and passthrough your firewire

controller to it.

Quoted 1 line

And then include the logs from the Fedora domU - that should give more

insight on why

Quoted 2 lines

it is not working properly.

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

#50 lore raw

Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

Hi,

Anybody knows how to solve this problem?

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

Quoted 58 lines
Quoted 50 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line · Konrad Rzeszutek Wilk

On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming)

Quoted 4 lines · wrote:
Quoted 4 lines

Hi,

Could you help me look at here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html

Quoted 1 line
Quoted 1 line

and also here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html

Quoted 2 lines

Its looks to be working from the Dom0 side just fine. I am curious as

what is happening

Quoted 1 line

on the Windows driver side. I don't know enough about where Windows

drivers put

Quoted 1 line

debug information so I can't suggest where to look there. One suggestion

is that

Quoted 1 line

you install Fedora Core 11 as a HVM guest and passthrough your firewire

controller to it.

Quoted 1 line

And then include the logs from the Fedora domU - that should give more

insight on why

Quoted 2 lines

it is not working properly.

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

#51 lore raw

Re: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

In reply to Mr. Teo En Ming (Zhang Enming)
Quoted 10 lines · Mr. Teo En Ming (Zhang Enming)

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?

Quoted 7 lines

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?

Quoted 5 lines

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

Quoted 11 lines

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.

Quoted 4 lines

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

Quoted 8 lines

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.

Quoted 81 lines

The line immediately above looks very suspicious.

Signature · 20 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 39 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line · Konrad Rzeszutek Wilk

On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming)

Quoted 4 lines · wrote:
Quoted 4 lines

Hi,

Could you help me look at here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html

Quoted 1 line
Quoted 1 line

and also here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html

Quoted 2 lines

Its looks to be working from the Dom0 side just fine. I am curious as

what is happening

Quoted 11 lines
Quoted 1 line

on the Windows driver side. I don't know enough about where Windows

drivers put

Quoted 1 line

debug information so I can't suggest where to look there. One suggestion

is that

Quoted 1 line

you install Fedora Core 11 as a HVM guest and passthrough your firewire

controller to it.

Quoted 1 line

And then include the logs from the Fedora domU - that should give more

insight on why

Quoted 2 lines

it is not working properly.

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

#52 lore raw

Re: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

Hi Konrad,

Quoted 2 lines

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.

Quoted 1 line

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.

Quoted 4 lines

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

Quoted 6 lines

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.

Quoted 1 line

- 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

Quoted 2 lines

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

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

Signature · 14 lines
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: [email protected]
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 <
Quoted 158 lines · [email protected]> wrote:
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 4 lines

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

Quoted 1 line

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?

Quoted 2 lines

Please have a look at the following output within Slackware64 13.0 HVM

domU.

Quoted 2 lines

00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if

10

Quoted 3 lines

[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?

Quoted 5 lines

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

Quoted 3 lines

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

Quoted 7 lines

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!

Quoted 1 line

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.

Quoted 11 lines

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

Quoted 1 line

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.

Quoted 23 lines

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

Quoted 31 lines
Quoted 28 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line · Konrad Rzeszutek Wilk

On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang

Enming)

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines · wrote:
Quoted 4 lines

Hi,

Could you help me look at here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

and also here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

Its looks to be working from the Dom0 side just fine. I am curious as

what is happening

Quoted 1 line

on the Windows driver side. I don't know enough about where Windows

drivers put

Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

debug information so I can't suggest where to look there. One

suggestion

Quoted 2 lines
Quoted 2 lines

is that

Quoted 1 line

you install Fedora Core 11 as a HVM guest and passthrough your

firewire

Quoted 2 lines
Quoted 2 lines

controller to it.

Quoted 1 line

And then include the logs from the Fedora domU - that should give

more

Quoted 9 lines
Quoted 4 lines

insight on why

Quoted 2 lines

it is not working properly.

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

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

#53 lore raw

Re: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

Quoted 1 line
Quoted 1 line

Can you provide the lspci -vv output of the Dom0 and >DomU, please?

.. snip ..

Quoted 2 lines
    Region 0: Memory at d3801000 (32-bit, non-prefetchable) [size=4K]
    Region 1: Memory at d3800000 (32-bit, non-prefetchable) [size=256]

.. snip ..

Quoted 2 lines
    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.

Quoted 8 lines

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

Quoted 4 lines
Quoted 2 lines

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

Quoted 1 line

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

Quoted 7 lines

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?

#54 lore raw

Re: 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.

Quoted 4 lines

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?

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.

Signature · 14 lines
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: [email protected]
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 <
Quoted 60 lines · [email protected]> wrote:
Quoted 1 line
Quoted 1 line

Can you provide the lspci -vv output of the Dom0 and >DomU, please?

.. snip ..

Quoted 2 lines
    Region 0: Memory at d3801000 (32-bit, non-prefetchable) [size=4K]
    Region 1: Memory at d3800000 (32-bit, non-prefetchable) [size=256]

.. snip ..

Quoted 2 lines
    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.

Quoted 8 lines

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

Quoted 4 lines
Quoted 2 lines

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

Quoted 1 line

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

Quoted 6 lines

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?

Quoted 8 lines
Quoted 1 line

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

#55 lore raw

RE: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

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

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:[email protected]]
Sent: 2009年11月1日 22:08
To: Konrad Rzeszutek Wilk
Cc: Jeremy Fitzhardinge; [email protected]; Han, Weidong; [email protected]; [email protected]
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 <[email protected]<mailto:[email protected]>>
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: [email protected]<mailto:[email protected]>
MSN: [email protected]<mailto:[email protected]>
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) <[email protected]<mailto:[email protected]>> 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: [email protected]<mailto:[email protected]>
MSN: [email protected]<mailto:[email protected]> Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 7 lines · On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk…
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 7 lines

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.

From 675c1733889e87aae22151da82bfb6cde763b205 Mon Sep 17 00:00:00 2001
From: Weidong Han <[email protected]>
Date: Tue, 3 Nov 2009 01:54:44 +0800
Subject: [PATCH] pv-ops: fix shared irq device passthrough [v2]

In driver/xen/events.c, whether bind_pirq is shareable or not is determined by desc->action is NULL or not. But in __setup_irq, startup(irq) is invoked before desc->action is assigned with new action. So desc->action in startup_irq is alwasy NULL, and bind_pirq is always not shareable. This results in pt_irq_create_bind failure when passthrough a device which shares irq to other devices.

This patch doesn't use probing_irq to determine if pirq is shareable or not, instead set shareable flag in irq_info according to trigger mode in xen_allocate_pirq. Set level triggered interrupts shareable. Thus use this flag to set bind_pirq flag accordingly.

---
 arch/x86/xen/pci.c   |   15 ++++++++++++---
 drivers/xen/events.c |    7 +++++--
 include/xen/events.h |    2 +-
 3 files changed, 18 insertions(+), 6 deletions(-)
arch/x86/xen/pci.c +12 -3
index 44d91ad..6f366ae 100644
@@ -44,6 +44,8 @@ static void xen_set_io_apic_routing(int irq, int trigger, int polarity)
 int xen_register_gsi(u32 gsi, int triggering, int polarity)
 {
 	int irq;
+	int shareable = 0;
+	char *name;
 
 	if (!xen_domain())
 		return -1;
@@ -51,8 +53,15 @@ int xen_register_gsi(u32 gsi, int triggering, int polarity)
 	printk(KERN_DEBUG "xen: registering gsi %u triggering %d polarity %d\n",
 	       gsi, triggering, polarity);
 
-	irq = xen_allocate_pirq(gsi, (triggering == ACPI_EDGE_SENSITIVE)
-				     ? "ioapic-edge" : "ioapic-level");
+	if (triggering == ACPI_EDGE_SENSITIVE) {
+		shareable = 0;
+		name = "ioapic-edge";
+	} else {
+		shareable = 1;
+		name = "ioapic-level";
+	}
+
+	irq = xen_allocate_pirq(gsi, shareable, name);
 
 	printk(KERN_DEBUG "xen: --> irq=%d\n", irq);
 
@@ -70,7 +79,7 @@ void __init xen_setup_pirqs(void)
 
 	if (0 == nr_ioapics) {
 		for (irq = 0; irq < NR_IRQS_LEGACY; irq++)
-			xen_allocate_pirq(irq, "xt-pic");
+			xen_allocate_pirq(irq, 0, "xt-pic");
 		return;
 	}
 
drivers/xen/events.c +5 -2
index d3c267f..9d90f6e 100644
@@ -96,6 +96,7 @@ struct irq_info
 	} u;
 };
 #define PIRQ_NEEDS_EOI	(1 << 0)
+#define PIRQ_SHAREABLE	(1 << 1)
 
 static struct irq_info *irq_info;
 
@@ -438,7 +439,8 @@ static unsigned int startup_pirq(unsigned int irq)
 
 	bind_pirq.pirq = info->u.pirq.nr;
 	/* NB. We are happy to share unless we are probing. */
-	bind_pirq.flags = probing_irq(irq) ? 0 : BIND_PIRQ__WILL_SHARE;
+	bind_pirq.flags = info->u.pirq.flags & PIRQ_SHAREABLE ?
+					BIND_PIRQ__WILL_SHARE : 0;
 	rc = HYPERVISOR_event_channel_op(EVTCHNOP_bind_pirq, &bind_pirq);
 	if (rc != 0) {
 		if (!probing_irq(irq))
@@ -543,7 +545,7 @@ static int find_irq_by_gsi(unsigned gsi)
  * event channel until the irq actually started up.  Return an
  * existing irq if we've already got one for the gsi.
  */
-int xen_allocate_pirq(unsigned gsi, char *name)
+int xen_allocate_pirq(unsigned gsi, int shareable, char *name)
 {
 	int irq;
 	struct physdev_irq irq_op;
@@ -575,6 +577,7 @@ int xen_allocate_pirq(unsigned gsi, char *name)
  	}
 
 	irq_info[irq] = mk_pirq_info(0, gsi, irq_op.vector);
+	irq_info[irq].u.pirq.flags |= shareable ? PIRQ_SHAREABLE : 0;
 out:
 	spin_unlock(&irq_mapping_update_lock);
 	return irq;
include/xen/events.h +1 -1
index bb654f2..7b231f0 100644
@@ -68,7 +68,7 @@ unsigned irq_from_evtchn(unsigned int evtchn);
 /* Allocate an irq for a physical interrupt, given a gsi.  "Legacy"
    GSIs are identity mapped; others are dynamically allocated as
    usual. */
-int xen_allocate_pirq(unsigned gsi, char *name);
+int xen_allocate_pirq(unsigned gsi, int shareable, char *name);
 
 /* Return vector allocated to pirq */
 int xen_vector_from_irq(unsigned pirq);
Signature · 1 line
1.6.0.4

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

#56 lore raw

Re: 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
Signature · 14 lines
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: [email protected]
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore

2009/11/3 Han, Weidong <[email protected]>
Quoted 179 lines

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:
[email protected]]
*Sent:* 2009年11月1日 22:08
*To:* Konrad Rzeszutek Wilk
*Cc:* Jeremy Fitzhardinge; [email protected]; Han, Weidong; [email protected]; [email protected] *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 <[email protected]>
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: [email protected]
MSN: [email protected]
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

Quoted 58 lines
Quoted 50 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line · Konrad Rzeszutek Wilk

On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang

Quoted 4 lines · Enming)
Quoted 4 lines

Hi,

Could you help me look at here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html

Quoted 1 line
Quoted 1 line

and also here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html

Quoted 2 lines

Its looks to be working from the Dom0 side just fine. I am curious as

what is happening

Quoted 1 line

on the Windows driver side. I don't know enough about where Windows

drivers put

Quoted 1 line

debug information so I can't suggest where to look there. One suggestion

is that

Quoted 1 line

you install Fedora Core 11 as a HVM guest and passthrough your firewire

controller to it.

Quoted 1 line

And then include the logs from the Fedora domU - that should give more

insight on why

Quoted 2 lines

it is not working properly.

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

#57 lore raw

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?

Signature · 14 lines
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: [email protected]
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore

2009/11/3 Mr. Teo En Ming (Zhang Enming) <[email protected]>
Quoted 204 lines

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: [email protected]
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore

Quoted 243 lines

2009/11/3 Han, Weidong <[email protected]>

Hi En Ming,

Quoted 236 lines

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:
[email protected]]
*Sent:* 2009年11月1日 22:08
*To:* Konrad Rzeszutek Wilk
*Cc:* Jeremy Fitzhardinge; [email protected]; Han, Weidong; [email protected]; [email protected] *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 <[email protected]>
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: [email protected]
MSN: [email protected]
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

Quoted 50 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 1 line · Konrad Rzeszutek Wilk

On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang

Quoted 4 lines · Enming)
Quoted 4 lines

Hi,

Could you help me look at here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html

Quoted 1 line
Quoted 1 line

and also here

http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html

Quoted 2 lines

Its looks to be working from the Dom0 side just fine. I am curious as

what is happening

Quoted 1 line

on the Windows driver side. I don't know enough about where Windows

drivers put

Quoted 1 line

debug information so I can't suggest where to look there. One

suggestion is that

Quoted 1 line

you install Fedora Core 11 as a HVM guest and passthrough your firewire

controller to it.

Quoted 1 line

And then include the logs from the Fedora domU - that should give more

insight on why

Quoted 2 lines

it is not working properly.

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

Applied
#58 lore raw

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:[email protected]]
Sent: 2009年11月3日 21:06
To: Han, Weidong
Cc: Konrad Rzeszutek Wilk; Jeremy Fitzhardinge; [email protected]; [email protected]; [email protected]
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: [email protected]<mailto:[email protected]> Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore

2009/11/3 Mr. Teo En Ming (Zhang Enming) <[email protected]<mailto:[email protected]>> 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: [email protected]<mailto:[email protected]> Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore

2009/11/3 Han, Weidong <[email protected]<mailto:[email protected]>>

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:[email protected]<mailto:[email protected]>]
Sent: 2009年11月1日 22:08
To: Konrad Rzeszutek Wilk
Cc: Jeremy Fitzhardinge; [email protected]<mailto:[email protected]>; Han, Weidong; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>
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 <[email protected]<mailto:[email protected]>>
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: [email protected]<mailto:[email protected]>
MSN: [email protected]<mailto:[email protected]>
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) <[email protected]<mailto:[email protected]>> 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: [email protected]<mailto:[email protected]>
MSN: [email protected]<mailto:[email protected]> Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 7 lines · On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk…
Quoted 5 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 7 lines

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

#59 lore raw

Re: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1)

In reply to Konrad Rzeszutek Wilk

Good to hear pciback is coming soon ! :-)

Quoted 37 lines · you
Quoted 24 lines · Mr. Teo En Ming (Zhang Enming)

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.

Quoted 6 lines

(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.

Signature · 2 lines
Best regards,
 Sander                            mailto:[email protected]
#60 lore raw

Re: 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?

Signature · 15 lines
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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore



On Tue, Oct 13, 2009 at 10:48 PM, Sander Eikelenboom
Quoted 52 lines · <[email protected]> wrote:

Good to hear pciback is coming soon ! :-)

Quoted 30 lines · you
Quoted 29 lines · Mr. Teo En Ming (Zhang Enming)

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')
)

Quoted 7 lines
Quoted 1 line

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

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

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.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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)
Quoted 37 lines · <[email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 11 lines · Jeremy Fitzhardinge
Quoted 4 lines · Mr. Teo En Ming (Zhang Enming)

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

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

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.

Signature · 13 lines
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: [email protected]
MSN: [email protected]
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) <
Quoted 17 lines · [email protected]> 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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 63 lines
Quoted 56 lines · Mr. Teo En Ming (Zhang Enming)

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: [email protected]
MSN: [email protected]
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

Quoted 24 lines · Jeremy Fitzhardinge
Quoted 9 lines · Mr. Teo En Ming (Zhang Enming)

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

Quoted 1 line

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