Compile kernel modules (KVMGT+VFIO_MDEV)

Kernels & Hardware, configuring network, installing services

Compile kernel modules (KVMGT+VFIO_MDEV)

Postby newcomer » 2019-09-17 10:51

Good afternoon,

I am using Debian 10 (kernel x86_64 Linux 4.19.0-6-amd64) at Dell laptop processor i7500U. Laptop model Inspiron 7460 with two graphic cards. As i understand 7th gen supports this technology.
Want to get intel gvt-g working.
Config file was setup like this

Code: Select all
CONFIG_DRM_I915_USERPTR=y
CONFIG_DRM_I915_GVT=y
CONFIG_DRM_I915_GVT_KVMGT=m

CONFIG_VFIO_NOIOMMU is not set

CONFIG_VFIO_MDEV=m
CONFIG_VFIO_MDEV_DEVICE=m

CONFIG_VHOST_NET=m

I successfully compiled vfio_mdev moudule and installed it in the system. But with KVMGT module output is like this

Code: Select all
  CC [M]  drivers/gpu/drm/i915/gvt/dmabuf.o
  CC [M]  drivers/gpu/drm/i915/gvt/page_track.o
  CC [M]  drivers/gpu/drm/i915/intel_lpe_audio.o
  LD [M]  drivers/gpu/drm/i915/i915.o
  Building modules, stage 2.
  MODPOST 2 modules
WARNING: "mdev_set_drvdata" [drivers/gpu/drm/i915/gvt/kvmgt.ko] undefined!
WARNING: "mdev_unregister_device" [drivers/gpu/drm/i915/gvt/kvmgt.ko] undefined!
WARNING: "mdev_dev" [drivers/gpu/drm/i915/gvt/kvmgt.ko] undefined!
WARNING: "mdev_register_device" [drivers/gpu/drm/i915/gvt/kvmgt.ko] undefined!
WARNING: "mdev_get_drvdata" [drivers/gpu/drm/i915/gvt/kvmgt.ko] undefined!
WARNING: "mdev_parent_dev" [drivers/gpu/drm/i915/gvt/kvmgt.ko] undefined!
WARNING: "mdev_from_dev" [drivers/gpu/drm/i915/gvt/kvmgt.ko] undefined!
  CC      drivers/gpu/drm/i915/gvt/kvmgt.mod.o
  LD [M]  drivers/gpu/drm/i915/gvt/kvmgt.ko
  CC      drivers/gpu/drm/i915/i915.mod.o
  LD [M]  drivers/gpu/drm/i915/i915.ko
make: Leaving directory '/home/gamer/Downloads/linux-source-4.19'


The module was build, but doesn't work .
sudo modprobe -f kvmgt load it, but dmesg shows
Code: Select all
[   83.998721] kvmgt: no symbol version for mdev_from_dev
[   83.998727] kvmgt: Unknown symbol mdev_from_dev (err -22)
[   83.999096] kvmgt: no symbol version for mdev_parent_dev
[   83.999099] kvmgt: Unknown symbol mdev_parent_dev (err -22)
[   83.999664] kvmgt: no symbol version for mdev_get_drvdata
[   83.999666] kvmgt: Unknown symbol mdev_get_drvdata (err -22)
[   83.999727] kvmgt: no symbol version for mdev_register_device
[   83.999730] kvmgt: Unknown symbol mdev_register_device (err -22)
[   83.999792] kvmgt: no symbol version for mdev_dev
[   83.999794] kvmgt: Unknown symbol mdev_dev (err -22)
[   83.999849] kvmgt: no symbol version for mdev_unregister_device
[   83.999851] kvmgt: Unknown symbol mdev_unregister_device (err -22)
[   84.000023] kvmgt: no symbol version for mdev_set_drvdata
[   84.000025] kvmgt: Unknown symbol mdev_set_drvdata (err -22)
[   91.861591] kvmgt: module_layout: kernel tainted.
[   91.861593] Disabling lock debugging due to kernel taint


And no mdev_supported_types directory created.
Google is keeping silence on this.
newcomer
 
Posts: 6
Joined: 2016-11-20 20:54

Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable