search for: seg_ar

Displaying 8 results from an estimated 8 matches for "seg_ar".

2007 Apr 18
2
[PATCH 19/21] i386 Kprobes semaphore fix
...LDT segments. The fast path handles standard kernel and user CS + * as well as V8086 mode. + */ +unsigned long convert_eip_to_linear_slow(unsigned long eip, unsigned long seg, + mm_context_t *context, unsigned long *eip_limit) { - unsigned long addr, seg; + unsigned long base, seg_limit; + u32 seg_ar; + struct desc_struct *desc; + unsigned long flags; - addr = regs->eip; - seg = regs->xcs & 0xffff; - if (regs->eflags & VM_MASK) { - addr = (addr & 0xffff) + (seg << 4); - return addr; + if (segment_from_ldt(seg)) { + /* + * Horrors abound. Must enable IRQs to ta...
2007 Apr 18
2
[PATCH 19/21] i386 Kprobes semaphore fix
...LDT segments. The fast path handles standard kernel and user CS + * as well as V8086 mode. + */ +unsigned long convert_eip_to_linear_slow(unsigned long eip, unsigned long seg, + mm_context_t *context, unsigned long *eip_limit) { - unsigned long addr, seg; + unsigned long base, seg_limit; + u32 seg_ar; + struct desc_struct *desc; + unsigned long flags; - addr = regs->eip; - seg = regs->xcs & 0xffff; - if (regs->eflags & VM_MASK) { - addr = (addr & 0xffff) + (seg << 4); - return addr; + if (segment_from_ldt(seg)) { + /* + * Horrors abound. Must enable IRQs to ta...
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...======================================= --- linux-2.6.13.orig/arch/i386/mm/fault.c 2005-08-08 13:50:12.000000000 -0700 +++ linux-2.6.13/arch/i386/mm/fault.c 2005-08-08 13:59:07.000000000 -0700 @@ -75,7 +75,8 @@ { unsigned long eip = regs->eip; unsigned seg = regs->xcs & 0xffff; - u32 seg_ar, seg_limit, base, *desc; + u32 seg_ar, seg_limit, base; + struct desc_struct *desc; /* The standard kernel/user address space limit. */ *eip_limit = (seg & 3) ? USER_DS.seg : KERNEL_DS.seg; @@ -101,19 +102,17 @@ /* Get the GDT/LDT descriptor base. When you look for races in this c...
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...======================================= --- linux-2.6.13.orig/arch/i386/mm/fault.c 2005-08-08 13:50:12.000000000 -0700 +++ linux-2.6.13/arch/i386/mm/fault.c 2005-08-08 13:59:07.000000000 -0700 @@ -75,7 +75,8 @@ { unsigned long eip = regs->eip; unsigned seg = regs->xcs & 0xffff; - u32 seg_ar, seg_limit, base, *desc; + u32 seg_ar, seg_limit, base; + struct desc_struct *desc; /* The standard kernel/user address space limit. */ *eip_limit = (seg & 3) ? USER_DS.seg : KERNEL_DS.seg; @@ -101,19 +102,17 @@ /* Get the GDT/LDT descriptor base. When you look for races in this c...
2007 Apr 18
1
[PATCH 7/14] i386 / Add some descriptor convenience functions
...======================================= --- linux-2.6.13.orig/arch/i386/mm/fault.c 2005-08-09 19:43:47.000000000 -0700 +++ linux-2.6.13/arch/i386/mm/fault.c 2005-08-10 20:42:04.000000000 -0700 @@ -75,7 +75,8 @@ { unsigned long eip = regs->eip; unsigned seg = regs->xcs & 0xffff; - u32 seg_ar, seg_limit, base, *desc; + u32 seg_ar, seg_limit, base; + struct desc_struct *desc; /* The standard kernel/user address space limit. */ *eip_limit = (seg & 3) ? USER_DS.seg : KERNEL_DS.seg; @@ -108,12 +109,12 @@ desc = (void *)desc + (seg & ~7); } else { /* Must disable preemp...
2007 Apr 18
1
[PATCH 7/14] i386 / Add some descriptor convenience functions
...======================================= --- linux-2.6.13.orig/arch/i386/mm/fault.c 2005-08-09 19:43:47.000000000 -0700 +++ linux-2.6.13/arch/i386/mm/fault.c 2005-08-10 20:42:04.000000000 -0700 @@ -75,7 +75,8 @@ { unsigned long eip = regs->eip; unsigned seg = regs->xcs & 0xffff; - u32 seg_ar, seg_limit, base, *desc; + u32 seg_ar, seg_limit, base; + struct desc_struct *desc; /* The standard kernel/user address space limit. */ *eip_limit = (seg & 3) ? USER_DS.seg : KERNEL_DS.seg; @@ -108,12 +109,12 @@ desc = (void *)desc + (seg & ~7); } else { /* Must disable preemp...
2007 Apr 18
43
[RFC PATCH 00/35] Xen i386 paravirtualization support
Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths
2007 Apr 18
43
[RFC PATCH 00/35] Xen i386 paravirtualization support
Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths