You are not logged in.

#551 2013-10-10 13:37:44

aw
Member
Registered: 2013-10-04
Posts: 921
Website

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

SpacePirate wrote:

I now got an Windows installation running but cant install the driver for the 6450 on the guest. When I use the installer I get a BSOD and if i try to use Windows` driver update functionality it detects the GPU but says "Failed to read from device"...

I moved my 7850 to a different system the other day and hit a BSOD about failing to reset the adapter.  I had to revert to Catalyst 13.4 to get it working.  Catalyst 13.9 was the broken version.  Maybe someone could find 13.5,.6,.7,.8 and figure out which one introduced the break.


http://vfio.blogspot.com
Looking for a more open forum to discuss vfio related uses?  Try https://www.redhat.com/mailman/listinfo/vfio-users

Offline

#552 2013-10-10 13:46:40

aw
Member
Registered: 2013-10-04
Posts: 921
Website

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

nbhs wrote:

I've uploaded new builds for kernel 3.12-rc4, qemu-git + alex patches, and the lastest seabios, all working fine on my pc, ive also cleaned up the guide a bit to reflect the lastest changes

It hasn't landed yet, but we're about to experience a regression in VGA arbiter support for i915.  Apparently making i915 work correctly with the arbiter results in too much of a performance hit for X.  Once 81b5c7bc8de3e6f63419139c2fc91bf81dea8a7d is reverted, IGD will claim all VGA accesses when i915 is loaded on the host.  So, sorry folks, if you have IGD you'll soon need to patch your kernel again.


http://vfio.blogspot.com
Looking for a more open forum to discuss vfio related uses?  Try https://www.redhat.com/mailman/listinfo/vfio-users

Offline

#553 2013-10-10 14:16:25

aw
Member
Registered: 2013-10-04
Posts: 921
Website

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

aw wrote:
SpacePirate wrote:

I now got an Windows installation running but cant install the driver for the 6450 on the guest. When I use the installer I get a BSOD and if i try to use Windows` driver update functionality it detects the GPU but says "Failed to read from device"...

I moved my 7850 to a different system the other day and hit a BSOD about failing to reset the adapter.  I had to revert to Catalyst 13.4 to get it working.  Catalyst 13.9 was the broken version.  Maybe someone could find 13.5,.6,.7,.8 and figure out which one introduced the break.

Maybe those were internal releases, 13.4 and 13.9 seems to be the best granularity we have from AMD.


http://vfio.blogspot.com
Looking for a more open forum to discuss vfio related uses?  Try https://www.redhat.com/mailman/listinfo/vfio-users

Offline

#554 2013-10-10 17:49:33

SpacePirate
Member
Registered: 2013-09-16
Posts: 55

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

aw wrote:
SpacePirate wrote:

I now got an Windows installation running but cant install the driver for the 6450 on the guest. When I use the installer I get a BSOD and if i try to use Windows` driver update functionality it detects the GPU but says "Failed to read from device"...

I moved my 7850 to a different system the other day and hit a BSOD about failing to reset the adapter.  I had to revert to Catalyst 13.4 to get it working.  Catalyst 13.9 was the broken version.  Maybe someone could find 13.5,.6,.7,.8 and figure out which one introduced the break.

That didnt work for me. I`ve tried to use Catalyst 13.4, still a BSOD when installing the driver and the "Failed to read from device" error.

Offline

#555 2013-10-11 03:56:08

tarcisioe
Member
Registered: 2013-10-06
Posts: 8

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

aw wrote:

You should have a lot more output than that, for example:

(...)

Now that seems bad. Wonder if I am missing some software configuration, something in my kernel, or am just stuck with a motherboard that just claims to be VT-d compatible.

Offline

#556 2013-10-12 19:47:19

empie
Member
From: The Netherlands
Registered: 2013-06-15
Posts: 9

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

Hi,

First post here.
I've been following this great topic for a while now and finally had the time to set up a system to play with GPU passthrough again (tried it with Xen before, with mixed results).
I do run into some issues though. When using the vfio-bind script a Call Trace is displayed on screen and in dmesg. This doesn't look good to me, but don't know if I can ignore it. Also, when ignoring the call trace and starting qemu to start installing Windows 7 Home Premium SP1 64 bit, a BSOD appeared.

