Lines Matching refs:gs_sel
1255 void vmx_set_host_fs_gs(struct vmcs_host_state *host, u16 fs_sel, u16 gs_sel, in vmx_set_host_fs_gs() argument
1265 if (unlikely(gs_sel != host->gs_sel)) { in vmx_set_host_fs_gs()
1266 if (!(gs_sel & 7)) in vmx_set_host_fs_gs()
1267 vmcs_write16(HOST_GS_SELECTOR, gs_sel); in vmx_set_host_fs_gs()
1270 host->gs_sel = gs_sel; in vmx_set_host_fs_gs()
1290 u16 fs_sel, gs_sel; in vmx_prepare_switch_to_guest() local
1332 gs_sel = current->thread.gsindex; in vmx_prepare_switch_to_guest()
1337 savesegment(gs, gs_sel); in vmx_prepare_switch_to_guest()
1345 savesegment(gs, gs_sel); in vmx_prepare_switch_to_guest()
1347 gs_base = segment_base(gs_sel); in vmx_prepare_switch_to_guest()
1350 vmx_set_host_fs_gs(host_state, fs_sel, gs_sel, fs_base, gs_base); in vmx_prepare_switch_to_guest()
1368 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
1371 load_gs_index(host_state->gs_sel); in vmx_prepare_switch_to_host()
1373 loadsegment(gs, host_state->gs_sel); in vmx_prepare_switch_to_host()