Lines Matching refs:gs_sel
1246 void vmx_set_host_fs_gs(struct vmcs_host_state *host, u16 fs_sel, u16 gs_sel, in vmx_set_host_fs_gs() argument
1256 if (unlikely(gs_sel != host->gs_sel)) { in vmx_set_host_fs_gs()
1257 if (!(gs_sel & 7)) in vmx_set_host_fs_gs()
1258 vmcs_write16(HOST_GS_SELECTOR, gs_sel); in vmx_set_host_fs_gs()
1261 host->gs_sel = gs_sel; in vmx_set_host_fs_gs()
1281 u16 fs_sel, gs_sel; in vmx_prepare_switch_to_guest() local
1322 gs_sel = current->thread.gsindex; in vmx_prepare_switch_to_guest()
1327 savesegment(gs, gs_sel); in vmx_prepare_switch_to_guest()
1335 savesegment(gs, gs_sel); in vmx_prepare_switch_to_guest()
1337 gs_base = segment_base(gs_sel); in vmx_prepare_switch_to_guest()
1340 vmx_set_host_fs_gs(host_state, fs_sel, gs_sel, fs_base, gs_base); in vmx_prepare_switch_to_guest()
1358 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
1361 load_gs_index(host_state->gs_sel); in vmx_prepare_switch_to_host()
1363 loadsegment(gs, host_state->gs_sel); in vmx_prepare_switch_to_host()