Home
last modified time | relevance | path

Searched refs:gsbase (Results 1 – 11 of 11) sorted by relevance

/linux/arch/x86/kernel/
A Dprocess_64.c164 unsigned long gsbase; in __rdgsbase_inactive() local
170 gsbase = rdgsbase(); in __rdgsbase_inactive()
178 return gsbase; in __rdgsbase_inactive()
195 wrgsbase(gsbase); in __wrgsbase_inactive()
245 prev_p->thread.gsbase = 0; in save_base_legacy()
432 unsigned long gsbase; in x86_gsbase_read_cpu_inactive() local
444 return gsbase; in x86_gsbase_read_cpu_inactive()
477 unsigned long gsbase; in x86_gsbase_read_task() local
483 gsbase = task->thread.gsbase; in x86_gsbase_read_task()
487 return gsbase; in x86_gsbase_read_task()
[all …]
A Dprocess.c157 p->thread.gsbase = current->thread.gsbase; in copy_thread()
A Dtls.c178 p->thread.gsbase = info.base_addr; in do_set_thread_area()
A Dptrace.c886 child->thread.gsbase = in putreg32()
/linux/arch/x86/include/asm/
A Dfsgsbase.h20 extern void x86_gsbase_write_task(struct task_struct *task, unsigned long gsbase);
35 unsigned long gsbase; in rdgsbase() local
37 asm volatile("rdgsbase %0" : "=r" (gsbase) :: "memory"); in rdgsbase()
39 return gsbase; in rdgsbase()
47 static __always_inline void wrgsbase(unsigned long gsbase) in wrgsbase() argument
49 asm volatile("wrgsbase %0" :: "r" (gsbase) : "memory"); in wrgsbase()
77 extern void x86_gsbase_write_cpu_inactive(unsigned long gsbase);
A Delf.h178 t->fsbase = t->gsbase = 0; in elf_common_init()
A Dprocessor.h485 unsigned long gsbase; member
/linux/tools/testing/selftests/x86/
A Dfsgsbase.c91 unsigned long gsbase; in rdgsbase() local
93 asm volatile("rdgsbase %0" : "=r" (gsbase) :: "memory"); in rdgsbase()
95 return gsbase; in rdgsbase()
107 static inline void wrgsbase(unsigned long gsbase) in wrgsbase() argument
109 asm volatile("wrgsbase %0" :: "r" (gsbase) : "memory"); in wrgsbase()
/linux/Documentation/x86/
A Dentry_64.rst100 must use idtentry with paranoid=1 to handle gsbase correctly. This
103 - Interrupt entry will use the slower gsbase check.
/linux/Documentation/x86/x86_64/
A Dfsgs.rst59 arch_prctl(ARCH_GET_GS, &gsbase);
64 arch_prctl(ARCH_SET_GS, gsbase);
/linux/arch/x86/kvm/vmx/
A Dvmx.c1155 vmx->msr_host_kernel_gs_base = current->thread.gsbase; in vmx_prepare_switch_to_guest()

Completed in 30 milliseconds