Compiled kernel 3.12-rc4 with necessary config items, checked dmesg and iommu_groups, blacklisted device drivers, checked BDFs and device id's, set up kernel parameter with pci-stub, compiled Alex' qemu-vfio with the NoSnoop patch, compiled latest seabios. Kernel, qemu-vfio and seabios were compiled from source. The .config for the kernel is based on the one from Debian (3.2.0-4-amd64).
As far as I can tell I did all the necessary steps described here, but might have missed or misunderstood something. If more information is required, please ask. Have logged nearly everything I did. Hope someone can help me out.


System specs:
Motherboard: ASRock Z77 WS , BIOS v1.20 , VT-d enabled in BIOS
CPU: Intel i7 3770
Memory: 16 GB
GPU1: Sapphire AMD/ATI HD6870 1GB
GPU2: Asus GTX460 1GB

Intel GPU is set as primary graphics adapter.

The OS is Debian 7, minimal net-install without a GUI, only SSH and basic system tools options selected. Some extra packages installed for compiling etc.
I manage this system with SSH from another system (Win7/putty).

Kernel line in grub.cfg:

linux   /boot/vmlinuz-3.12.0-rc4-kvm-vfio-gpu01 root=/dev/mapper/vg00-root ro pci-stub.ids=1002:6738,1002:aa88,10de:0e22,10de:0beb,8086:1e2d

The id's are for the HD6870 + audio, GTX460 + audio and an USB 2.0 controller; in that order.

When starting the vfio-bind script (from this topic, without "modprobe vfio-pci" since it is compiled in the kernel), I get a Call Trace on my console and in dmesg when running:
# vfio-bind 0000:04:00.0 0000:04:00.1 0000:00:1a.0

[13211.267950] pcie_pme 0000:00:01.0:pcie01: unloading service driver pcie_pme
[13211.268146] ------------[ cut here ]------------
[13211.268165] WARNING: CPU: 0 PID: 19356 at drivers/pci/pci.c:1430 pci_disable_device+0x4d/0x74()
[13211.268183] Device pcieport
[13211.268183] disabling already-disabled device
[13211.268195] Modules linked in: autofs4 hid_generic usbhid hid nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc loop x86_pkg_temp_thermal coretemp iTCO_wdt iTCO_vendor_support crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 ablk_helper cryptd lrw gf128mul glue_helper mxm_wmi evdev snd_pcm snd_page_alloc snd_timer snd psmouse soundcore microcode serio_raw pcspkr i2c_i801 i2c_core lpc_ich mfd_core ehci_pci ehci_hcd wmi video acpi_cpufreq button processor thermal_sys ext4 crc16 jbd2 mbcache dm_mod sg sd_mod sr_mod crc_t10dif cdrom crct10dif_common ahci tg3 libahci libata ptp pps_core libphy scsi_mod xhci_hcd usbcore usb_common
[13211.268387] CPU: 0 PID: 19356 Comm: vfio-bind Not tainted 3.12.0-rc4-kvm-vfio-gpu01 #1
[13211.268404] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./Z77 WS, BIOS P1.20 08/13/2012
[13211.268422]  0000000000000000 0000000000000009 ffffffff813b19a1 ffff8800ace7dda8
[13211.268455]  ffffffff810693c7 ffff88042bc4c6c0 ffffffff81217da3 ffffffff81664bf8
[13211.268498]  ffff88042eb96000 ffffffff81664b90 ffff88042eb96000 ffffffff81664bf8
[13211.268541] Call Trace:
[13211.268564]  [<ffffffff813b19a1>] ? dump_stack+0x41/0x51
[13211.268590]  [<ffffffff810693c7>] ? warn_slowpath_common+0x78/0x90
[13211.268616]  [<ffffffff81217da3>] ? pci_disable_device+0x4d/0x74
[13211.268642]  [<ffffffff81069477>] ? warn_slowpath_fmt+0x45/0x4a
[13211.268668]  [<ffffffff81217d50>] ? do_pci_disable_device+0x41/0x47
[13211.268694]  [<ffffffff81217da3>] ? pci_disable_device+0x4d/0x74
[13211.268722]  [<ffffffff8121a44e>] ? pci_device_remove+0x38/0x83
[13211.268750]  [<ffffffff812a879f>] ? __device_release_driver+0x82/0xdb
[13211.268778]  [<ffffffff812a8a3f>] ? device_release_driver+0x1a/0x25
[13211.268805]  [<ffffffff812a7eb0>] ? unbind_store+0x59/0x89
[13211.268832]  [<ffffffff8118e435>] ? sysfs_write_file+0xd3/0x109
[13211.268859]  [<ffffffff811395f6>] ? vfs_write+0x9e/0x104
[13211.268883]  [<ffffffff811398ed>] ? SyS_write+0x51/0x85
[13211.268910]  [<ffffffff813ba8e2>] ? system_call_fastpath+0x16/0x1b
[13211.268935] ---[ end trace 1209721fe0f238ac ]---

