[vfio-users] pass-through gpu to guest, but only once?!

Alex Williamson alex.l.williamson at gmail.com
Fri Sep 25 16:29:32 UTC 2015


On Fri, Sep 25, 2015 at 9:55 AM, Blank Field <ihatethisfield at gmail.com>
wrote:

> Dump the ROM using envytools(nvagetvbios) and append it to your -device
> vfio-pci line via romfile=filename.rom
>
You don't even need envytools, if it works once, the ROM must be accessible
once, so find the rom file in sysfs
(/sys/bus/pci/devices/0000:01:00.0/rom), echo 1 > rom, cat rom > ~/my.rom,
echo 0 > rom.  Then use this with the romfile option.


> On Sep 25, 2015 6:45 PM, "Fireball Firebomb" <Firebomb at gmx.de> wrote:
>
>> Hi,
>> i have a patched kernel version 4.1.6-1 with the ACS override patch and
>> i915 VGA arbiter patch and enabled them with the correct boot parameter.
>>
>> I can pass-through my Nvidia card to the virtual machine (using seabios),
>> but only once. After that I get an error message:
>> "qemu-system-x86_64: vfio-pci: Cannot read device rom at 0000:01:00.0
>> Device option ROM contents are probably invalid (check dmesg).
>> Skip option ROM probe with rombar=0, or load from file with romfile=".
>> Until I reboot the host.
>>
>> Start script:
>>
>> vfio-bind 0000:01:00.0 0000:01:00.1
>>
>> qemu-system-x86_64 -enable-kvm -m 1024 -cpu host,kvm=off \
>>
>> -smp 4,sockets=1,cores=4,threads=1 \
>>
>> -device vfio-pci,host=01:00.0,x-vga=on -device vfio-pci,host=01:00.1 \
>>
>> -vga none
>>
>>
>>
>> vfio-bind:
>>
>> #!/bin/bash
>>
>> modprobe vfio-pci
>>
>> for dev in "$@"; do
>>
>> vendor=$(cat /sys/bus/pci/devices/$dev/vendor)
>>
>> device=$(cat /sys/bus/pci/devices/$dev/device)
>>
>> if [ -e /sys/bus/pci/devices/$dev/driver ]; then
>>
>> echo $dev > /sys/bus/pci/devices/$dev/driver/unbind
>>
>> fi
>>
>> echo $vendor $device > /sys/bus/pci/drivers/vfio-pci/new_id
>>
>> done
>>
>>
>> Is there a fix for this problem?
>>
>> _______________________________________________
>> vfio-users mailing list
>> vfio-users at redhat.com
>> https://www.redhat.com/mailman/listinfo/vfio-users
>>
>
> _______________________________________________
> vfio-users mailing list
> vfio-users at redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20150925/0afbcdb4/attachment.htm>


More information about the vfio-users mailing list