mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Set LMA in EFER
As of Linux 4.15 (f29810335965ac1f7bcb501ee2af5f039f792416 KVM/x86: Check input paging mode when cs.l is set), KVM validates that LMA is set along with LME. PiperOrigin-RevId: 195047401 Change-Id: I8b43d8f758a85b1f58ccbd747dcacd4056ef3f66
This commit is contained in:
@@ -149,7 +149,7 @@ func (c *CPU) CR4() uint64 {
|
||||
//
|
||||
//go:nosplit
|
||||
func (c *CPU) EFER() uint64 {
|
||||
return _EFER_LME | _EFER_SCE | _EFER_NX
|
||||
return _EFER_LME | _EFER_LMA | _EFER_SCE | _EFER_NX
|
||||
}
|
||||
|
||||
// IsCanonical indicates whether addr is canonical per the amd64 spec.
|
||||
|
||||
@@ -46,6 +46,7 @@ const (
|
||||
|
||||
_EFER_SCE = 0x001
|
||||
_EFER_LME = 0x100
|
||||
_EFER_LMA = 0x400
|
||||
_EFER_NX = 0x800
|
||||
|
||||
_MSR_STAR = 0xc0000081
|
||||
|
||||
Reference in New Issue
Block a user