From: "Mr. Teo En Ming (Zhang Enming)" Subject: Re: Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1) Date: Wed, 11 Nov 2009 06:46:52 +0800 Message-ID: References: <20091013170431.GB21615@phenom.dumpdata.com> <20091023175700.GA1383@phenom.dumpdata.com> <20091102141319.GA30908@phenom.dumpdata.com> <20091102160508.GB1199@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2078734089==" Return-path: In-Reply-To: <20091102160508.GB1199@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: space.time.universe@gmail.com, Jeremy Fitzhardinge , xen-devel@lists.xensource.com, "Han, Weidong" List-Id: xen-devel@lists.xenproject.org --===============2078734089== Content-Type: multipart/alternative; boundary=00504502eacd170daa04780c1627 --00504502eacd170daa04780c1627 Content-Type: text/plain; charset=ISO-8859-1 Hi Konrad, I have filed a bug report for the firewire controller passthrough issue at http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1539 and also CCed to you and Weidong. >Uuhh.. What did 'info blocks' (or maybe it is 'info block') tell you? >Did >you look up any guides on how to do this? How do you know the >guest >did not detect the CD change? Did you try to do a read on it? >Like 'sg_readcap /dev/sr0' or 'dd if=/dev/sr0 of=/tmp/temp.iso' >within 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. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore On Tue, Nov 3, 2009 at 12:05 AM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> wrote: > > >Can you provide the lspci -vv output of the Dom0 and >DomU, please? > > .. snip .. > > > Region 0: Memory at d3801000 (32-bit, non-prefetchable) [size=4K] > > Region 1: Memory at d3800000 (32-bit, non-prefetchable) [size=256] > > .. snip .. > > Region 0: Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > > Region 1: Memory at e3002000 (32-bit, non-prefetchable) [size=4K] > > That is weird. The second region is at the wrong location (unless > QEMU actually does some copying after each MMIO operation..). > > I think what you saw before in the QEMU is a good hint. It could > be that the QEMU code assumes the BARs addresses have to be > in an increased order, whilst in this case it is the reverse. > > > Capabilities: [44] Power Management version 2 > > Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA > > PME(D0-,D1-,D2-,D3hot-,D3cold-) > > Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- > > Kernel driver in use: ohci1394 > > Kernel modules: ohci1394 > > > > > > > - cat /proc/interrupts (from Dom0) _before_ you launch >any guests or > > > call bind any devices to the pcistub/pciback. > > > 22: 387742 0 xen-pirq-ioapic-level HDA Intel, > firewire_ohci > > All right. You probably need to unload your sound card first in the DomO > and pass it to the guest as well. But I vaguely remember you saying that > you do that already - so I think this is OK. > > .. snip .. > > > 36: 0 0 IO-APIC-fasteoi ohci1394 > > That looks weird at first, but fasteoi == level, so that is OK. > > I think the issue you pointed out earlier, where the error about > the BARs was printed, is the culprit. I am not going to get to this > until I am done with the pciback/pcifront work. But it could be > that somebody else will pick this bug up in the interim. > > Can you open a bug on this (http://bugzilla.xensource.com/) and CC me on > it? > Please include the qemu logs, the dmesg log, /proc/interrupts, lspci -vvv, > and anything else you can think off. That way I won't forget about it. > > > .. snip .. > > I am running pv-ops dom0 kernel 2.6.31.5 now. There appears to be some > > sluggishness/unresponsiveness with this kernel after I have started a HVM > > guest. > > > > By the way, can you also help me to solve this problem as well? > > > > http://lists.xensource.com/archives/html/xen-devel/2009-11/msg00044.html > > Uuhh.. What did 'info blocks' (or maybe it is 'info block') tell you? Did > you look up any guides on how to do this? How do you know the guest > did not detect the CD change? Did you try to do a read on it? > Like 'sg_readcap /dev/sr0' or 'dd if=/dev/sr0 of=/tmp/temp.iso' within the > guest? > --00504502eacd170daa04780c1627 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Konrad,

I have filed a bug report for the firewire controller pas= sthrough issue at http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D1= 539 and also CCed to you and Weidong.

>Uuhh.. What did 'info blocks' (or maybe it is 'info blo= ck') 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=3D/dev/sr0 of=3D/tmp/t= emp.iso' >within the guest?

For the case of "phy:/dev/sr= 0,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 wi= th "eject" and "change hdc" commands. I can successfull= y change media.

The problem exists with ISO image files, in the case of "file:/pat= h/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 c= ommands, QEMU console will still report "not inserted". I have do= ne it many times. If you try to mount the cd/dvd in domU, it will fail beca= use the change of ISO file is not successful.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mech= anical Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) Nat= ional University of Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enming.blo= gspot.com
My Secondary Blog: http://enming= teo.wordpress.com
My Youtube videos: http://www.youtube.com/user/enmingteo
Email: space.time.universe@gmail.com<= /a>
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Ro= ad
Country: Singapore

On Tue, Nov 3, 2= 009 at 12:05 AM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> >Can you provide the lspci -vv output of the Dom0 and >DomU, pl= ease?

.. snip ..

> =A0 =A0 Region 0: Memory at d3801000 (32-bit, non-prefetchable) [size= =3D4K]
> =A0 =A0 Region 1: Memory at d3800000 (32-bit, non-prefetchable) [size= =3D256]

.. snip ..
> =A0 =A0 Region 0: Memory at e3001000 (32-bit, non-pr= efetchable) [size=3D4K]
> =A0 =A0 Region 1: Memory at e3002000 (32-bit, non-prefetchable) [size= =3D4K]

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.

> =A0 =A0 Capabilities: [44] Power Management version 2
> =A0 =A0 =A0 =A0 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=3D0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
> =A0 =A0 =A0 =A0 Status: D0 NoSoftRst+ PME-Enable- DSel=3D0 DScale=3D0 = PME-
> =A0 =A0 Kernel driver in use: ohci1394
> =A0 =A0 Kernel modules: ohci1394
>
>
> > - cat /proc/interrupts (from Dom0) _before_ you launch >any gu= ests or
> > =A0call bind any devices to the pcistub/pciback.

> =A022: =A0 =A0 387742 =A0 =A0 =A0 =A0 =A00 =A0= xen-pirq-ioapic-level =A0HDA Intel, firewire_ohci

All right. You probably need to unload your sound card first in the D= omO
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 ..

> =A036: =A0 =A0 =A0 =A0 =A00 =A0 =A0 =A0 =A0 =A00 =A0 IO-APIC-fasteoi = =A0 ohci1394

That looks weird at first, but fasteoi =3D=3D 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,<= br> and anything else you can think off. =A0That way I won't forget about i= t.


.. snip ..
> I am running pv-ops dom0 kernel 2.6.31.5 now. There = appears to be some
> sluggishness/unresponsiveness with this kernel after I have started a = HVM
> guest.
>
> By the way, can you also help me to solve this problem as well?
>
> http://lists.xensource.com/archives/html/x= en-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=3D/dev/sr0 of=3D/tmp/temp.= iso' within the guest?




--00504502eacd170daa04780c1627-- --===============2078734089== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2078734089==--