/linux-master/arch/x86/um/ |
H A D | ldt.c | 45 * In skas mode, we hold our own ldt data in UML. 48 * for arch/i386/kernel/ldt.c 60 uml_ldt_t *ldt = ¤t->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 = ¤t->mm->context.arch.ldt; local 236 struct ldt_entry * ldt; local [all...] |
H A D | Makefile | 12 obj-y = bugs_$(BITS).o delay.o fault.o ldt.o \
|
/linux-master/arch/x86/kernel/ |
H A D | ldt.c | 26 #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 D | step.c | 39 if (unlikely(!child->mm->context.ldt || 40 seg >= child->mm->context.ldt->nr_entries)) 43 desc = &child->mm->context.ldt->entries[seg];
|
H A D | process_64.c | 433 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 D | doublefault_32.c | 91 .ldt = 0,
|
H A D | umip.c | 259 if (current->mm->context.ldt)
|
H A D | tls.c | 12 #include <asm/ldt.h>
|
/linux-master/arch/x86/include/asm/ |
H A D | proto.h | 5 #include <asm/ldt.h>
|
H A D | suspend_32.h | 20 u16 ldt; member in struct:saved_context
|
H A D | desc.h | 6 #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 D | suspend_64.h | 49 u16 ldt; member in struct:saved_context
|
H A D | mmu.h | 42 struct ldt_struct *ldt; member in struct:__anon36
|
H A D | paravirt_types.h | 73 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 D | mmu_context.h | 57 mm->context.ldt = NULL;
|
H A D | paravirt.h | 268 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 D | mm_context.h | 12 #include <asm/ldt.h> 67 uml_ldt_t ldt; member in struct:uml_arch_mm_context
|
H A D | processor_32.h | 11 #include <asm/ldt.h>
|
/linux-master/tools/testing/selftests/x86/ |
H A D | ldt_gdt.c | 18 #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 D | fsgsbase_restore.c | 27 #include <asm/ldt.h>
|
H A D | single_step_syscall.c | 26 #include <asm/ldt.h>
|
/linux-master/arch/x86/math-emu/ |
H A D | fpu_system.h | 31 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 D | tss.h | 57 u16 ldt; member in struct:tss_segment_16
|
/linux-master/arch/x86/hyperv/ |
H A D | hv_vtl.c | 80 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 D | insn-eval.c | 15 #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];
|