0000:04:00.0 and 0000:04:00.1 is a GTX460 as second GPU + audio
0000:00:1a.0 is the USB 2.0 controller
When using the script with the HD6870 after a reboot, it results in the same Call Trace.
When executing the script a second time after the Call Trace, it doesn't give the Call Trace again.


Ignoring the Call Trace and trying to execute qemu results in Windows booting up but gives a BSOD when the animated Windows logo appears:
1. "Windows is loading files" appears
2. "Windows is starting", where the animated Windows logo should appear and then,
3. BSOD with PAGE_FAULT_IN_NONPAGED_AREA and STOP error 0x00000050

Qemu command line:

/usr/local/bin/qemu-system-x86_64 -enable-kvm -M q35 -m 2048 -cpu host -nographic \
-smp 2,sockets=1,cores=2,threads=1 -bios /usr/local/bin/bios.bin -vga none \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
-device vfio-pci,host=04:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
-device vfio-pci,host=04:00.1,bus=root.1,addr=00.1 \
-device vfio-pci,host=00:1a.0,bus=pcie.0 \
-device ahci,bus=pcie.0,id=ahci \
-drive file=/dev/vg00/win7gtx460.1,cache=none,id=disk,format=raw -device ide-hd,bus=ahci.0,drive=disk \
-drive file=/data/win7hp-sp1-x64.iso,id=isocd -device ide-cd,bus=ahci.1,drive=isocd \
-boot dc

Also disabled Intel GPU in BIOS, but that didn't help.

Thanks in advance.


----

Other things I noticed:
1. With the NoSnoop patch I don't get the following message anymore on my Nvidia GPU:

qemu-system-x86_64: -device vfio-pci,host=04:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: Warning, device 0000:04:00.0 does not support reset
qemu-system-x86_64: -device vfio-pci,host=04:00.1,bus=root.1,addr=00.1: Warning, device 0000:04:00.1 does not support reset

2. When compiling Alex' qemu-vfio I got an error:
ERROR: DTC not present
After installing libfdt-dev that error went away and I was able to compile.

3. When starting qemu without disks (like the command line above, but without the last three lines), it stays in the seabios screen because it has nothing to boot from. This looks logical to me.
But when a logical volume is mounted (as I did), it displays a message on the seabios screen:
[ 1033.718172] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
I was under the assumption the VM 'owns' the display and that no OS messages should be displayed there. Maybe it's because "quiet" was removed from the kernel line in grub.cfg .
This could also been seen in the BSOD screen, but in that case, the screen went up one line and nothing was printed. Didn't look any further into it.

Last edited by empie (2013-10-12 22:11:44)

Offline

#557 2013-10-12 20:03:59

aw
Member
Registered: 2013-10-04
Posts: 921
Website

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

I'm too lazy to try to quote the above, so...

The vfio-bind script in this thread is broken, it should not be unbinding devices bound to pcieport.  I can imagine a number of people could be having problems just due to this.  The report above shows a backtrace from pci_disable_device() from this.  We absolutely do not want root ports to be disabled.  Leave them bound to pcieport.  vfio-pci will let you do this.

BSOD - I'm noticing this too and it seems to be something broken in latest qemu/kvm when using "-cpu host".  Try dropping this parameter and just use the QEMU CPU type.

If you get host console messages out to the assigned graphics device, it's because the console driver you're using on the host doesn't make use of the VGA arbiter.  vgacon for example is this way.  It writes to VGA no matter where it's routed.  The device specific drivers generally do make use of the VGA arbiter, but it can be hit or miss there too.  With an i7 I assume your host VGA is IGD, so you should be using the i915 drivers, which as of v3.12-rc4 still uses the VGA arbiter correctly, but see a bit back in the thread about how that's soon to change.

The "does not support reset" messages are gone.  This is part of the new bus reset interface in v3.12.


