Lines Matching refs:gs_sel
382 u16 fs_sel, gs_sel, ldt_sel; member
2871 u16 fs_sel, gs_sel; in vmx_prepare_switch_to_guest() local
2896 gs_sel = current->thread.gsindex; in vmx_prepare_switch_to_guest()
2901 savesegment(gs, gs_sel); in vmx_prepare_switch_to_guest()
2909 savesegment(gs, gs_sel); in vmx_prepare_switch_to_guest()
2911 gs_base = segment_base(gs_sel); in vmx_prepare_switch_to_guest()
2921 if (unlikely(gs_sel != host_state->gs_sel)) { in vmx_prepare_switch_to_guest()
2922 if (!(gs_sel & 7)) in vmx_prepare_switch_to_guest()
2923 vmcs_write16(HOST_GS_SELECTOR, gs_sel); in vmx_prepare_switch_to_guest()
2926 host_state->gs_sel = gs_sel; in vmx_prepare_switch_to_guest()
2959 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
2962 load_gs_index(host_state->gs_sel); in vmx_prepare_switch_to_host()
2964 loadsegment(gs, host_state->gs_sel); in vmx_prepare_switch_to_host()