search for: ldt_page

Displaying 4 results from an estimated 4 matches for "ldt_page".

Did you mean: gdt_page
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...that plan. > There is code which relies on the fact that LDTs are allocated in page > chunks, and it is both cleaner and more convenient to keep the rather > poorly named "size" variable from the LDT in terms of LDT pages. I noticed it's replaced by context.ldt and context.ldt_pages, which appear to be decoupling the overloaded use from before. Looks sane. More comments below. > Signed-off-by: Zachary Amsden <zach@vmware.com> > Index: linux-2.6.13/include/asm-i386/mmu.h > =================================================================== > --- linux-2.6.1...
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...that plan. > There is code which relies on the fact that LDTs are allocated in page > chunks, and it is both cleaner and more convenient to keep the rather > poorly named "size" variable from the LDT in terms of LDT pages. I noticed it's replaced by context.ldt and context.ldt_pages, which appear to be decoupling the overloaded use from before. Looks sane. More comments below. > Signed-off-by: Zachary Amsden <zach@vmware.com> > Index: linux-2.6.13/include/asm-i386/mmu.h > =================================================================== > --- linux-2.6.1...
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
...>ldt, old_pages*PAGE_SIZE); oldldt = pc->ldt; - memset(newldt+oldsize*LDT_ENTRY_SIZE, 0, (mincount-oldsize)*LDT_ENTRY_SIZE); + if (reload) + memset(newldt+old_pages*LDT_ENTRIES_PER_PAGE, 0, (new_pages-old_pages)*PAGE_SIZE); pc->ldt = newldt; wmb(); - pc->size = mincount; + pc->ldt_pages = new_pages; wmb(); + /* + * If updating an active LDT, must reload LDT on all processors + * where it could be active. + */ if (reload) { #ifdef CONFIG_SMP cpumask_t mask; @@ -67,8 +67,8 @@ static int alloc_ldt(mm_context_t *pc, i load_LDT(pc); #endif } - if (oldsize) { - if (...
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
...>ldt, old_pages*PAGE_SIZE); oldldt = pc->ldt; - memset(newldt+oldsize*LDT_ENTRY_SIZE, 0, (mincount-oldsize)*LDT_ENTRY_SIZE); + if (reload) + memset(newldt+old_pages*LDT_ENTRIES_PER_PAGE, 0, (new_pages-old_pages)*PAGE_SIZE); pc->ldt = newldt; wmb(); - pc->size = mincount; + pc->ldt_pages = new_pages; wmb(); + /* + * If updating an active LDT, must reload LDT on all processors + * where it could be active. + */ if (reload) { #ifdef CONFIG_SMP cpumask_t mask; @@ -67,8 +67,8 @@ static int alloc_ldt(mm_context_t *pc, i load_LDT(pc); #endif } - if (oldsize) { - if (...