打印

[軟件] KVM with VT-d passthrough for gaming? (Benchmarked)

KVM with VT-d passthrough for gaming? (Benchmarked)

Benchmark result, i5-6600+AMD 7950

Virtual Machine:



Bare metal:


[ 本帖最後由 Sandbo 於 2016-2-21 03:06 編輯 ]

TOP

pass咩hardware入VM裡面?display card?

TOP

引用:
原帖由 YCST 於 2016-2-13 15:53 發表
pass咩hardware入VM裡面?display card?
Sorry for missing the focus out
Yes, mainly it is the graphics card (AMD HD 7950).

From the others it can give >95% of performance to the guest (given I use Intel IGP for Linux host).

TOP

剩係試過pass LAN卡同USB

TOP

引用:
原帖由 YCST 於 2016-2-13 16:22 發表
剩係試過pass LAN卡同USB
USB usually doesn't need VT-d, LAN card not sure.
I will try to give more details if I successfully play GTA V on Windows 10 guest

TOP

如果張LAN卡支援SR-IOV, 配合VT-d
Network 效能唔錯,降低d cpu usage
不過kvm 用virtio network driver,  cpu usage 都已經比其他driver 大大降低左
我玩kvm 都係因為起server, 所以都係試network 野多,display card 未試過

TOP

Display 應該唔多夠力....
經左VMWare Player 後佢入面上Driver 都唔係show 翻 GTX970 反而係show SVGA 3D
天然系長髮眼鏡娘 最高
Lucky Star 聯盟 - 美幸
Kancolle - 大淀, 翔鶴 (太太), 烏海 , 瑞鶴

TOP

引用:
原帖由 dom 於 2016-2-14 01:39 發表
Display 應該唔多夠力....
經左VMWare Player 後佢入面上Driver 都唔係show 翻 GTX970 反而係show SVGA 3D
依個就係有冇VT-d的分别
用VT-d好似真係pass到九成, 而且係直接 show張卡....想一陣試下,
但要 backup左部機先唔係一陣抄左 kernel就奶野

[ 本帖最後由 Sandbo 於 2016-2-15 04:42 編輯 ]

TOP

唉,好灰,整到天光都唔 work,一加 PCI device個vm就唔 boot

已經detach左AMD graphics+audio,再做埋vfio-bind,
就係唔work....可能會reset左個QEMU-KVM搞過哂……

Damn:
https://bugzilla.kernel.org/show_bug.cgi?id=107561

[ 本帖最後由 Sandbo 於 2016-2-15 12:46 編輯 ]

TOP

Working!
Not a kernel issue, but the point being having the PCI bridge in the same IOMMU group caused some complications in the passthrough.
Swapping the graphics card to PCI-E slot 2 solved the problem, and I can install AMD driver on guest.

TOP

引用:
原帖由 Sandbo 於 2016-2-16 04:45 發表
Working!
Not a kernel issue, but the point being having the PCI bridge in the same IOMMU group caused some complications in the passthrough.
Swapping the graphics card to PCI-E slot 2 solved the probl ...
Chipset problem?

TOP

引用:
原帖由 qcmadness 於 2016-2-16 04:47 發表

Chipset problem?
I can't tell, it seems in terms of IOMMU group, the PCI bridge is linked to whatever connected to PCI-E x16 slot 1 (it reports three devices in the IOMMU group), this is also the case for z97 so I don't think it's z170 bound.

Swapping to slot 2, the IOMMU group reported no components other than AMD graphics and audio (only 2 devices as oppose to 3 in the above case), then it worked.
One important point being for VT-d pass through, the whole group has always to be passed together.

[ 本帖最後由 Sandbo 於 2016-2-16 07:17 編輯 ]

TOP

?size_id=8

TOP

Exact reason for passthrough failure before:
Not the slot, but in fact the setting of CPU:
Nothing but host-passthrough (type manually) can work, if anyone concerns.

TOP


Exactly like on bare metal

[ 本帖最後由 Sandbo 於 2016-2-17 15:36 編輯 ]

TOP