Jump to content
Reckless Maker

Can't Pass Through Primary GPU - Failed to mmap

5 posts in this topic Last Reply

Recommended Posts

Hello All,

 

Now that my Ryzen build is stable on its own, I got back to setting up the Windows VM. On 9.3 I was able to pass through the primary GPU to Ubuntu just fine but now nothing happens when I start the VM. The only thing in the log is this:

 

2017-11-02T05:24:41.340314Z qemu-system-x86_64: -device vfio-pci,host=09:00.0,id=hostdev0,bus=pci.4,addr=0x0: Failed to mmap 0000:09:00.0 BAR 0. Performance may be slow

 

Here's the whole log

2017-11-02 05:24:41.132+0000: starting up libvirt version: 3.8.0, qemu version: 2.10.1, hostname: Tower
LC_ALL=C PATH=/bin:/sbin:/usr/bin:/usr/sbin HOME=/ QEMU_AUDIO_DRV=none /usr/local/sbin/qemu -name guest=Ubuntu,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-2-Ubuntu/master-key.aes -machine pc-q35-2.7,accel=kvm,usb=off,dump-guest-core=off,mem-merge=off -cpu host -drive file=/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=/etc/libvirt/qemu/nvram/d2a41e98-3ad6-bc89-eec2-43da9f3aac9e_VARS-pure-efi.fd,if=pflash,format=raw,unit=1 -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid d2a41e98-3ad6-bc89-eec2-43da9f3aac9e -display none -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-2-Ubuntu/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -boot strict=on -device pcie-root-port,port=0x8,chassis=1,id=pci.1,bus=pcie,media=cdrom,id=drive-sata0-0-0,readonly=on -device ide-cd,bus=ide.0,drive=drive-sata0-0-0,id=sata0-0-0,bootindex=2 -netdev tap,fd=27,id=hostnet0,vhost=on,vhostfd=29 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:a0:c2:5e,bus=pci.1,addr=0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/domain-2-Ubuntu/org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 -device vfio-pci,host=09:00.0,id=hostdev0,bus=pci.4,addr=0x0 -device usb-host,hostbus=1,hostaddr=3,id=hostdev1,bus=usb.0,port=1 -device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 -msg timestamp=on
2017-11-02 05:24:41.132+0000: Domain id=2 is tainted: high-privileges
2017-11-02 05:24:41.132+0000: Domain id=2 is tainted: host-cpu
2017-11-02T05:24:41.178147Z qemu-system-x86_64: -chardev pty,id=charserial0: char device redirected to /dev/pts/0 (label charserial0)
2017-11-02T05:24:41.340314Z qemu-system-x86_64: -device vfio-pci,host=09:00.0,id=hostdev0,bus=pci.4,addr=0x0: Failed to mmap 0000:09:00.0 BAR 0. Performance may be slow

 

tower-diagnostics-20171102-1852.zip

Share this post


Link to post

I got mine to work after a BIOS update. It worked for a week then I opened up the system to MOVE my M2 drive to a different port. After rebooting, I lost the GPU passthrough. I did not make any changes to the BIOS and returning the M2 to the original position didn't help.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.