http://vfio.blogspot.com
Looking for a more open forum to discuss vfio related uses?  Try https://www.redhat.com/mailman/listinfo/vfio-users

Offline

#558 2013-10-12 20:25:53

empie
Member
From: The Netherlands
Registered: 2013-06-15
Posts: 9

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

Hi Alex,
Will look into the vfio-bind script and qemu cpu type tomorrow. VGA arbiter is new to me, will take a look at that also.
I did blacklist the i915 driver. Will 'whitelist' i915 again.
Will post my progress here.
Thanks!

Offline

#559 2013-10-13 19:57:16

alphahere
Member
Registered: 2013-10-12
Posts: 7

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

Never could get xen working. Thanks to everyone that got this working and the excellent instructions. I spent about two weeks trying this new method for pass through with no luck but with the latest patches recently posted vfio vga-passthrough works perfectly. After reading all the horror stories about ASUS motherboards I thought that I may have a motherboard with a broken bios but apparently ASUS Z87 Pro has a working vt-d option with lastest bios.

ASUS Z87 Pro MotherBoard Bios Version 1405
Intel iGPU primary display
ASUS Radeon HD 6450 --> vga passthrough on VM. Also a nice bonus is
the HDMI audio on the HD 6450 is working great also.

HD 6450 works perfectly with AMD Catalyst 13.11 beta 10/08/2013 release.

Only problem is USB and this is off topic, I don't understand the new USB syntax for qemu. Could someone kindly update the examples for using USB in the first post because those examples don't work with qemu-git version? I have tried passing the usb devices to the VM but this does not work. I had to passthrough the whole USB device but still can't get USB hotplugging to work. Anyone have some updated examples using USB and USB hotplugging?

Lastly what about the iGPU patch for intel iGPU, when should be apply it and what will happen if it is not applied after the patch discussed previously is reverted?

Thanks ;-)

Offline

#560 2013-10-13 20:15:09

aw
Member
Registered: 2013-10-04
Posts: 921
Website

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

alphahere wrote:

Never could get xen working. Thanks to everyone that got this working and the excellent instructions. I spent about two weeks trying this new method for pass through with no luck but with the latest patches recently posted vfio vga-passthrough works perfectly. After reading all the horror stories about ASUS motherboards I thought that I may have a motherboard with a broken bios but apparently ASUS Z87 Pro has a working vt-d option with lastest bios.

ASUS Z87 Pro MotherBoard Bios Version 1405
Intel iGPU primary display
ASUS Radeon HD 6450 --> vga passthrough on VM. Also a nice bonus is
the HDMI audio on the HD 6450 is working great also.

HD 6450 works perfectly with AMD Catalyst 13.11 beta 10/08/2013 release.

Awesome, great to have success reports!

alphahere wrote:

Only problem is USB and this is off topic, I don't understand the new USB syntax for qemu. Could someone kindly update the examples for using USB in the first post because those examples don't work with qemu-git version? I have tried passing the usb devices to the VM but this does not work. I had to passthrough the whole USB device but still can't get USB hotplugging to work. Anyone have some updated examples using USB and USB hotplugging?

I usually just pass through specific devices using something like:

-device usb-host,hostbus=3,hostaddr=3

This does not support hotplug.  If you use vfio-pci to attach the USB devices, hotplug should work.  I'd recommend assigning the whole devices, ie. one full set of OHCI/UHCI functions and EHCI functions, mirroring the function layout of the host system.

alphahere wrote:

Lastly what about the iGPU patch for intel iGPU, when should be apply it and what will happen if it is not applied after the patch discussed previously is reverted?

Thanks ;-)

The revert will be in v3.12-rc5, it went in on Friday.  To restore behavior reapply 81b5c7bc8de3e6f63419139c2fc91bf81dea8a7d and 6e1b4fdad5157bb9e88777d525704aba24389bee.  Something like 'git show 81b5c7bc | patch -p1' should do it.


http://vfio.blogspot.com
Looking for a more open forum to discuss vfio related uses?  Try https://www.redhat.com/mailman/listinfo/vfio-users

Offline

#561 2013-10-13 20:44:15

empie
Member
From: The Netherlands
Registered: 2013-06-15
Posts: 9

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

Got i915 out of the blacklist and got no more OS messages in seabios and BSOD screen.
Took a look into vfio-bind script. Looks like it wants to unbind/bind all the other ID's in /sys/bus/pci/devices/0000\:04\:00.0/iommu_group/devices/. Now using only echo statements for the specific ID's. No more Call Trace.
Replacing -cpu host with -cpu SandyBridge got the VM started.

