<p dir="ltr">Try spoofing hyper-v hw vendor id as noted in a neighbor thread. It fools the nvidia driver and it doesn't disable itself since it can't detect if it runs inside a VM. </p>
<div class="gmail_quote">On Oct 5, 2015 6:55 AM,  <<a href="mailto:root@yoshi.dynu.com">root@yoshi.dynu.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi vifo-users,<br>
<br>
i really hope you can help me with this task.<br>
<br>
I run Arch linux as a host with two guest VMs on it.<br>
<br>
My machine:<br>
Intel Xeon X5650<br>
Sapphire Pure Black X58<br>
24 GB Ram DDR3<br>
Nvidia GT 210 (host)<br>
Nvidia GT 9600 (reserved for guest)<br>
Nvidia GTX 680 (reserved for guest)<br>
<br>
I use qemu 2.4.5 and linux-vfio-lts kernel 4.1.9-1<br>
<br>
kernel flags:<br>
<br>
intel_iommu=on vfio-pci.ids=10de:1180,10de:0622,8086:3a3e intel_iommu=verbose pcie_acs_override=downstream i915.enable_hd_vgaarb=1<br>
<br>
i run the Win10-Vm like this:<br>
<br>
sudo qemu-system-x86_64 -enable-kvm -M q35 -m 8192 -cpu host,kvm=off \<br>
-smp 4,sockets=1,cores=2,threads=2 \<br>
-boot d \<br>
-drive file=Downloads/Win10_German_x64.iso,if=ide,index=1,media=cdrom \<br>
-drive file=Downloads/virtio-win.iso,if=ide,index=2,media=cdrom \<br>
-drive file=testII.img,if=virtio \<br>
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=rootbus \<br>
-device vfio-pci,host=05:00.0,bus=rootbus,addr=00.0,multifunction=on,x-vga=on \<br>
-device vfio-pci,host=00:1b.0,bus=rootbus,addr=00.1 \<br>
-usbdevice host:046d:c52b \<br>
-usbdevice host:045e:0291 \<br>
-vga none -vnc :5 -monitor stdio<br>
<br>
where 05:00.0 is the GTX 680 and 00:1b.0 is my onboard ALC 892 sound card.<br>
<br>
As soon as i install the nvidia drivers i get a code 43 for the card. I disabled the autoupdate of the drivers since windows installed 355.xx drivers over the installed 377.88 drivers (i read that there are problems with the newer ones).<br>
<br>
What bugs me most is that it run correctly for a while (valley benchmark and even GTA 5 run flawlessly) and then broke again unfixable.<br>
<br>
I also reinstalled windows (many times), tried different configurations, but nothing brought the GTX 680 back to life.<br>
<br>
What i tried (and remember) so far:<br>
<br>
q35/440fx machine -> code 43<br>
adding the card directly to pcie.0-bus -> code 43<br>
adding a emulated gpu as primary gpu -> no screen on connected monitor, code 43<br>
flashed a uefi-compatible Bios on the card and tried OVMF -> no screen<br>
<br>
Let me know if you need any more information.<br>
<br>
I really hope you can help me to get it to work (again... this bothers me most of all.. that it worked and then broke out of nothing...)<br>
<br>
Cheers<br>
<br>
_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
</blockquote></div>