Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/xen/pvh: Enable PAE mode for 32-bit guest only when CONFIG_X86_PAE is set

The PVH entry is available for 32-bit KVM guests, and 32-bit KVM guests
do not depend on CONFIG_X86_PAE. However, mk_early_pgtbl_32() builds
different pagetables depending on whether CONFIG_X86_PAE is set.
Therefore, enabling PAE mode for 32-bit KVM guests without
CONFIG_X86_PAE being set would result in a boot failure during CR3
loading.

Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <d09ce9a134eb9cbc16928a5b316969f8ba606b81.1768017442.git.houwenlong.hwl@antgroup.com>

authored by

Hou Wenlong and committed by
Juergen Gross
db9aded9 378f1dc3

+2
+2
arch/x86/platform/pvh/head.S
··· 91 91 92 92 leal rva(early_stack_end)(%ebp), %esp 93 93 94 + #if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE) 94 95 /* Enable PAE mode. */ 95 96 mov %cr4, %eax 96 97 orl $X86_CR4_PAE, %eax 97 98 mov %eax, %cr4 99 + #endif 98 100 99 101 #ifdef CONFIG_X86_64 100 102 /* Enable Long mode. */