forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/boot: Support for compressed kernel booting
The 5-level paging mode is enabled in compressed kernel booting and it uses the CPUID instruction to detect 5-level paging support. For PVM guest, pvm_cpuid() should be used instead of the CPUID instruction, so detect PVM hypervisor support early in configure_5level_paging(). Additionally, relocation for PVM guest during booting should be avoided. This is because there is only the first 4G identity mapping, and if physical address randomization is enabled, a #PF exception will occur if the chosen output address is over the first 4G range. Therefore, for simplification, physical address randomization should be avoided. As for virtual address randomization, it should occur after entering the kernel entry. Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com> Link: #6
- Loading branch information
Showing
3 changed files
with
59 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