-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PVALIDATE and initialize the legacy SMBIOS range (#4982)
* PVALIDATE and initialize the legacy SMBIOS range Linux commit 0f4a1e80989a ("x86/sev: Skip ROM range scans and validation for SEV-SNP guests") removes Linux's attempt to PVALIDATE the legacy ROM regions, including the legacy SMBIOS range [0xf0000, 0x100000). However, legacy code may still attempt to scan this range when using non-EFI firmware such as Stage0. To avoid a crash during guest boot, PVALIDATE the range in Stage0. To avoid legacy code reading garbage from this region, initialize the PVALIDATEd memory to 0. * FIXUP: address reviewer feedback on legacy smbios range readability * FIXUP: fix typo on line 590 (should be equals, not NE) * FIXUP: provide context in panic message per reviewer feedback * FIXUP: fix typo in panic message (SMBOIS -> SMBIOS)
- Loading branch information
1 parent
f5898b0
commit 571627b
Showing
3 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters