mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-03-18 19:14:53 +00:00
Currently the DSM (Data of Stolen Memory) size was hardcoded to 64M in ACRN, meaning that users must set "DVMT Pre-Allocated" to 64M in order to make IGD passthrough (GVT-d) to work. This patch reads the BIOS- configured memory size from GGC (GMCH Graphics Control, 0x50) register and passthrough corresponding area to guest. Tracked-On: #8432 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Reviewed-by: Jian Jun Chen <jian.jun.chen@intel.com>