]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: make gvt oblivious of kvmgt data structures
authorJulian Stecklina <julian.stecklina@cyberus-technology.de>
Mon, 17 Feb 2020 16:38:58 +0000 (17:38 +0100)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Feb 2020 08:28:05 +0000 (16:28 +0800)
commit06d63c48dd30b968d2a56e3ece02d6b635cf369a
treefc6ca1b059602327d348e016b861924b973dbc2e
parentc95baf12f5077419db01313ab61c2aac007d40cd
drm/i915/gvt: make gvt oblivious of kvmgt data structures

Instead of defining KVMGT per-device state in struct intel_vgpu
directly, add an indirection. This makes the GVT code oblivious of
what state KVMGT needs to keep.

The intention here is to eventually make it possible to build
hypervisor backends for the mediator, without having to touch the
mediator itself. This is a first step.

v2:
- rebased onto gvt-staging (no conflicts)

Signed-off-by: Julian Stecklina <julian.stecklina@cyberus-technology.de>
Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200217163858.26496-1-julian.stecklina@cyberus-technology.de
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/kvmgt.c