acrn-hypervisor/devicemodel/core
Junming Liu 4d882731ce dm:passthrough graphics stolen memory to uos gpu
gop driver and uos IGD driver will use
graphics stolen memory(gsm) when enable GVT-d.

This patch pass-thru gsm to uos gpu.

After set physical GPU gsm size 64MB in host BIOS:
Here is the steps:
(1) set gsm gpa(guest physical addrress) 0xDB000000;
(2) get gsm hpa(host physical addrress);
(3) build EPT mapping for gsm.

v1 -> v2:
        * initialize the EPT mapping for passthrough GPU gsm region
        in passthru_init instead of reading the BDSM config space

v2 -> v3:
        * add EPT unmap when deinit
	* change some micro name

Tracked-On: #4360

Signed-off-by: Junming Liu <junming.liu@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Liu XinYun <xinyun.liu@intel.com>
Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com>
Reviewed-by: Wu Binbin <binbin.wu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
2020-01-17 09:23:13 +08:00
..
console.c DM: remove unused function console_ptr_event 2019-05-24 11:51:00 +08:00
gc.c dm: gc: clean up assert 2019-07-03 09:40:15 +08:00
hugetlb.c dm:replace perror with pr_err 2020-01-08 13:37:57 +08:00
inout.c dm:use acrn-dm logger function instread of printf 2019-11-14 15:34:04 +08:00
main.c dm: pci: reset passthrough device by default 2019-12-30 13:43:07 +08:00
mem.c dm:use acrn-dm logger function instread of printf 2019-11-14 15:34:04 +08:00
mevent.c dm:replace perror with pr_err 2020-01-08 13:37:57 +08:00
monitor.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
mptbl.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
pm.c DM: register pm ops to monitor 2018-08-02 13:14:03 +08:00
pm_vuart.c dm:use acrn-dm logger function instread of printf 2019-11-14 15:34:04 +08:00
post.c dm: refine 'assert' in inout.c and post.c 2019-06-20 08:55:44 +08:00
sw_load_bzimage.c dm:use acrn-dm logger function instread of printf 2019-11-14 15:34:04 +08:00
sw_load_common.c dm:passthrough graphics stolen memory to uos gpu 2020-01-17 09:23:13 +08:00
sw_load_elf.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
sw_load_ovmf.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
sw_load_vsbl.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
timer.c dm:replace perror with pr_err 2020-01-08 13:37:57 +08:00
vmmapi.c dm:gvt:reserve gvt bar regions in ACRN-DM 2019-12-05 11:20:11 +08:00
vrpmb.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00