<div dir="ltr">I don't see that you're doing anything about hiding KVM.<div><br></div><div><features></div><div>  ...</div><div>  <kvm></div><div>    <hidden state='on'/></div><div>  </kvm></div><div>  ...</div><div></features></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 10:31 AM, Cepheus <span dir="ltr"><<a href="mailto:atair.aquila@hushmail.com" target="_blank">atair.aquila@hushmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am trying to build a gaming guest (Ubuntu, Mint, SteamOS or something<br>
Ubuntu-LTS-based) on a gentoo host. The host is mostly gentoo amd64,<br>
hardened kernel (but with some options disabled to not get in the way),<br>
PIC/PIE and SSP toolchain. Relevant versions are:<br>
<br>
kernel-4.4.8<br>
libvirt-1.3.4<br>
qemu-2.5.1<br>
<br>
The UEFI image is from here, as of 2016-06-24:<br>
<a href="https://www.kraxel.org/repos/jenkins/edk2/" rel="noreferrer" target="_blank">https://www.kraxel.org/repos/jenkins/edk2/</a><br>
<br>
Two nvidia graphics cards: The passive one (no fan) is a GeForce GTX 750<br>
Ti. Used by the host. The active one - a GeForce GTX 750 - is "hidden"<br>
from the host via pci-stub.ids boot parameter and assigned to the guest<br>
(both the video and the audio device, which share one IOMMU group, with<br>
no ther devices in the group). The card is UEFI capable, according to<br>
the test program from here:<br>
<a href="http://vfio.blogspot.de/2014/08/does-my-graphics-card-rom-support-efi.html" rel="noreferrer" target="_blank">http://vfio.blogspot.de/2014/08/does-my-graphics-card-rom-support-efi.html</a><br>
<br>
I can install Ubuntu 16.04 fine and it works, as long as it uses the<br>
nouveau driver. The nvidia driver is listed in "Additional drivers" as<br>
compatible and can be installed, but on guest reboot the X server cannot<br>
use the card.<br>
<br>
These dmesg lines from the guest appear relevant:<br>
<br>
[    4.948877] NVRM: RmInitAdapter failed! (0x23:0x56:464)<br>
[    4.949354] NVRM: rm_init_adapter failed for device bearing minor<br>
number 0<br>
<repeated 12 times><br>
<br>
Xorg.0.log says:<br>
<br>
[     9.285] (EE) NVIDIA(GPU-0): The NVIDIA GPU at PCI:0:2:0 is not<br>
supported by the 361.42<br>
[     9.285] (EE) NVIDIA(GPU-0):     NVIDIA driver.<br>
[     9.285] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA<br>
graphics device!<br>
<br>
Full logs are linked below.<br>
<br>
I am sure driver versions 361.* support GPUs in the 700 range. The host<br>
has nearly the same configuration with nvidia-drivers-361.28.<br>
<br>
When I try to start the guest with "nomodeset" kernel parameter, the<br>
host hangs. Not even Alt+PrintScrn+REISUB is possible.<br>
<br>
CPU is a Core i7 5930K, on a X99A mainboard (MSI X99A Gaming 7).<br>
<br>
Before I start aimlessly changing things: Does anyone have an idea how<br>
to make it work, with nvidia-drivers in the guest?<br>
<br>
Things I could try:<br>
- update kernel<br>
- update libvirt<br>
- update qemu<br>
- guest boot options: acpi=off, noacpi, noapic, nolapic, vmalloc=xM, ...?<br>
- switch to non-hardened host kernel<br>
- switch to non-hardened host toolchain (will take a while to rebuild<br>
everything)<br>
- try other distributions as guest<br>
- other version of guest nvidia driver<br>
- switch the graphics card for the guest<br>
<br>
-<br>
Guest dmesg: <a href="https://bpaste.net/show/719a56868947" rel="noreferrer" target="_blank">https://bpaste.net/show/719a56868947</a><br>
Guest lsmod -k: <a href="https://bpaste.net/show/d9b6dc11bf71" rel="noreferrer" target="_blank">https://bpaste.net/show/d9b6dc11bf71</a><br>
Guest lspci: <a href="https://bpaste.net/show/18d489d5f77c" rel="noreferrer" target="_blank">https://bpaste.net/show/18d489d5f77c</a><br>
Guest Xorg.0.log: <a href="https://bpaste.net/show/e19d4bd301a3" rel="noreferrer" target="_blank">https://bpaste.net/show/e19d4bd301a3</a><br>
Guest configuration: <a href="https://bpaste.net/show/b2862886ee84" rel="noreferrer" target="_blank">https://bpaste.net/show/b2862886ee84</a><br>
Host kernel config: <a href="https://bpaste.net/show/7536e18f0131" rel="noreferrer" target="_blank">https://bpaste.net/show/7536e18f0131</a><br>
-<br>
<br>
<br>
Many thanks!<br>
<br>
Kai<br>
<br>
_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com">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><br></div>