]> 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)
commit9158f270531fff77f1d90ba1add60ef4d616c7e0
tree9143d7f3fac5839235c42999732569a24d9b9def
parent04f50ef52fa13421f6070d1c546167407ed32b8f
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: 84c8e71598a0 ("vfio/gvt: fix DRM_I915_GVT dependency on VFIO_MDEV")
and 405cac4511e3 ("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