Lines Matching refs:selector
486 .selector = GUEST_##seg##_SELECTOR, \
493 unsigned selector; member
835 u16 *p = &vmx->segment_cache.seg[seg].selector; in vmx_read_guest_seg_selector()
838 *p = vmcs_read16(kvm_vmx_segment_fields[seg].selector); in vmx_read_guest_seg_selector()
1151 static unsigned long segment_base(u16 selector) in segment_base() argument
1156 if (!(selector & ~SEGMENT_RPL_MASK)) in segment_base()
1161 if ((selector & SEGMENT_TI_MASK) == SEGMENT_LDT) { in segment_base()
1169 v = get_desc_base(&table[selector >> 3]); in segment_base()
2798 save->selector &= ~SEGMENT_RPL_MASK; in fix_pmode_seg()
2799 save->dpl = save->selector & SEGMENT_RPL_MASK; in fix_pmode_seg()
2853 var.selector = var.base >> 4; in fix_rmode_seg()
2870 vmcs_write16(sf->selector, var.selector); in fix_rmode_seg()
3296 || var->selector == vmx_read_guest_seg_selector(vmx, seg)) in vmx_get_segment()
3299 var->selector = vmx_read_guest_seg_selector(vmx, seg); in vmx_get_segment()
3304 var->selector = vmx_read_guest_seg_selector(vmx, seg); in vmx_get_segment()
3374 vmcs_write16(sf->selector, var->selector); in vmx_set_segment()
3382 vmcs_write16(sf->selector, var->selector); in vmx_set_segment()
3447 if (var.base != (var.selector << 4)) in rmode_segment_valid()
3463 cs_rpl = cs.selector & SEGMENT_RPL_MASK; in code_segment_valid()
3491 ss_rpl = ss.selector & SEGMENT_RPL_MASK; in stack_segment_valid()
3513 rpl = var.selector & SEGMENT_RPL_MASK; in data_segment_valid()
3540 if (tr.selector & SEGMENT_TI_MASK) /* TI = 1 */ in tr_valid()
3558 if (ldtr.selector & SEGMENT_TI_MASK) /* TI = 1 */ in ldtr_valid()
3575 return ((cs.selector & SEGMENT_RPL_MASK) == in cs_ss_rpl_check()
3576 (ss.selector & SEGMENT_RPL_MASK)); in cs_ss_rpl_check()
3706 vmcs_write16(sf->selector, 0); in seg_setup()