Home
last modified time | relevance | path

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

/linux/arch/x86/kernel/
H A Dprocess_64.c168 unsigned long gsbase; in __rdgsbase_inactive() local
196 gsbase = rdgsbase(); in __rdgsbase_inactive()
200 rdmsrq(MSR_KERNEL_GS_BASE, gsbase); in __rdgsbase_inactive()
204 return gsbase; in __rdgsbase_inactive()
215 static noinstr void __wrgsbase_inactive(unsigned long gsbase) in __wrgsbase_inactive() argument
222 wrgsbase(gsbase); in __wrgsbase_inactive()
226 wrmsrq(MSR_KERNEL_GS_BASE, gsbase); in __wrgsbase_inactive()
272 prev_p->thread.gsbase = 0; in save_base_legacy()
287 task->thread.gsbase = __rdgsbase_inactive(); in save_fsgs()
403 __wrgsbase_inactive(next->gsbase); in x86_fsgsbase_load()
[all …]
H A Dtls.c179 p->thread.gsbase = info.base_addr; in do_set_thread_area()
H A Dprocess.c198 p->thread.gsbase = current->thread.gsbase; in copy_thread()
H A Dptrace.c905 child->thread.gsbase = in putreg32()
/linux/arch/x86/include/asm/
H 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);
H A Delf.h161 t->fsbase = t->gsbase = 0; in elf_common_init()
H A Dprocessor.h466 unsigned long gsbase; member
/linux/tools/testing/selftests/x86/
H A Dfsgsbase.c71 unsigned long gsbase; in rdgsbase() local
73 asm volatile("rdgsbase %0" : "=r" (gsbase) :: "memory"); in rdgsbase()
75 return gsbase; in rdgsbase()
87 static inline void wrgsbase(unsigned long gsbase) in wrgsbase() argument
89 asm volatile("wrgsbase %0" :: "r" (gsbase) : "memory"); in wrgsbase()
/linux/arch/x86/hyperv/
H A Dhv_crash.c76 u64 gsbase; member
175 hv_wrmsr(MSR_GS_BASE, hv_crash_ctxt.gsbase); in hv_crash_c_entry()
220 ctxt->gsbase = __rdmsr(MSR_GS_BASE); in hv_hvcrash_ctxt_save()
/linux/Documentation/arch/x86/
H 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/arch/x86/x86_64/
H A Dfsgs.rst59 arch_prctl(ARCH_GET_GS, &gsbase);
64 arch_prctl(ARCH_SET_GS, gsbase);
/linux/arch/x86/kvm/vmx/
H A Dtdx.c802 vt->msr_host_kernel_gs_base = current->thread.gsbase; in tdx_prepare_switch_to_guest()
H A Dvmx.c1402 vt->msr_host_kernel_gs_base = current->thread.gsbase; in vmx_prepare_switch_to_guest()