Hi,
You may want to try modprobe i915 just in case something else is preventing it from becoming loaded automatically. 

-Tom

On Fri, Sep 1, 2017 at 2:32 PM Richard Lagler <rilagler@gmail.com> wrote:
Hi Alex,

Thanks for the hin, I have included it but it still doesn't become
autoloaded in initramfs. This is my /boot/grub/grub.cfg

menuentry 'Gentoo GNU/Linux' --class gentoo --class kvmgt --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-simple-c32b2c$
         load_video
         if [ "x$grub_platform" = xefi ]; then
                 set gfxpayload=keep
         fi
     insmod gzio
         insmod part_gpt
         insmod ext2
         set root='hd0,gpt11'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11
--hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11  9c5834cd-72ff-49f5-8$
         else
           search --no-floppy --fs-uuid --set=root
9c5834cd-72ff-49f5-8ddb-f584a6881a7c
         fi
     echo    'Linux 4.12.5-gentoo wird geladen …'
         linux   /vmlinuz-4.12.5-gentoo root=/dev/sda8 ro
i915.enable_gvt=1 kvm.ignore_msrs=1 intel_iommu=igfx_off
init=/usr/lib/systemd/systemd
         initrd  /initramfs-genkernel-x86_64-4.12.5-gentoo
}


No mdev_supported_types and no kvmgt module in lsmod. What could be missing?

Thank you!
Regards
Richard


On 01.09.2017 18:58, Alex Williamson wrote:
> On Fri, 1 Sep 2017 18:45:40 +0200
> Richard Lagler <rilagler@gmail.com> wrote:
>
>> Hello,
>>
>> I struggle to setup the kvmgt correctly, the Github docu says there
>> should be a mdev_supported_types directory, what is missing for my
>> graphic card identifier path.
>>
>> lspci shows 00:02.0 VGA compatible controller: Intel Corporation HD
>> Graphics 520 (rev 07) for my card, but
>>
>> ls -la /sys/bus/pci/devices/0000\:02\:00.0/ doesn't show it. I looked
>> for it in other identifier subfolders too.
>>
>>
>> My notebook is a Lenovo Yoga 900 with an Intel® Core™ i7-6500U CPU @
>> 2.50GHz × 4 and the Intel® HD Graphics 520 (Skylake GT2) graphics card.
>>
>> I have compiled the appropriate kernel flags CONFIG_DRM_I915_GVT,
>> CONFIG_DRM_I915_GVT_KVMGT, CONFIG_DRM_I915_GVT_XENGT, CONFIG_VFIO_MDEV
>> and CONFIG_VFIO_MDEV_DEVICE in kernel 4.12.5 for Gentoo Linux and can
>> modprobe the kvmgt, but it doesn't autoload at boot.
> You need for i915 to be loaded with the enable_gvt option and kvmgt
> needs to be available at the point where i915 is intializing.  Loading
> it at any point later does nothing.  This generally means you need to
> force kvmgt.ko into your initramfs.  You can either use modprobe.d or
> kernel commandline (i915.enable_gvt=1) to add the module option.
> Thanks,
>
> Alex

_______________________________________________
iGVT-g mailing list
iGVT-g@lists.01.org
https://lists.01.org/mailman/listinfo/igvt-g