aboutsummaryrefslogtreecommitdiff
path: root/net/core/utils.c
diff options
context:
space:
mode:
authorWei Huang <[email protected]>2019-01-03 23:44:11 -0600
committerThomas Gleixner <[email protected]>2019-01-29 21:58:59 +0100
commitb677dfae5aa197afc5191755a76a8727ffca538a (patch)
treece025b3d79a965312fe3a1356cfb4bc95f1f5e7b /net/core/utils.c
parent00ae831dfe4474ef6029558f5eb3ef0332d80043 (diff)
x86/boot/compressed/64: Set EFER.LME=1 in 32-bit trampoline before returning to long mode
In some old AMD KVM implementation, guest's EFER.LME bit is cleared by KVM when the hypervsior detects that the guest sets CR0.PG to 0. This causes the guest OS to reboot when it tries to return from 32-bit trampoline code because the CPU is in incorrect state: CR4.PAE=1, CR0.PG=1, CS.L=1, but EFER.LME=0. As a precaution, set EFER.LME=1 as part of long mode activation procedure. This extra step won't cause any harm when Linux is booted on a bare-metal machine. Signed-off-by: Wei Huang <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/core/utils.c')
0 files changed, 0 insertions, 0 deletions