Offline

#562 2013-10-13 21:12:25

SpacePirate
Member
Registered: 2013-09-16
Posts: 55

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

Has anyone experienced this behaviour?

I tried to add the devices now manually to the vfio-pci driver, as shown in the vfio documentation.
I dont get the vfio-pci warning anymore, but this in dmesg:

[ 1344.776333] pcieport 0000:00:15.0: driver skip pci_set_master, fix it!
[ 1344.776340] vfio-pci 0000:06:00.0: enabling device (0000 -> 0003)
[ 1344.846595] vfio-pci 0000:06:00.1: enabling device (0000 -> 0002)

When i turn on the VM my screen goes black, when switching to tty2 and back again everything works fine again. except that i dont get any output on the screen attached to the passed-through GPU.
I cant seem to get any progress on that, any ideas?

Offline

#563 2013-10-13 21:29:26

nbhs
Member
From: Montevideo, Uruguay
Registered: 2013-05-02
Posts: 402

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

alphahere wrote:

Only problem is USB and this is off topic, I don't understand the new USB syntax for qemu. Could someone kindly update the examples for using USB in the first post because those examples don't work with qemu-git version? I have tried passing the usb devices to the VM but this does not work. I had to passthrough the whole USB device but still can't get USB hotplugging to work. Anyone have some updated examples using USB and USB hotplugging?

Works for me using qemu-git.

This is how i do it:

lsusb

Bus 007 Device 002: ID 1532:0039 Razer USA, Ltd 

then i add this line to qemu

-usb -usbdevice host:1532:0039

Offline

#564 2013-10-13 21:40:53

nbhs
Member
From: Montevideo, Uruguay
Registered: 2013-05-02
Posts: 402

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

aw wrote:

The vfio-bind script in this thread is broken, it should not be unbinding devices bound to pcieport.

empie wrote:

Got i915 out of the blacklist and got no more OS messages in seabios and BSOD screen.
Took a look into vfio-bind script. Looks like it wants to unbind/bind all the other ID's in /sys/bus/pci/devices/0000\:04\:00.0/iommu_group/devices/. Now using only echo statements for the specific ID's. No more Call Trace.

I fixed this on the first post, thanks

Last edited by nbhs (2013-10-13 21:50:27)

Offline

#565 2013-10-14 00:18:45

alphahere
Member
Registered: 2013-10-12
Posts: 7

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

Oops!!

USB problem was my fault. Sorry about that post. I went back and started checking everything again.

Forgot to compile USB support in qemu.  I setup a test  system to try this out and forgot to install libusb. Stupid mistake. Whatever.

ERROR: User requested feature libusb
       configure was not able to find it

Thanks!

Offline

#566 2013-10-14 02:56:21

alphahere
Member
Registered: 2013-10-12
Posts: 7

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

After the compiling USB support in qemu. I started getting BSOD in windows. I decided to go back and double check everything. I tested the following changes three times to verify the causes of the BSOD.

After compiling USB support in qemu immediately had BSOD with "-cpu host" and changing this option to "-cpu qemu64" stopped the BSOD.

Another BSOD was caused by the following line to enable hdmi audio on the radeon video card.
-device vfio-pci,host=01:00.1,bus=root.1,addr=00.1

Changed to the following and sound is working great again without BSOD.
-device vfio-pci,host=01:00.1,bus=pcie.0

Hope this helps someone.

Last edited by alphahere (2013-10-14 04:42:49)

Offline

#567 2013-10-15 06:50:36

risho
Member
Registered: 2011-09-06
Posts: 44

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

So, I'm wanting to get this set up on my rig, but I have an unlocked ivy bridge i5 which doesn't support vt-d, and I have an asus motherboard which isn't supported by linux at all, so I'm going to have to get a new mobo and a new cpu. So first off my question is, should I be looking to go for haswell, or should I stick with ivy bridge or even go for a sandy bridge? which is best supported? Also I need the most powerful cpu that I can get because I also play ps2 games and gc/wii games in an emulator (which is why i got the unlocked cpu to begin with).

So I'm thinking I'll go for an i7 haswell or an i7 ivy bridge basic.


Anyways I have a few other questions aswell. Do you need to have a seperate keyboard for the vm or can you just seemlessly run through the 2 vm's using the same keyboard/mouse?


