• Home
  • Raw
  • Download

Lines Matching refs:selector

542 	u16 selector;  in get_segment_selector()  local
545 ctxt->ops->get_segment(ctxt, &selector, &desc, NULL, seg); in get_segment_selector()
546 return selector; in get_segment_selector()
549 static void set_segment_selector(struct x86_emulate_ctxt *ctxt, u16 selector, in set_segment_selector() argument
557 ctxt->ops->set_segment(ctxt, selector, &desc, base3, seg); in set_segment_selector()
1172 u16 selector, struct desc_ptr *dt) in get_descriptor_table_ptr() argument
1176 if (selector & 1 << 2) { in get_descriptor_table_ptr()
1192 u16 selector, struct desc_struct *desc) in read_segment_descriptor() argument
1195 u16 index = selector >> 3; in read_segment_descriptor()
1198 get_descriptor_table_ptr(ctxt, selector, &dt); in read_segment_descriptor()
1201 return emulate_gp(ctxt, selector & 0xfffc); in read_segment_descriptor()
1210 u16 selector, struct desc_struct *desc) in write_segment_descriptor() argument
1213 u16 index = selector >> 3; in write_segment_descriptor()
1216 get_descriptor_table_ptr(ctxt, selector, &dt); in write_segment_descriptor()
1219 return emulate_gp(ctxt, selector & 0xfffc); in write_segment_descriptor()
1228 u16 selector, int seg) in load_segment_descriptor() argument
1234 bool null_selector = !(selector & ~0x3); /* 0000-0003 are null */ in load_segment_descriptor()
1242 set_desc_base(&seg_desc, selector << 4); in load_segment_descriptor()
1258 if (seg == VCPU_SREG_TR && (selector & (1 << 2))) in load_segment_descriptor()
1264 ret = read_segment_descriptor(ctxt, selector, &seg_desc); in load_segment_descriptor()
1268 err_code = selector & 0xfffc; in load_segment_descriptor()
1280 rpl = selector & 3; in load_segment_descriptor()
1307 selector = (selector & 0xfffc) | cpl; in load_segment_descriptor()
1333 ret = write_segment_descriptor(ctxt, selector, &seg_desc); in load_segment_descriptor()
1338 ctxt->ops->set_segment(ctxt, selector, &seg_desc, 0, seg); in load_segment_descriptor()
1493 unsigned long selector; in em_pop_sreg() local
1496 rc = emulate_pop(ctxt, &selector, ctxt->op_bytes); in em_pop_sreg()
1500 rc = load_segment_descriptor(ctxt, (u16)selector, seg); in em_pop_sreg()
1887 u16 selector; in setup_syscalls_segments() local
1890 ctxt->ops->get_segment(ctxt, &selector, cs, NULL, VCPU_SREG_CS); in setup_syscalls_segments()