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)
commit145e06b58f8625becc61792a0554726314297a85
tree9143d7f3fac5839235c42999732569a24d9b9def
parente4527420ed087f99c6aa2ac22c6d3458c7dc1a94
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: adaeb718d46f ("vfio/gvt: fix DRM_I915_GVT dependency on VFIO_MDEV")
and 07e543f4f9d1 ("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