Home
last modified time | relevance | path

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

/Linux-v5.4/arch/x86/include/asm/
Dfsgsbase.h20 extern void x86_gsbase_write_task(struct task_struct *task, unsigned long gsbase);
35 unsigned long gsbase; in x86_gsbase_read_cpu_inactive() local
37 rdmsrl(MSR_KERNEL_GS_BASE, gsbase); in x86_gsbase_read_cpu_inactive()
39 return gsbase; in x86_gsbase_read_cpu_inactive()
47 static inline void x86_gsbase_write_cpu_inactive(unsigned long gsbase) in x86_gsbase_write_cpu_inactive() argument
49 wrmsrl(MSR_KERNEL_GS_BASE, gsbase); in x86_gsbase_write_cpu_inactive()
Delf.h180 t->fsbase = t->gsbase = 0; in elf_common_init()
Dprocessor.h458 unsigned long gsbase; member
/Linux-v5.4/arch/x86/kernel/
Dprocess_64.c195 prev_p->thread.gsbase = 0; in save_base_legacy()
285 load_seg_legacy(prev->gsindex, prev->gsbase, in x86_fsgsbase_load()
286 next->gsindex, next->gsbase, GS); in x86_fsgsbase_load()
348 unsigned long gsbase; in x86_gsbase_read_task() local
351 gsbase = x86_gsbase_read_cpu_inactive(); in x86_gsbase_read_task()
353 gsbase = task->thread.gsbase; in x86_gsbase_read_task()
355 gsbase = x86_fsgsbase_read_task(task, task->thread.gsindex); in x86_gsbase_read_task()
357 return gsbase; in x86_gsbase_read_task()
367 void x86_gsbase_write_task(struct task_struct *task, unsigned long gsbase) in x86_gsbase_write_task() argument
371 task->thread.gsbase = gsbase; in x86_gsbase_write_task()
[all …]
Dtls.c184 p->thread.gsbase = info.base_addr; in do_set_thread_area()
Dptrace.c387 if (child->thread.gsbase != value) in putreg()
/Linux-v5.4/tools/testing/selftests/x86/
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-v5.4/Documentation/x86/
Dentry_64.rst100 must use idtentry with paranoid=1 to handle gsbase correctly. This
103 - Interrupt entry will use the slower gsbase check.
/Linux-v5.4/arch/x86/kvm/
Dsvm.c2316 wrmsrl(MSR_KERNEL_GS_BASE, current->thread.gsbase); in svm_vcpu_put()
/Linux-v5.4/arch/x86/kvm/vmx/
Dvmx.c1177 vmx->msr_host_kernel_gs_base = current->thread.gsbase; in vmx_prepare_switch_to_guest()