]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Move mdev attribute groups into kvmgt module
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 13 May 2021 08:39:02 +0000 (16:39 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 17 May 2021 08:37:09 +0000 (16:37 +0800)
commit88f21b31f2853d02d4accb2498d472e81f994ab9
tree9143d7f3fac5839235c42999732569a24d9b9def
parent4e7fd5b7fc1e8f3c49e79b62c7148f46e615209c
drm/i915/gvt: Move mdev attribute groups into kvmgt module

As kvmgt module contains all handling for VFIO/mdev, leaving mdev attribute
groups in gvt module caused dependency issue. Although it was there for possible
other hypervisor usage, that turns out never to be true. So this moves all mdev
handling into kvmgt module completely to resolve dependency issue.

With this fix, no config workaround is required. So revert previous workaround
commits: 2ccefe3bec48 ("vfio/gvt: fix DRM_I915_GVT dependency on VFIO_MDEV")
and 1c96138a9e09 ("vfio/gvt: Make DRM_I915_GVT depend on VFIO_MDEV").

Reviewed-by: Colin Xu <colin.xu@intel.com>
Cc: Arnd Bergmann <arnd@kernel.org>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210513083902.2822350-1-zhenyuw@linux.intel.com
drivers/gpu/drm/i915/Kconfig
drivers/gpu/drm/i915/gvt/gvt.c
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/hypercall.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/mpt.h