And I only have 1 screen as of right now. Is it possible to have the vm output video through the dom0's graphics card but use the domu card for the processing? Or is there a practical way to vnc or something of the like so that you can have a single monitor setup?

For my graphics cards I'm going to be using an nvidia gtx580 and a fairly new radeon graphics card. the nvidia card is the better card so I would prefer to have that running in the domu and the radeon running in the dom0, but would it be better to have it running the other way around? sorry for the scrub questions, but I just want to get some answers before i start sinking cash into this.

also what z77 mobo's do you guys recommend? and how much power should my psu be able to put out to support this system?

edit: also can you control the audio of the vm via pulse audio volume control? Currently I'm controling the volume of all my software using that.

Last edited by risho (2013-10-15 08:48:19)

Offline

#568 2013-10-15 09:15:30

SpacePirate
Member
Registered: 2013-09-16
Posts: 55

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

risho wrote:

So, I'm wanting to get this set up on my rig, but I have an unlocked ivy bridge i5 which doesn't support vt-d, and I have an asus motherboard which isn't supported by linux at all, so I'm going to have to get a new mobo and a new cpu. So first off my question is, should I be looking to go for haswell, or should I stick with ivy bridge or even go for a sandy bridge? which is best supported? Also I need the most powerful cpu that I can get because I also play ps2 games and gc/wii games in an emulator (which is why i got the unlocked cpu to begin with).

So I'm thinking I'll go for an i7 haswell or an i7 ivy bridge basic.


Anyways I have a few other questions aswell. Do you need to have a seperate keyboard for the vm or can you just seemlessly run through the 2 vm's using the same keyboard/mouse?


And I only have 1 screen as of right now. Is it possible to have the vm output video through the dom0's graphics card but use the domu card for the processing? Or is there a practical way to vnc or something of the like so that you can have a single monitor setup?

For my graphics cards I'm going to be using an nvidia gtx580 and a fairly new radeon graphics card. the nvidia card is the better card so I would prefer to have that running in the domu and the radeon running in the dom0, but would it be better to have it running the other way around? sorry for the scrub questions, but I just want to get some answers before i start sinking cash into this.

also what z77 mobo's do you guys recommend? and how much power should my psu be able to put out to support this system?

edit: also can you control the audio of the vm via pulse audio volume control? Currently I'm controling the volume of all my software using that.


Afaik you cannot pass the Output of one GPU through the other. I guess it would be possible to achieve that by streaming the Image over IP to the Host, but i guess that isnt a good idea for gaming.

For the input question you can pass the Controller which controlls the Mouse/Keyboard to the VM or use Synergy, which nbhs mentioned a few pages earlier in this topic.

I dont think there is any difference in hardware support for VT-d for the different Core-i generations.

Offline

#569 2013-10-15 09:32:53

risho
Member
Registered: 2011-09-06
Posts: 44

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

is there any preference between intel and amd?

I'm actually considering getting an AMD FX-8350, since it looks like it can be oc'ed and still supports hardware passthrough.

another question I have is if I'm going to be using 2 dedicated graphics cards do i need to make sure that i get a motherboard that supports running 2 pci express slots at x16 concurantly?

can you guys recommend a good amd mobo and a good intel mobo that will support 2 powerful graphics cards running simultaneously?

edit:

I've done some reading and it really seems like amd pales in comparison for what I'm trying to do. Are there any unlocked intel cpu's that support vt-d?

edit2:

It looks like the ivy bridge e editions support vt-d including the unlocked versions.

can anyone confirm or deny this?


http://www.newegg.com/Product/Product.a … 6819116939 does this support vt-d?

Last edited by risho (2013-10-15 10:24:04)

Offline

#570 2013-10-15 11:17:25

SpacePirate
Member
Registered: 2013-09-16
Posts: 55

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

The CPU you linked supports VT-d, but it costs three times the price of a FX-8350 smile

Last edited by SpacePirate (2013-10-15 11:17:39)

Offline

#571 2013-10-15 11:31:18

SpacePirate
Member
Registered: 2013-09-16
Posts: 55

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

I just tried to pass through something else than my GPU (USB3.0 Controller) - that works perfectly fine. So I the vfio works, with script, iommu etc. Yet I cannot produce any output from the passed through GPU.

