Searched refs:ldt (Results 1 - 25 of 40) sorted by relevance

12

/linux-master/arch/x86/um/
H A Dldt.c45 * In skas mode, we hold our own ldt data in UML.
48 * for arch/i386/kernel/ldt.c
60 uml_ldt_t *ldt = &current->mm->context.arch.ldt; local
62 if (!ldt->entry_count)
68 mutex_lock(&ldt->lock);
69 if (ldt->entry_count <= LDT_DIRECT_ENTRIES) {
73 if (copy_to_user(ptr, ldt->u.entries, size))
79 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount;
84 if (copy_to_user(ptr, ldt
125 uml_ldt_t *ldt = &current->mm->context.arch.ldt; local
236 struct ldt_entry * ldt; local
[all...]
H A DMakefile12 obj-y = bugs_$(BITS).o delay.o fault.o ldt.o \
/linux-master/arch/x86/kernel/
H A Dldt.c26 #include <asm/ldt.h>
44 struct ldt_struct *ldt; local
47 ldt = READ_ONCE(mm->context.ldt);
50 * Any change to mm->context.ldt is followed by an IPI to all
63 if (unlikely(ldt)) {
65 if (WARN_ON_ONCE((unsigned long)ldt->slot > 1)) {
76 * If page table isolation is enabled, ldt->entries
79 * at ldt_slot_va(ldt->slot).
81 set_ldt(ldt_slot_va(ldt
288 map_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt, int slot) argument
349 unmap_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt) argument
383 map_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt, int slot) argument
388 unmap_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt) argument
416 finalize_ldt_struct(struct ldt_struct *ldt) argument
421 install_ldt(struct mm_struct *mm, struct ldt_struct *ldt) argument
434 free_ldt_struct(struct ldt_struct *ldt) argument
584 struct desc_struct ldt; local
[all...]
H A Dstep.c39 if (unlikely(!child->mm->context.ldt ||
40 seg >= child->mm->context.ldt->nr_entries))
43 desc = &child->mm->context.ldt->entries[seg];
H A Dprocess_64.c433 struct ldt_struct *ldt; local
441 ldt = task->mm->context.ldt;
442 if (unlikely(!ldt || idx >= ldt->nr_entries))
445 base = get_desc_base(ldt->entries + idx);
H A Ddoublefault_32.c91 .ldt = 0,
H A Dumip.c259 if (current->mm->context.ldt)
H A Dtls.c12 #include <asm/ldt.h>
/linux-master/arch/x86/include/asm/
H A Dproto.h5 #include <asm/ldt.h>
H A Dsuspend_32.h20 u16 ldt; member in struct:saved_context
H A Ddesc.h6 #include <asm/ldt.h>
115 #define load_ldt(ldt) asm volatile("lldt %0"::"m" (ldt))
127 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) argument
131 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) argument
136 #define store_ldt(ldt) asm("sldt %0" : "=m"(ldt))
143 static inline void native_write_ldt_entry(struct desc_struct *ldt, int entry, const void *desc) argument
145 memcpy(&ldt[entry], desc, 8);
199 ldt_desc ldt; local
204 &ldt, DESC_LDT); local
[all...]
H A Dsuspend_64.h49 u16 ldt; member in struct:saved_context
H A Dmmu.h42 struct ldt_struct *ldt; member in struct:__anon36
H A Dparavirt_types.h73 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum,
79 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries);
80 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
H A Dmmu_context.h57 mm->context.ldt = NULL;
H A Dparavirt.h268 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) argument
270 PVOP_VCALL2(cpu.alloc_ldt, ldt, entries);
273 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) argument
275 PVOP_VCALL2(cpu.free_ldt, ldt, entries);
/linux-master/arch/x86/um/asm/
H A Dmm_context.h12 #include <asm/ldt.h>
67 uml_ldt_t ldt; member in struct:uml_arch_mm_context
H A Dprocessor_32.h11 #include <asm/ldt.h>
/linux-master/tools/testing/selftests/x86/
H A Dldt_gdt.c18 #include <asm/ldt.h>
63 static void check_invalid_segment(uint16_t index, int ldt) argument
66 uint32_t selector = (index << 3) | (ldt << 2) | 3;
83 (ldt ? "LDT" : "GDT"), index);
87 (ldt ? "LDT" : "GDT"), index);
91 static void check_valid_segment(uint16_t index, int ldt, argument
96 uint32_t selector = (index << 3) | (ldt << 2) | 3;
113 (ldt ? "LDT" : "GDT"), index);
127 (ldt ? "LDT" : "GDT"), index, ar, expected_ar);
131 (ldt
139 install_valid_mode(const struct user_desc *d, uint32_t ar, bool oldmode, bool ldt) argument
[all...]
H A Dfsgsbase_restore.c27 #include <asm/ldt.h>
H A Dsingle_step_syscall.c26 #include <asm/ldt.h>
/linux-master/arch/x86/math-emu/
H A Dfpu_system.h31 if (current->mm->context.ldt && seg < current->mm->context.ldt->nr_entries)
32 ret = current->mm->context.ldt->entries[seg];
/linux-master/arch/x86/kvm/
H A Dtss.h57 u16 ldt; member in struct:tss_segment_16
/linux-master/arch/x86/hyperv/
H A Dhv_vtl.c80 struct ldttss_desc *ldt; local
93 ldt = (struct ldttss_desc *)(gdt + GDT_ENTRY_LDT);
144 input->vp_context.ldtr.base = hv_vtl_system_desc_base(ldt);
145 input->vp_context.ldtr.limit = hv_vtl_system_desc_limit(ldt);
/linux-master/arch/x86/lib/
H A Dinsn-eval.c15 #include <asm/ldt.h>
629 struct ldt_struct *ldt; local
635 ldt = current->active_mm->context.ldt;
636 if (ldt && sel < ldt->nr_entries) {
637 *out = ldt->entries[sel];

Completed in 187 milliseconds

12