<div dir="ltr">it's using qemu 1.2 , i tried the newest qemu , version 2.8 , the problem remains. </div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-10 22:08 GMT+08:00 Alex Williamson <span dir="ltr"><<a href="mailto:alex.williamson@redhat.com" target="_blank">alex.williamson@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 10 Mar 2017 10:42:28 +0800<br>
rhett rhett <<a href="mailto:rhett.kernel@gmail.com">rhett.kernel@gmail.com</a>> wrote:<br>
<br>
> sorry , update infomation right now<br>
><br>
><br>
> i installed centos7.3 at my 8 gpus machine yesterday, and i made a<br>
> successful passthrough, the vm guest os can use gpu with no problem. so i<br>
> think this is a software problem, i need to patch some patch.<br>
><br>
> i also made a test in my 4 gpus machine without any software change, the<br>
> result is success. the 4 gpus are attached at pci root without pcie switch<br>
> , so , i think the software problem have some correlation with pcie switch .<br>
><br>
> thank you Alex .<br>
><br>
> [root@64 /data]# lspci|grep NV<br>
> 04:00.0 3D controller: NVIDIA Corporation Device 17fd (rev a1)<br>
<br>
</span>Tesla M40<br>
<span class=""><br>
> 05:00.0 3D controller: NVIDIA Corporation Device 1b38 (rev a1)<br>
<br>
</span>Tesla P40<br>
<span class=""><br>
> 08:00.0 3D controller: NVIDIA Corporation Device 1b38 (rev a1)<br>
> 09:00.0 3D controller: NVIDIA Corporation Device 1b38 (rev a1)<br>
> 85:00.0 3D controller: NVIDIA Corporation Device 1b38 (rev a1)<br>
> 86:00.0 3D controller: NVIDIA Corporation Device 17fd (rev a1)<br>
> 89:00.0 3D controller: NVIDIA Corporation Device 1b38 (rev a1)<br>
> 8a:00.0 3D controller: NVIDIA Corporation Device 1b38 (rev a1)<br>
<br>
</span>Note that you have all of these in 3D mode, you may need to put these<br>
into VGA mode.  NVIDIA provides tools to do this in the host.<br>
<span class=""><br>
> [root@64 /data]# lspci -t<br>
> -+-[0000:ff]-+-08.0<br>
>  |           +-08.2<br>
>  |           +-08.3<br>
>  |           +-09.0<br>
<br>
</span>[snip... not useful w/o info per devices]<br>
<div><div class="h5"><br>
> and the xml<br>
><br>
> <domain type='kvm'><br>
>   <name>win</name><br>
>   <uuid>a2021423-89d8-4a33-aaa5-<wbr>07102ae7ad4e</uuid><br>
>   <memory unit='KiB'>8388608</memory><br>
>   <currentMemory unit='KiB'>8388608</<wbr>currentMemory><br>
>   <vcpu placement='static' cpuset='0-8'>8</vcpu><br>
>   <sysinfo type='smbios'><br>
>     <system><br>
>       <entry name='serial'>21aa32e5-8233-<wbr>40d4-b323-128824f6becf</entry><br>
>       <entry name='uuid'>a2021423-89d8-<wbr>4a33-aaa5-07102ae7ad4e</entry><br>
>     </system><br>
>   </sysinfo><br>
>   <os><br>
>     <type arch='x86_64' machine='pc'>hvm</type><br>
>     <boot dev='hd'/><br>
>     <smbios mode='sysinfo'/><br>
>   </os><br>
>   <features><br>
>     <acpi/><br>
>     <apic/><br>
>     <pae/><br>
>     <hap/><br>
>     <hyperv><br>
>       <relaxed state='on'/><br>
>     </hyperv><br>
>   </features><br>
>   <cpu><br>
>     <topology sockets='2' cores='6' threads='2'/><br>
>   </cpu><br>
>   <clock offset='localtime'><br>
>     <timer name='pit' tickpolicy='delay'/><br>
>     <timer name='rtc' tickpolicy='catchup' track='guest'/><br>
>     <timer name='hpet' present='no'/><br>
>   </clock><br>
>   <on_poweroff>destroy</on_<wbr>poweroff><br>
>   <on_reboot>restart</on_reboot><br>
>   <on_crash>restart</on_crash><br>
>   <devices><br>
>     <emulator>/usr/local/bin/qemu-<wbr>system-x86_64</emulator><br>
<br>
</div></div>Running custom QEMU, what version is this?<br>
</blockquote></div><br></div>