From: Phung Te Ha Subject: Re: XCI: can we get to the demo state? Date: Mon, 17 Aug 2009 12:09:30 -0700 Message-ID: References: <44063.3697.qm@web82302.mail.mud.yahoo.com> <14D9C9E2ED61ED41BC3B37ACDF4E880002CE4F3F9CDB@heavy-vm03.heavy.org.uk> <4A81A067.90805@eu.citrix.com> <4A8544D9.9070204@eu.citrix.com> <831D55AF5A11D64C9B4B43F59EEBF72035FE85F5FA@FTLPMAILBOX02.citrite.net> <831D55AF5A11D64C9B4B43F59EEBF72035FE85F675@FTLPMAILBOX02.citrite.net> <831D55AF5A11D64C9B4B43F59EEBF72035FE85F6CD@FTLPMAILBOX02.citrite.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0367092451==" Return-path: In-Reply-To: <831D55AF5A11D64C9B4B43F59EEBF72035FE85F6CD@FTLPMAILBOX02.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ross Philipson Cc: "xen-devel@lists.xensource.com" , Vincent Hanquez , Kamala Narasimhan List-Id: xen-devel@lists.xenproject.org --===============0367092451== Content-Type: multipart/alternative; boundary=000e0cd70ca23f4e5704715b24c3 --000e0cd70ca23f4e5704715b24c3 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi all, Thanks to your helps, I could see vista come up from a DVD installation wit= h the graphics controller passed-through. The machine I am using is HP6930p. The config is Ross', just changed the disk from: disk =3D /dev/sda:phy:hda:w:disk to disk =3D /dev/sr0:phy:hdd:r:cdrom I also have vista on the disk at /dev/sda1. But since I use the same disk t= o boot xenclient, when I start the guest, giving /dev/sda as disk, grub wants to boot xenclient again, instead of vista. So now I am building a xenclient_usb config, and leave /dev/sda to vista only. Will update. Phung-Te On Fri, Aug 14, 2009 at 2:15 PM, Ross Philipson wrote: > Yes, I am passing the graphics through. I am using an HP 6930p at the > moment. I am using Windows Vista as the VM I am passing the graphics thro= ugh > to and using Windows XP in a second VM that I am using VNC for. I attache= d > the xenvm config files I happen to be using right now. Note that my Vista > install is not a vhd but rather installed on a partition on disk. > > > > Ross > > > > *From:* Phung Te Ha [mailto:phungte@gmail.com] > *Sent:* Friday, August 14, 2009 4:18 PM > > *To:* Ross Philipson > *Cc:* Vincent Hanquez; xen-devel@lists.xensource.com; Kamala Narasimhan > *Subject:* Re: [Xen-devel] XCI: can we get to the demo state? > > > > Do you pass the graphics controller through? Which guest are you using? D= o > you mind publish your config file? > > Thank you. > > Phung-Te > > On Fri, Aug 14, 2009 at 11:08 AM, Ross Philipson < > Ross.Philipson@citrix.com> wrote: > > Well we don=92t have a official list we can push but we run on the same H= P > 6930p you have all the time. We have also had it running on Intel Q35 > systems. So in general it should work on these systems. > > > > Thanks > > Ross > > > > *From:* Phung Te Ha [mailto:phungte@gmail.com] > *Sent:* Friday, August 14, 2009 11:32 AM > *To:* Ross Philipson > *Cc:* Vincent Hanquez; xen-devel@lists.xensource.com; Kamala Narasimhan > > > *Subject:* Re: [Xen-devel] XCI: can we get to the demo state? > > > > Hello all, > > The only thing I passed through was the graphics controller. > After starting the guest, the system is still there running, xenops > list_domains shows 2 doms running, but nothing from the guest is showing. > > The board I am using is the Intel DQ35OJ and the graphics controller is t= he > onboard one. Same operation has also been done on a HP6930p, same result. > Can you publish the list of hardware you guys are using, MB, graphics > board..., the config that most likely to get a graphics controller passed > through. > > Thank you. > > Phung-Te > > On Fri, Aug 14, 2009 at 7:13 AM, Ross Philipson > wrote: > > Yeah, these occur when the iommu context for the device in question (in > this case your iGfx card) has been torn down but the card is still active > (still attempting DMA). The code in xen to perform an function level rese= ts > (FLR) on the devices takes care of the vast majority of these but there > still remain one or two that occur even thought the FLR has been done. Th= is > issue was never resolved but these few remaining faults don't seem to cau= se > a problem. So you are experiencing a hang as the vm starts I take it. Is = the > vtd fault trace the last thing you see? Are you passing anything else > through? > > Thanks > Ross > > > -----Original Message----- > From: Vincent Hanquez > Sent: Friday, August 14, 2009 7:05 AM > To: Phung Te Ha > > Cc: xen-devel@lists.xensource.com; Ross Philipson; Kamala Narasimhan > Subject: Re: [Xen-devel] XCI: can we get to the demo state? > > Phung Te Ha wrote: > > Hi Vincent, > > > > I tried your suggestion, adding pci =3D 0,bind,0000:00:02.0 in the conf= ig > > on 2 different machines, the HP6930 and on an Intel MB DQ35OJ. > > > > On both machines, I got the samething, the guest run as shown by > > xenops list_domains: > > > > id | state | cpu_time | uuid > > 0 | R | 54203470658 | 00000000-0000-0000-0000-000000000000 > > 1 | B H | 12214238864 | 00000000-0000-0000-0000-000000000002 > > > > But nothing shows on the screen. > > > > I checked the logs and found in xenops dmesg: > > > > ... > > (XEN) Intel VT-d Snoop Control not supported. > > (XEN) Intel VT-d DMA Passthrough not supported. > > (XEN) Intel VT-d Queued Invalidation not supported. > > (XEN) Intel VT-d Interrupt Remapping not supported. > > (XEN) I/O virtualisation enabled > > (XEN) I/O virtualisation for PV guests disabled > > > > > > And when the guest is started: > > > > ... > > _fault:DMA Write: 0:2.0 addr faddf7000 REASON 5 iommu->reg =3D > > ffff828bfff56000 > > (XEN) print_vtd_entries: iommu =3D ffff83007dcfb320 bdf =3D 0:2:0 gmfn = =3D > > faddf7 > > (XEN) root_entry =3D ffff83007e0ce000 > > (XEN) root_entry[0] =3D 7e066001 > > (XEN) context =3D ffff83007e066000 > > (XEN) context[10] =3D 201_7da02001 > > (XEN) l3 =3D ffff83007da02000 > > (XEN) l3_index =3D 3e > > (XEN) l3[3e] =3D 0 > > (XEN) l3[3e] not present > > (XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg =3D ffff828bfff56= 000 > > (XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow > > (XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault > > (XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr faddf7000 > > REASON 5 iommu->reg =3D ffff828bfff56000 > > (XEN) print_vtd_entries: iommu =3D ffff83007dcfb320 bdf =3D 0:2:0 gmfn = =3D > > faddf7 > > (XEN) root_entry =3D ffff83007e0ce000 > > (XEN) root_entry[0] =3D 7e066001 > > (XEN) context =3D ffff83007e066000 > > ... > > > > Do you think these 2 machines have enough of VT-d features to get the > > graphics passed-through? > > Do you have a preferred desktop board, known to work for graphisc > > passed-through? > I'm not really familiar with thoses VT-d errors. Kamala/Ross do you have > any idea, what this previous errors means ? > > thanks, > -- > Vincent > > > > > --000e0cd70ca23f4e5704715b24c3 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi all,

