Comment 11 for bug 1276719

Revision history for this message
Indiana (myindiana-m) wrote :

Hi, the output in attachment.

In the syslog i do not see any DENIED log. I think apparmor in complain mode for libvirt for tests that i did earlier. I will check this.
I added the output in attachment and added also the qemu log for this VM. There i see 2 different messages. By the first attempt i'll tried to start the vm after a Fresh reboot of the host. By the second attempt i get the permission denied after i runned a small script to do the vfio binding.

#!/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