Lines Matching refs:qseg
36 SegmentCache *qseg, bool is_tr) in hvf_set_segment() argument
38 vmx_seg->sel = qseg->selector; in hvf_set_segment()
39 vmx_seg->base = qseg->base; in hvf_set_segment()
40 vmx_seg->limit = qseg->limit; in hvf_set_segment()
42 if (!qseg->selector && !x86_is_real(cs) && !is_tr) { in hvf_set_segment()
48 vmx_seg->ar = (qseg->flags >> DESC_TYPE_SHIFT) & 0xf; in hvf_set_segment()
49 vmx_seg->ar |= ((qseg->flags >> DESC_G_SHIFT) & 1) << 15; in hvf_set_segment()
50 vmx_seg->ar |= ((qseg->flags >> DESC_B_SHIFT) & 1) << 14; in hvf_set_segment()
51 vmx_seg->ar |= ((qseg->flags >> DESC_L_SHIFT) & 1) << 13; in hvf_set_segment()
52 vmx_seg->ar |= ((qseg->flags >> DESC_AVL_SHIFT) & 1) << 12; in hvf_set_segment()
53 vmx_seg->ar |= ((qseg->flags >> DESC_P_SHIFT) & 1) << 7; in hvf_set_segment()
54 vmx_seg->ar |= ((qseg->flags >> DESC_DPL_SHIFT) & 3) << 5; in hvf_set_segment()
55 vmx_seg->ar |= ((qseg->flags >> DESC_S_SHIFT) & 1) << 4; in hvf_set_segment()
58 void hvf_get_segment(SegmentCache *qseg, struct vmx_segment *vmx_seg) in hvf_get_segment() argument
60 qseg->limit = vmx_seg->limit; in hvf_get_segment()
61 qseg->base = vmx_seg->base; in hvf_get_segment()
62 qseg->selector = vmx_seg->sel; in hvf_get_segment()
63 qseg->flags = ((vmx_seg->ar & 0xf) << DESC_TYPE_SHIFT) | in hvf_get_segment()