Thanks to your helps, I could see vista come up from a DVD installation with the graphics controller passed-through. The machine I am using is HP6930p. The config is Ross', just changed the disk from:

disk =3D /dev/sda:phy:hda:w:disk

to

disk =3D /dev/sr0:phy:hdd:r:cdrom

I also have vista on the disk at /dev/sda1. But since I use the same disk to boot xenclient, when I start the guest, giving /dev/sda as disk, grub wants to boot xenclient again, instead of vista.

So now I am building a xenclient_usb config, and leave /dev/sda to vista on= ly.

Will update.

Phung-Te


On Fri, Aug 14, 2009 at 2:15 PM, Ross Ph= ilipson <= Ross.Philipson@citrix.com> wrote:

Yes, I am pass= ing the graphics through. I am using an HP 6930p at the moment. I am using Windows Vista as the VM I am passing the graphics through to and using Windows XP in a second VM that I am using VNC for. I attached the xenvm config files I happen to be using right now. Note that m= y Vista install is not a vhd but rather installed on a partition on disk.

=A0

Ross

=A0

From: Phung Te Ha [mailto:phungte@gmai= l.com]
Sent: Friday, August 14, 2009 4:18 PM


To: Ross Philipson
Cc: Vincent Hanquez; xen-devel@lists.xensource.com; Kamala Narasimhan Subject: Re: [Xen-devel] XCI: can we get to the demo state?

=A0

Do you pass the graphics controller through? Which guest are you using? Do you mind publish your con= fig file?

Thank you.

Phung-Te

On Fri, Aug 14, 2009 at 11:08 AM, Ross Philipson <Ross.Philipson@citrix.com&g= t; wrote:

Well we don=92= t have a official list we can push but we run on the same HP 6930p you have all the time. We = have also had it running on Intel Q35 systems. So in general it should work on t= hese systems.

=A0

