[vfio-users] GTX 770 Code 43
sL1pKn07 SpinFlo
sl1pkn07 at gmail.com
Fri Mar 31 20:03:59 UTC 2017
try set
<hyperv>
<vendor_id state='on' value='SomeString'/>
</hyperv>
2017-03-31 21:24 GMT+02:00 Patrick O'Callaghan <poc at usb.ve>:
> On Sun, 2017-03-26 at 08:18 -0600, Alex Williamson wrote:
>> On Sat, Mar 25, 2017 at 1:12 PM, Tom Smithhisler <tomsmithhisler at gmail.com>
>> wrote:
>>
>> > Hello,
>> >
>> > I’m trying to work through yet another Code 43 error. I’ve followed Alex
>> > Williamson’s VFIO blog to try to pass through my GPU to a guest. My GPU is
>> > an NVIDIA GTX 770 and the guest is Windows 10. My host is Fedora 25 and I’m
>> > using the vfio-pci driver. I’ve manually installed the latest NVIDIA driver
>> > (378.92) from their website.
>> >
>> >
>>
>> This XML looks good to me, are you perhaps trying to assign the host
>> primary graphics or letting the device be claimed by drivers in the host?
>> Anything in dmesg on the host? Thanks,
>
> I'm getting a very similar problem in a similar setup. Fedora 25,
> Windows 10 VM, Nvidia GTX1050 GPU. This worked until recently but I had
> to rebuild the VM after a crash and now I'm getting the code 43 error.
>
> This is my XML file:
>
> <domain type='kvm'>
> <name>NewWin10</name>
> <uuid>98bd845f-366b-4988-a6c1-c17b69fea84b</uuid>
> <memory unit='KiB'>8388608</memory>
> <currentMemory unit='KiB'>8388608</currentMemory>
> <memoryBacking>
> <hugepages/>
> </memoryBacking>
> <vcpu placement='static'>4</vcpu>
> <cputune>
> <vcpupin vcpu='0' cpuset='2'/>
> <vcpupin vcpu='1' cpuset='3'/>
> <vcpupin vcpu='2' cpuset='6'/>
> <vcpupin vcpu='3' cpuset='7'/>
> </cputune>
> <resource>
> <partition>/machine</partition>
> </resource>
> <os>
> <type arch='x86_64' machine='pc-i440fx-2.7'>hvm</type>
> <loader readonly='yes' type='pflash'>/usr/share/edk2/ovmf/OVMF_CODE.fd</loader>
> <nvram>/var/lib/libvirt/qemu/nvram/NewWin10_VARS.fd</nvram>
> </os>
> <features>
> <acpi/>
> <apic/>
> <kvm>
> <hidden state='on'/>
> </kvm>
> <vmport state='off'/>
> </features>
> <cpu mode='host-passthrough'>
> <topology sockets='1' cores='2' threads='2'/>
> </cpu>
> <clock offset='localtime'>
> <timer name='rtc' tickpolicy='catchup'/>
> <timer name='pit' tickpolicy='delay'/>
> <timer name='hpet' present='no'/>
> <timer name='hypervclock' present='yes'/>
> </clock>
> <on_poweroff>destroy</on_poweroff>
> <on_reboot>restart</on_reboot>
> <on_crash>restart</on_crash>
> <pm>
> <suspend-to-mem enabled='no'/>
> <suspend-to-disk enabled='no'/>
> </pm>
> <devices>
> <emulator>/usr/bin/qemu-kvm</emulator>
> <disk type='file' device='disk'>
> <driver name='qemu' type='qcow2' cache='writeback' io='threads'/>
> <source file='/home/poc/Win10/New-Windows10.qcow2'/>
> <target dev='vda' bus='virtio'/>
> <boot order='1'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
> </disk>
> <disk type='file' device='cdrom'>
> <driver name='qemu' type='raw'/>
> <target dev='hdb' bus='ide'/>
> <readonly/>
> <address type='drive' controller='0' bus='0' target='0' unit='1'/>
> </disk>
> <controller type='usb' index='0' model='ich9-ehci1'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
> </controller>
> <controller type='usb' index='0' model='ich9-uhci1'>
> <master startport='0'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
> </controller>
> <controller type='usb' index='0' model='ich9-uhci2'>
> <master startport='2'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
> </controller>
> <controller type='usb' index='0' model='ich9-uhci3'>
> <master startport='4'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
> </controller>
> <controller type='pci' index='0' model='pci-root'/>
> <controller type='ide' index='0'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
> </controller>
> <controller type='virtio-serial' index='0'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
> </controller>
> <interface type='network'>
> <mac address='52:54:00:1d:55:89'/>
> <source network='default'/>
> <model type='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
> </interface>
> <serial type='pty'>
> <target port='0'/>
> </serial>
> <console type='pty'>
> <target type='serial' port='0'/>
> </console>
> <channel type='spicevmc'>
> <target type='virtio' name='com.redhat.spice.0'/>
> <address type='virtio-serial' controller='0' bus='0' port='1'/>
> </channel>
> <input type='mouse' bus='ps2'/>
> <input type='keyboard' bus='ps2'/>
> <graphics type='spice' autoport='yes' listen='127.0.0.1'>
> <listen type='address' address='127.0.0.1'/>
> <image compression='off'/>
> </graphics>
> <sound model='ich6'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
> </sound>
> <video>
> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
> </video>
> <hostdev mode='subsystem' type='pci' managed='yes'>
> <source>
> <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
> </source>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
> </hostdev>
> <hostdev mode='subsystem' type='pci' managed='yes'>
> <source>
> <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
> </source>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
> </hostdev>
> <redirdev bus='usb' type='spicevmc'>
> <address type='usb' bus='0' port='2'/>
> </redirdev>
> <redirdev bus='usb' type='spicevmc'>
> <address type='usb' bus='0' port='3'/>
> </redirdev>
> <memballoon model='virtio'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
> </memballoon>
> </devices>
> <seclabel type='dynamic' model='selinux' relabel='yes'/>
> <seclabel type='dynamic' model='dac' relabel='yes'/>
> </domain>
>
> I don't see anything obvious in dmesg but perhaps a hint as to what to
> look for would help. I'm using a recent kernel (4.10.6).
>
> poc
>
> _______________________________________________
> vfio-users mailing list
> vfio-users at redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
More information about the vfio-users
mailing list