coreboot-kgpe-d16/Documentation
Patrick Rudolph 03a79520d6 cpu/x86/smm: Add support for long mode
Enable long mode in SMM handler.
x86_32 isn't affected by this change.

As the rsm instruction used to leave SMM doesn't restore MSR registers,
drop back to protected mode after running the smi_handler and restore
IA32_EFER MSR (which enables long mode support) to previous value.

NOTE: This commit does NOT introduce a new security model. It uses the
      same page tables as the remaining firmware does.
      This can be a security risk if someone is able to manipulate the
      page tables stored in ROM at runtime. USE FOR TESTING ONLY!

Tested on Qemu Q35.

Change-Id: I8bba4af4688c723fc079ae905dac95f57ea956f8
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35681
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-07-08 07:28:32 +00:00
..
Intel mb,soc/intel: Rename acpi_fill_in_fadt() to acpi_fill_fadt() 2020-06-07 21:45:45 +00:00
RFC
_static
acpi Documentation/acpi: Fix the path to variants/hatch/overridetree.cb 2020-05-26 14:58:35 +00:00
arch cpu/x86/smm: Add support for long mode 2020-07-08 07:28:32 +00:00
community
contributing documentation: Add documentation ideas for season of docs 2020-05-01 13:47:06 +00:00
doxygen
drivers smmstore: Verify userspace-provided pointer to protect SMM 2020-06-17 09:18:05 +00:00
flash_tutorial Documentation: Use inline code block for kernel parameter 2020-02-19 12:09:53 +00:00
getting_started Documentation: Encourage documentation with code changes 2020-05-20 08:44:26 +00:00
gfx drivers/intel/gma: Add override for presence straps 2020-05-20 23:38:05 +00:00
ifdtool Documentation: ifdtool/layout: use real table for FD regions 2020-02-17 20:08:41 +00:00
lib fw_config: Add firmware configuration interface 2020-06-02 16:40:04 +00:00
mainboard doc/mb/ocp: Add documentation for Delta Lake 2020-07-04 11:16:44 +00:00
northbridge Documentation: Add tutorial for me_cleaner on Lenovo devices 2020-03-02 11:39:05 +00:00
releases Documentation: Add section about SPD tools for TGL and JSL 2020-06-10 18:39:15 +00:00
security cpu/x86/smm: Add helper functions to verify SMM access 2020-06-17 09:17:56 +00:00
soc soc/amd/picasso/Makefile: Use apcb_tool to generate APCBs from SPDs 2020-05-18 07:40:51 +00:00
superio superio/nuvoton/nct5539d: Update documentation and remove DSDT 2020-03-11 15:03:39 +00:00
technotes Documentation/tutorial: Add tutorial for writing unit tests 2020-05-30 08:46:59 +00:00
tutorial Documentation/tutorial: Add tutorial for writing unit tests 2020-05-30 08:46:59 +00:00
vendorcode Documentation/vendorcode/eltan: Update security document 2020-01-30 13:28:24 +00:00
AMD-S3.txt
COPYING
Doxyfile.coreboot
Doxyfile.coreboot_simple
Makefile
Makefile.sphinx Documentation: Add several fixes 2020-07-01 21:51:26 +00:00
POSTCODES
beginverbatim.tex
cbfs.txt
codeflow.svg
coding_style.md
conf.py Documentation: Add several fixes 2020-07-01 21:51:26 +00:00
corebootBuildingGuide.tex
coreboot_logo.png
distributions.md
endverbatim.tex
gcov.txt
hypertransport.svg
index.md documentation: Add documentation ideas for season of docs 2020-05-01 13:47:06 +00:00
mainboard_io_trap_handler_sample.c ACPI GNVS: Replace uses of smm_get_gnvs() 2020-07-01 05:14:24 +00:00
payloads.md Documentation: Add Heads to payloads 2020-03-02 11:39:16 +00:00
util.md Doc,util: Update list of utilities 2020-04-20 06:55:49 +00:00