mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
kvm: mark UpperHalf PTE-s as global
UpperHalf is shared with all address spaces. PiperOrigin-RevId: 379790539
This commit is contained in:
@@ -485,7 +485,7 @@ func (m *machine) mapUpperHalf(pageTable *pagetables.PageTables) {
|
||||
pageTable.Map(
|
||||
hostarch.Addr(ring0.KernelStartAddress|r.virtual),
|
||||
r.length,
|
||||
pagetables.MapOpts{AccessType: hostarch.Execute},
|
||||
pagetables.MapOpts{AccessType: hostarch.Execute, Global: true},
|
||||
physical)
|
||||
}
|
||||
})
|
||||
@@ -498,7 +498,7 @@ func (m *machine) mapUpperHalf(pageTable *pagetables.PageTables) {
|
||||
pageTable.Map(
|
||||
hostarch.Addr(ring0.KernelStartAddress|start),
|
||||
regionLen,
|
||||
pagetables.MapOpts{AccessType: hostarch.ReadWrite},
|
||||
pagetables.MapOpts{AccessType: hostarch.ReadWrite, Global: true},
|
||||
physical)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user