Home
last modified time | relevance | path

Searched refs:ldt (Results 1 – 25 of 27) sorted by relevance

12

/arch/x86/um/
Dldt.c60 uml_ldt_t *ldt = &current->mm->context.arch.ldt; in read_ldt() local
62 if (!ldt->entry_count) in read_ldt()
68 mutex_lock(&ldt->lock); in read_ldt()
69 if (ldt->entry_count <= LDT_DIRECT_ENTRIES) { in read_ldt()
73 if (copy_to_user(ptr, ldt->u.entries, size)) in read_ldt()
79 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; in read_ldt()
84 if (copy_to_user(ptr, ldt->u.pages[i], size)) { in read_ldt()
92 mutex_unlock(&ldt->lock); in read_ldt()
125 uml_ldt_t *ldt = &current->mm->context.arch.ldt; in write_ldt() local
149 mutex_lock(&ldt->lock); in write_ldt()
[all …]
DMakefile12 obj-y = bugs_$(BITS).o delay.o fault.o ldt.o \
/arch/x86/kernel/
Dldt.c44 struct ldt_struct *ldt; in load_mm_ldt() local
47 ldt = READ_ONCE(mm->context.ldt); in load_mm_ldt()
63 if (unlikely(ldt)) { in load_mm_ldt()
65 if (WARN_ON_ONCE((unsigned long)ldt->slot > 1)) { in load_mm_ldt()
81 set_ldt(ldt_slot_va(ldt->slot), ldt->nr_entries); in load_mm_ldt()
83 set_ldt(ldt->entries, ldt->nr_entries); in load_mm_ldt()
109 if (unlikely((unsigned long)prev->context.ldt | in switch_ldt()
110 (unsigned long)next->context.ldt)) in switch_ldt()
193 if (mm->context.ldt) { in do_sanity_check()
243 if (boot_cpu_has(X86_FEATURE_PTI) && !mm->context.ldt) in map_ldt_struct_to_user()
[all …]
Dstep.c37 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear()
38 seg >= child->mm->context.ldt->nr_entries)) in convert_ip_to_linear()
41 desc = &child->mm->context.ldt->entries[seg]; in convert_ip_to_linear()
Dprocess_64.c408 struct ldt_struct *ldt; in x86_fsgsbase_read_task() local
416 ldt = task->mm->context.ldt; in x86_fsgsbase_read_task()
417 if (unlikely(!ldt || idx >= ldt->nr_entries)) in x86_fsgsbase_read_task()
420 base = get_desc_base(ldt->entries + idx); in x86_fsgsbase_read_task()
Ddoublefault_32.c93 .ldt = 0,
Dumip.c259 if (current->mm->context.ldt) in emulate_umip_insn()
DMakefile60 obj-$(CONFIG_MODIFY_LDT_SYSCALL) += ldt.o
/arch/alpha/kernel/
Dentry.S689 ldt $f0, 64($sp) # dont let "do_switch_stack" change fp state.
708 ldt $f30, 312($sp) # get saved fpcr
709 ldt $f0, 64($sp)
710 ldt $f1, 72($sp)
711 ldt $f2, 80($sp)
712 ldt $f3, 88($sp)
714 ldt $f4, 96($sp)
715 ldt $f5, 104($sp)
716 ldt $f6, 112($sp)
717 ldt $f7, 120($sp)
[all …]
/arch/x86/include/asm/
Ddesc.h114 #define load_ldt(ldt) asm volatile("lldt %0"::"m" (ldt)) argument
126 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() argument
130 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() argument
135 #define store_ldt(ldt) asm("sldt %0" : "=m"(ldt)) argument
142 static inline void native_write_ldt_entry(struct desc_struct *ldt, int entry, const void *desc) in native_write_ldt_entry() argument
144 memcpy(&ldt[entry], desc, 8); in native_write_ldt_entry()
198 ldt_desc ldt; in native_set_ldt() local
200 set_tssldt_descriptor(&ldt, (unsigned long)addr, DESC_LDT, in native_set_ldt()
203 &ldt, DESC_LDT); in native_set_ldt()
Dsuspend_32.h25 u16 ldt; member
Dmmu.h38 struct ldt_struct *ldt; member
Dsuspend_64.h49 u16 ldt; member
Dparavirt.h258 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() argument
260 PVOP_VCALL2(cpu.alloc_ldt, ldt, entries); in paravirt_alloc_ldt()
263 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() argument
265 PVOP_VCALL2(cpu.free_ldt, ldt, entries); in paravirt_free_ldt()
Dparavirt_types.h101 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum,
107 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries);
108 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
Dmmu_context.h63 mm->context.ldt = NULL; in init_new_context_ldt()
Dprocessor.h310 unsigned short ldt, __ldth; member
Dkvm_host.h1803 u16 ldt; in kvm_read_ldt() local
1804 asm("sldt %0" : "=g"(ldt)); in kvm_read_ldt()
1805 return ldt; in kvm_read_ldt()
/arch/x86/math-emu/
Dfpu_system.h31 if (current->mm->context.ldt && seg < current->mm->context.ldt->nr_entries) in FPU_get_ldt_descriptor()
32 ret = current->mm->context.ldt->entries[seg]; in FPU_get_ldt_descriptor()
/arch/x86/um/asm/
Dmm_context.h69 uml_ldt_t ldt; member
/arch/x86/kvm/
Dtss.h57 u16 ldt; member
/arch/x86/lib/
Dinsn-eval.c630 struct ldt_struct *ldt; in get_desc() local
636 ldt = current->active_mm->context.ldt; in get_desc()
637 if (ldt && sel < ldt->nr_entries) { in get_desc()
638 *out = ldt->entries[sel]; in get_desc()
/arch/x86/include/uapi/asm/
Dkvm.h154 struct kvm_segment tr, ldt; member
165 struct kvm_segment tr, ldt; member
/arch/x86/xen/
Denlighten_pv.c363 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt() argument
380 set_aliased_prot(ldt + i, PAGE_KERNEL_RO); in xen_alloc_ldt()
383 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt() argument
389 set_aliased_prot(ldt + i, PAGE_KERNEL); in xen_free_ldt()
/arch/x86/events/
Dcore.c2801 struct ldt_struct *ldt; in get_segment_base() local
2804 ldt = READ_ONCE(current->active_mm->context.ldt); in get_segment_base()
2805 if (!ldt || idx >= ldt->nr_entries) in get_segment_base()
2808 desc = &ldt->entries[idx]; in get_segment_base()

12