OSDN Git Service

drm/i915/gvt: Add 64K huge gtt support
authorChangbin Du <changbin.du@intel.com>
Tue, 15 May 2018 02:35:41 +0000 (10:35 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jul 2018 02:23:46 +0000 (10:23 +0800)
commiteb3a353014d2c2402e572ab7bef86bf5e328160f
tree93f57ba9bd1c5941fb2071c072b6b7ddcc2c8356
parent4c9414d7b152bf344521bf786b5748e833270776
drm/i915/gvt: Add 64K huge gtt support

Finally, this add the first huge gtt support for GVTg - 64K pages. Since
64K page and 4K page cannot be mixed on the same page table, so we always
split a 64K entry into small 4K page. And when unshadow guest 64K entry,
we need ensure all the shadowed entries in shadow page table also get
cleared.

For page table which has 64K gtt entry, only PTE#0, PTE#16, PTE#32, ...
PTE#496 are used. Unused PTEs update should be ignored.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c