]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/Sec: Build identity mapped pages in RAM for X64
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 18 Jul 2013 22:51:27 +0000 (22:51 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 18 Jul 2013 22:51:27 +0000 (22:51 +0000)
commit6cf57789614b591da97862acf98dfc7c31a52bf1
tree4a2304e3b877f1bca4a58b7c892cda1ad522caea
parentca270eb727df80a0eb018a58dc2b3b166912ec32
OvmfPkg/Sec: Build identity mapped pages in RAM for X64

This is based on MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c.

Previously we would run using page tables built into the
firmware device.

If a flash memory is available, it is unsafe for the page
tables to be stored in memory since the processor may try
to write to the page table data structures.

Additionally, when KVM ROM support is enabled for the
firmware device, then PEI fails to boot when the page
tables are in the firmware device.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14494 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/Sec/SecMain.c