Lines Matching defs:selector
1393 u16 selector, struct desc_ptr *dt)
1395 if (selector & 1 << 2) {
1410 u16 selector, struct desc_struct *desc)
1413 u16 index = selector >> 3;
1418 get_descriptor_table_ptr(ctxt, ops, selector, &dt);
1421 emulate_gp(ctxt, selector & 0xfffc);
1435 u16 selector, struct desc_struct *desc)
1438 u16 index = selector >> 3;
1443 get_descriptor_table_ptr(ctxt, ops, selector, &dt);
1446 emulate_gp(ctxt, selector & 0xfffc);
1460 u16 selector, int seg)
1466 bool null_selector = !(selector & ~0x3); /* 0000-0003 are null */
1474 set_desc_base(&seg_desc, selector << 4);
1482 /* NULL selector is not valid for TR, CS and SS */
1488 if (seg == VCPU_SREG_TR && (selector & (1 << 2)))
1491 if (null_selector) /* for NULL selector skip all following checks */
1494 ret = read_segment_descriptor(ctxt, ops, selector, &seg_desc);
1498 err_code = selector & 0xfffc;
1510 rpl = selector & 3;
1518 * selector's RPL != CPL or segment selector's RPL != CPL
1537 selector = (selector & 0xfffc) | cpl;
1563 ret = write_segment_descriptor(ctxt, ops, selector, &seg_desc);
1568 ops->set_segment_selector(selector, seg, ctxt->vcpu);
1721 unsigned long selector;
1724 rc = emulate_pop(ctxt, ops, &selector, c->op_bytes);
1728 rc = load_segment_descriptor(ctxt, ops, (u16)selector, seg);