[vfio-users] Unbind Vfio Passthrough = general protection fault
Okky Hendriansyah
okky at nostratech.com
Tue Sep 22 00:11:11 UTC 2015
Have you tried without -daemonize switch? I had issues when running with -daemonize. When I shutdown the VM and I immediately start the VM again using the same command, it complained about the devices aren't available to be assigned, forgot the real wording of it.
Then I tried to do without -daemonize. It took quite some time from the display got off after issuing shutdown from inside the VM to QEMU process finally exits to the Terminal again. So probably 1/10 of your attempts has the correct timing in unbinding the device when it is ready to be unbinded.
Best regards,
Okky Hendriansyah
> On Sep 22, 2015, at 05:46, nahoxou at netcourrier.com wrote:
>
>
>> Tell me please If need more detail information.
>
> >What script or commands are you using to unbind the device? Does only stopping the VM trigger the issue or is the unbind required?
>
> I put a sleep command between qemu stop and unbind so i think it is more about unbind...
>
> I use the recommended command from all vfio web tutorials.
> bind:
> for dev in "0000:01:00.0" "0000:01:00.1"; 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
>
>
> unbind :
> for dev in "0000:01:00.0" "0000:01:00.1"; 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
> done
>
>
> Successful unbind command works rarely maybe 1/10 times.
>
>
>
>
> _______________________________________________
> 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/20150922/cd27b2c9/attachment.htm>
More information about the vfio-users
mailing list