EDIT: Some progress! When i start the VM using the test-command from the first post, the screen on the passed-through GPU actually turns on and the fans of the graphicscard! Unfortunatly it doesnt go any further than that. Also this output on dmesg on the host (it should start to get interesting from line 1050 on). When i dont shut down the qemu process, this crashes my host, it goes on with these statements:

AMD-Vi: Completion-Wait loop timed out

and

AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=06:00.0 address=0x0000000438544b90]

and the input devices start to lag behind, and at some point the screen starts only showing dmesg output....

Last edited by SpacePirate (2013-10-15 22:02:09)

Offline

#572 2013-10-16 07:16:51

1Samildanach
Member
Registered: 2012-06-18
Posts: 11

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

risho wrote:

And I only have 1 screen as of right now. Is it possible to have the vm output video through the dom0's graphics card but use the domu card for the processing? Or is there a practical way to vnc or something of the like so that you can have a single monitor setup?

One option is to use a KVM switch. The short version is that you plug it into the appropriate places, then press a button to switch your keyboard, monitor, and mouse between the two. I have been using, and satisfied with, an Aten CS682, but there are other models and brands out there which may better suite your individual needs.

risho wrote:

edit: also can you control the audio of the vm via pulse audio volume control? Currently I'm controling the volume of all my software using that.

Personally, I've opted for getting a dedicated sound card and passing the onboard through to the VM, and having audio hooked into the KVM switch along with all the rest.

Offline

#573 2013-10-16 08:02:58

risho
Member
Registered: 2011-09-06
Posts: 44

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

1Samildanach wrote:

One option is to use a KVM switch. The short version is that you plug it into the appropriate places, then press a button to switch your keyboard, monitor, and mouse between the two. I have been using, and satisfied with, an Aten CS682, but there are other models and brands out there which may better suite your individual needs.

i always wondered about something like that. nice to know that's what it's called. i'll definately consider that thanks!

Personally, I've opted for getting a dedicated sound card and passing the onboard through to the VM, and having audio hooked into the KVM switch along with all the rest.


well i use a headset so and i want to be able to seemlessly switch between vm and host while using the same audio. like having a game using sound in the vm and talking on skype on the host simultaneously.

Offline

#574 2013-10-16 08:52:21

1Samildanach
Member
Registered: 2012-06-18
Posts: 11

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

risho wrote:

i always wondered about something like that. nice to know that's what it's called. i'll definately consider that thanks!

No worries smile. It does make for a mess of cables, but that's a minor quibble, and the advantages (no mess of software, for one thing) far outweighs it.

risho wrote:

well i use a headset so and i want to be able to seemlessly switch between vm and host while using the same audio. like having a game using sound in the vm and talking on skype on the host simultaneously.

Ach, that does complicate matters. My switch allows one to switch just KVM or audio focus (so have audio coming from one machine while doing stuff to the other), but that still doesn't do you any good if want sound from both at once. However, it can certainly be done with software; all you need is something that can stream your audio output from Windows over the (virtual) network to Arch. I just decided it was more complication than I could be bothered with when I already had a switch tongue.

The obvious 'simple' solution for Skype is to use the Windows client, but I imagine you have other examples in mind as well.

Offline

#575 2013-10-16 09:30:54

risho
Member
Registered: 2011-09-06
Posts: 44

Re: KVM VGA-Passthrough using the new vfio-vga support in kernel =>3.9

so, i've decided I would really like to get an intel 4930k, and I even found a motherboard that I was looking at getting. it's EVGA X79 Dark. I wasn't sure if it would support vt-d and linux so I contacted their customer service and asked them directly. they emailed me back:

Hi ****,

The motherboard will support Intel Visualization Technology. Unfortunately we do not support or have any drivers for Linux and only have drivers and support for Windows.

Regards,
EVGA

I asked them SPECIFICALLY if it supported vt-d, and that seems to say that it does, but it doesn't have drivers to support linux. does that mean it won't work or does that just mean it doesn't support it actively and that the kernel would have to support it itself?

anyone have any idea, and if it won't work does anyone know a 2011 slot mobo that will work and supports ivy bridge e(not just sandy bridge)?






No worries smile. It does make for a mess of cables, but that's a minor quibble, and the advantages (no mess of software, for one thing) far outweighs it.

i'm sure all of us are intimately firmillial with a mess of cables hahaha. my cable set it would probably scare some people away.

Last edited by risho (2013-10-16 09:32:12)

Offline

Board footer

Powered by FluxBB