]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/gpu/drm/i915/gvt/mpt.h
drm/i915/gvt: vGPU PCI configuration space virtualization
authorZhi Wang <zhi.a.wang@intel.com>
Wed, 20 Jul 2016 05:14:38 +0000 (01:14 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 14 Oct 2016 10:12:46 +0000 (18:12 +0800)
commit4d60c5fd3f8751ea751d6dc6cfe0c1620420ccf8
treeb9825065a7318e731e1b8cf2a3302472bf300906
parent2707e44466881d6b0a8ed05a429dcf0940c22f60
drm/i915/gvt: vGPU PCI configuration space virtualization

This patch introduces vGPU PCI configuration space virtualization.

- Adjust the trapped GPFN(Guest Page Frame Number) window of virtual GEN
PCI BAR 0 when guest initializes PCI BAR 0 address.

- Emulate OpRegion when guest touches OpRegion.

- Pass-through a part of aperture to guest when guest initializes
aperture BAR.

Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/Makefile
drivers/gpu/drm/i915/gvt/cfg_space.c [new file with mode: 0644]
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/mpt.h
drivers/gpu/drm/i915/gvt/opregion.c [new file with mode: 0644]
drivers/gpu/drm/i915/gvt/reg.h
drivers/gpu/drm/i915/gvt/vgpu.c