On Fri, 1 Sep 2017 18:45:40 +0200
Richard Lagler <rilagler(a)gmail.com> wrote:
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.