Lines Matching refs:cpl

1686 				     u16 selector, int seg, u8 cpl,
1731 if (ctxt->mode != X86EMUL_MODE_PROT64 || rpl != cpl)
1741 seg_desc.dpl = cpl;
1773 if (rpl != cpl || (seg_desc.type & 0xa) != 0x2 || dpl != cpl)
1782 if (dpl > cpl)
1786 if (rpl > cpl || dpl != cpl)
1799 selector = (selector & 0xfffc) | cpl;
1817 (rpl > dpl && cpl > dpl)))
1865 u8 cpl = ctxt->ops->cpl(ctxt);
1881 return __load_segment_descriptor(ctxt, selector, seg, cpl,
1975 int cpl = ctxt->ops->cpl(ctxt);
1990 if (cpl == 0)
1992 if (cpl <= iopl)
2278 u8 cpl = ctxt->ops->cpl(ctxt);
2282 rc = __load_segment_descriptor(ctxt, sel, VCPU_SREG_CS, cpl,
2352 int cpl = ctxt->ops->cpl(ctxt);
2362 if (ctxt->mode >= X86EMUL_MODE_PROT16 && (cs & 3) > cpl)
2364 rc = __load_segment_descriptor(ctxt, (u16)cs, VCPU_SREG_CS, cpl,
3003 return ctxt->ops->cpl(ctxt) > iopl;
3114 u8 cpl;
3137 cpl = tss->cs & 3;
3143 ret = __load_segment_descriptor(ctxt, tss->ldt, VCPU_SREG_LDTR, cpl,
3147 ret = __load_segment_descriptor(ctxt, tss->es, VCPU_SREG_ES, cpl,
3151 ret = __load_segment_descriptor(ctxt, tss->cs, VCPU_SREG_CS, cpl,
3155 ret = __load_segment_descriptor(ctxt, tss->ss, VCPU_SREG_SS, cpl,
3159 ret = __load_segment_descriptor(ctxt, tss->ds, VCPU_SREG_DS, cpl,
3229 u8 cpl;
3266 cpl = 3;
3269 cpl = tss->cs & 3;
3277 cpl, X86_TRANSFER_TASK_SWITCH, NULL);
3280 ret = __load_segment_descriptor(ctxt, tss->es, VCPU_SREG_ES, cpl,
3284 ret = __load_segment_descriptor(ctxt, tss->cs, VCPU_SREG_CS, cpl,
3288 ret = __load_segment_descriptor(ctxt, tss->ss, VCPU_SREG_SS, cpl,
3292 ret = __load_segment_descriptor(ctxt, tss->ds, VCPU_SREG_DS, cpl,
3296 ret = __load_segment_descriptor(ctxt, tss->fs, VCPU_SREG_FS, cpl,
3300 ret = __load_segment_descriptor(ctxt, tss->gs, VCPU_SREG_GS, cpl,
3389 if ((tss_selector & 3) > dpl || ops->cpl(ctxt) > dpl)
3574 int cpl = ctxt->ops->cpl(ctxt);
3581 rc = __load_segment_descriptor(ctxt, sel, VCPU_SREG_CS, cpl,
3810 ctxt->ops->cpl(ctxt) > 0)
3914 ctxt->ops->cpl(ctxt) > 0)
3977 ctxt->ops->cpl(ctxt) > 0)
4060 ctxt->ops->cpl(ctxt)) {
4368 if (cr4 & X86_CR4_TSD && ctxt->ops->cpl(ctxt))
4386 if ((!(cr4 & X86_CR4_PCE) && ctxt->ops->cpl(ctxt)) ||
5615 if ((ctxt->d & Priv) && ops->cpl(ctxt)) {