Thanks<= /p>

Ross

=A0

From: Phung Te Ha [mailto:phungte@gmail.com]
Sent: Friday, August 14, 2009 11:32 AM
To: Ross Philipson
Cc: Vincent Hanquez; xen-devel@lists.xensource.com; Kamala Narasimhan


Subject: Re: [Xen-devel] XCI: can we get to the demo state?

=A0

Hello all,

The only thing I passed through was the graphics controller.
After starting the guest, the system is still there running, xenops list_domains shows 2 doms running, but nothing from the guest is showing.
The board I am using is the Intel DQ35OJ and the graphics controller is the onboard one. Same operation has also been done on a HP6930p, same result. C= an you publish the list of hardware you guys are using, MB, graphics board...,= the config that most likely to get a graphics controller passed through.

Thank you.

Phung-Te

On Fri, Aug 14, 2009 at 7:13 AM, Ross Philipson <Ross.Philipson@citrix.com>= ; wrote:

Yeah, these occur when the iommu context for the device in question (in = this case your iGfx card) has been torn down but the card is still active (still attempting DMA). The code in xen to perform an function level resets (FLR) = on the devices takes care of the vast majority of these but there still remain= one or two that occur even thought the FLR has been done. This issue was never resolved but these few remaining faults don't seem to cause a problem. = So you are experiencing a hang as the vm starts I take it. Is the vtd fault trace = the last thing you see? Are you passing anything else through?

Thanks
Ross


-----Original Message-----
From: Vincent Hanquez
Sent: Friday, August 14, 2009 7:05 AM
To: Phung Te Ha

Cc: xen-devel@lists.xensource.com; Ross Philipson; Kamala Narasimhan
Subject: Re: [Xen-devel] XCI: can we get to the demo state?

Phung Te Ha wrote:
> Hi Vincent,
>
> I tried your suggestion, adding pci =3D 0,bind,0000:00:02.0 in the con= fig
> on 2 different machines, the HP6930 and on an Intel MB DQ35OJ.
>
> On both machines, I got the samething, the guest run as shown by
> xenops list_domains:
>
> =A0id | =A0state | =A0 =A0cpu_time | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 uuid
> =A00 | =A0 =A0 R =A0| 54203470658 | 00000000-0000-0000-0000-000000000000
> =A01 | =A0 =A0B H | 12214238864 | 00000000-0000-0000-0000-000000000002
>
> But nothing shows on the screen.
>
> I checked the logs and found in xenops dmesg:
>
> ...
> (XEN) Intel VT-d Snoop Control not supported.
> (XEN) Intel VT-d DMA Passthrough not supported.
> (XEN) Intel VT-d Queued Invalidation not supported.
> (XEN) Intel VT-d Interrupt Remapping not supported.
> (XEN) I/O virtualisation enabled
> (XEN) I/O virtualisation for PV guests disabled
>
>
> And when the guest is started:
>
> ...
> =A0_fault:DMA Write: 0:2.0 addr faddf7000 REASON 5 iommu->reg =3D > ffff828bfff56000
> (XEN) print_vtd_entries: iommu =3D ffff83007dcfb320 bdf =3D 0:2:0 gmfn= =3D
> faddf7
> (XEN) =A0 =A0 root_entry =3D ffff83007e0ce000
> (XEN) =A0 =A0 root_entry[0] =3D 7e066001
> (XEN) =A0 =A0 context =3D ffff83007e066000
> (XEN) =A0 =A0 context[10] =3D 201_7da02001
> (XEN) =A0 =A0 l3 =3D ffff83007da02000
> (XEN) =A0 =A0 l3_index =3D 3e
> (XEN) =A0 =A0 l3[3e] =3D 0
> (XEN) =A0 =A0 l3[3e] not present
> (XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg =3D ffff828bfff56000
> (XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
> (XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
> (XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr faddf7000 > REASON 5 iommu->reg =3D ffff828bfff56000
> (XEN) print_vtd_entries: iommu =3D ffff83007dcfb320 bdf =3D 0:2:0 gmfn= =3D
> faddf7
> (XEN) =A0 =A0 root_entry =3D ffff83007e0ce000
> (XEN) =A0 =A0 root_entry[0] =3D 7e066001
> (XEN) =A0 =A0 context =3D ffff83007e066000
> ...
>
> Do you think these 2 machines have enough of VT-d features to get the<= br> > graphics passed-through?
> Do you have a preferred desktop board, known to work for graphisc
> passed-through?
I'm not really familiar with thoses VT-d errors. Kamala/Ross do you hav= e
any idea, what this previous errors means ?

thanks,
--
Vincent

=A0

=A0


--000e0cd70ca23f4e5704715b24c3-- --===============0367092451== 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 --===============0367092451==--