Lines Matching refs:gs_sel
1160 void vmx_set_host_fs_gs(struct vmcs_host_state *host, u16 fs_sel, u16 gs_sel, in vmx_set_host_fs_gs() argument
1170 if (unlikely(gs_sel != host->gs_sel)) { in vmx_set_host_fs_gs()
1171 if (!(gs_sel & 7)) in vmx_set_host_fs_gs()
1172 vmcs_write16(HOST_GS_SELECTOR, gs_sel); in vmx_set_host_fs_gs()
1175 host->gs_sel = gs_sel; in vmx_set_host_fs_gs()
1195 u16 fs_sel, gs_sel; in vmx_prepare_switch_to_guest() local
1239 gs_sel = current->thread.gsindex; in vmx_prepare_switch_to_guest()
1244 savesegment(gs, gs_sel); in vmx_prepare_switch_to_guest()
1252 savesegment(gs, gs_sel); in vmx_prepare_switch_to_guest()
1254 gs_base = segment_base(gs_sel); in vmx_prepare_switch_to_guest()
1257 vmx_set_host_fs_gs(host_state, fs_sel, gs_sel, fs_base, gs_base); in vmx_prepare_switch_to_guest()
1275 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
1278 load_gs_index(host_state->gs_sel); in vmx_prepare_switch_to_host()
1280 loadsegment(gs, host_state->gs_sel); in vmx_prepare_switch_to_host()