mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 19:15:04 +07:00
659643f7d8
KVMGT leverages vfio/mdev to mediate device accesses from guest, this patch adds the vfio/mdev support, thereby completes the functionality. An intel_vgpu is presented as a mdev device, and full userspace API compatibility with vfio-pci is kept. An intel_vgpu_ops is provided to mdev framework, methods get called to create/remove a vgpu, to open/close it, and to access it. Signed-off-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Xiaoguang Chen <xiaoguang.chen@intel.com> Signed-off-by: Jike Song <jike.song@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
9 lines
385 B
Makefile
9 lines
385 B
Makefile
GVT_DIR := gvt
|
|
GVT_SOURCE := gvt.o aperture_gm.o handlers.o vgpu.o trace_points.o firmware.o \
|
|
interrupt.o gtt.o cfg_space.o opregion.o mmio.o display.o edid.o \
|
|
execlist.o scheduler.o sched_policy.o render.o cmd_parser.o
|
|
|
|
ccflags-y += -I$(src) -I$(src)/$(GVT_DIR) -Wall
|
|
i915-y += $(addprefix $(GVT_DIR)/, $(GVT_SOURCE))
|
|
obj-$(CONFIG_DRM_I915_GVT_KVMGT) += $(GVT_DIR)/kvmgt.o
|