From: "Jin Cui" Subject: Re: vga passthrough on some graphic card result in guest slow Date: Fri, 20 May 2011 18:24:46 +0800 Message-ID: <000901cc16d8$24f82150$662614ac@asia.corp.platform.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0636938552==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0636938552== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0006_01CC171B.32B74850" This is a multi-part message in MIME format. ------=_NextPart_000_0006_01CC171B.32B74850 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hello, I think I got the reason. There is no snoop control support on my VT-d = hardware. From xm dmesg I got "Intel VT-d Snoop Control not enabled" = message. Check xen code, if no snoop control hardware, xen will trigger wbinvd = operation at all cpu, this downgrad the performance. As some IOH chipset, like Intel 5520, they don't need snoop, should xen = handle this? Thanks, Jin ----- Original Message -----=20 From: Jin Cui=20 To: xen-users@lists.xensource.com ; xen-devel@lists.xensource.com=20 Sent: Wednesday, May 04, 2011 4:43 PM Subject: vga passthrough on some graphic card result in guest slow Hello, I have tried vga passthrough on my open suse11.4(xen4.0.2) today. (vga = card: nvidia QuadroFX5800) After enable vga passthrough, the guest = VM(windows2003x64) becomes very slow for any operation including OS = startup, mouse moving. And the guest's CPU utilization always keeps = high(40% +), it should be consumed by windows kernel because I didn't = see any process use such cpu resource from task manager. But this issue = is not happen on another QuadroFX1800 machine, does vga passthrough = depends on graphic hardware? since 5800 has 4G video memory but 1800 = only has 768M. My guest configuration as below: name=3D"w2k3x64_2" description=3D"None" uuid=3D"dd12d5fa-57d0-9a56-8cbb-44495f9fecd3" memory=3D4096 maxmem=3D4096 vcpus=3D4 on_poweroff=3D"destroy" on_reboot=3D"restart" on_crash=3D"destroy" localtime=3D1 keymap=3D"en-us" builder=3D"hvm" device_model=3D"/usr/lib/xen/bin/qemu-dm" kernel=3D"/usr/lib/xen/boot/hvmloader" boot=3D"c" disk=3D[ 'phy:/dev/lvm/win2003,hda,w',] vif=3D[ 'mac=3D00:16:3e:7b:07:29,bridge=3Dbr0,model=3Drtl8139', ] gfx_passthru=3D1 pci=3D['03:00.0'] stdvga=3D0 vnc=3D1 vncunused=3D1 viridian=3D0 usb=3D1 acpi=3D1 pae=3D1 usbdevice=3D'tablet' serial=3D"pty" Thank you, Jin ------=_NextPart_000_0006_01CC171B.32B74850 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
Hello,
 
I think I got the reason. There is no = snoop control=20 support on my VT-d hardware. From xm dmesg I got "Intel VT-d Snoop = Control not=20 enabled" message.
Check xen code, if no snoop control = hardware, xen=20 will trigger wbinvd operation at all cpu, this downgrad the=20 performance.
As some IOH chipset, like Intel 5520, = they don't=20 need snoop, should xen handle this?
 
Thanks,
Jin
----- Original Message -----
From:=20 Jin = Cui=20
To: xen-users@lists.xensource.c= om=20 ; xen-devel@lists.xensource.c= om=20
Sent: Wednesday, May 04, 2011 = 4:43=20 PM
Subject: vga passthrough on = some graphic=20 card result in guest slow

Hello,
 
I have tried vga passthrough on = my open=20 suse11.4(xen4.0.2) today. (vga card: nvidia QuadroFX5800) = After enable=20 vga passthrough, the guest VM(windows2003x64) becomes very slow for = any=20 operation including OS startup, mouse moving. And the = guest's CPU=20 utilization always keeps high(40% +), it should be consumed by windows = kernel=20 because I didn't see any process use such cpu resource from = task=20 manager. But this issue is not happen on = another QuadroFX1800=20 machine, does vga passthrough depends on graphic hardware? since 5800 = has 4G=20 video memory but 1800 only has 768M. My guest configuration as=20 below:
 
name=3D"w2k3x64_2"
description=3D"None"
uuid=3D"dd12d5fa-5= 7d0-9a56-8cbb-44495f9fecd3"
memory=3D4096
maxmem=3D4096
vcpus=3D= 4
on_poweroff=3D"destroy"
on_reboot=3D"restart"
on_crash=3D"dest= roy"
localtime=3D1
keymap=3D"en-us"
builder=3D"hvm"
device_model=3D"/usr/lib/xen/bin/qemu-dm"
= kernel=3D"/usr/lib/xen/boot/hvmloader"
boot=3D"c"
disk=3D[=20 'phy:/dev/lvm/win2003,hda,w',]
vif=3D[=20 'mac=3D00:16:3e:7b:07:29,bridge=3Dbr0,model=3Drtl8139',=20 ]
gfx_passthru=3D1
pci=3D['03:00.0']
stdvga=3D0
vnc=3D1
vncunused=3D1
viridian=3D0
usb=3D= 1
acpi=3D1
pae=3D1
usbdevice=3D'tablet'
serial=3D"pty"
 
Thank you,
Jin
------=_NextPart_000_0006_01CC171B.32B74850-- --===============0636938552== 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 --===============0636938552==--