Lines Matching refs:fs_sel
1228 void vmx_set_host_fs_gs(struct vmcs_host_state *host, u16 fs_sel, u16 gs_sel, in vmx_set_host_fs_gs() argument
1231 if (unlikely(fs_sel != host->fs_sel)) { in vmx_set_host_fs_gs()
1232 if (!(fs_sel & 7)) in vmx_set_host_fs_gs()
1233 vmcs_write16(HOST_FS_SELECTOR, fs_sel); in vmx_set_host_fs_gs()
1236 host->fs_sel = fs_sel; in vmx_set_host_fs_gs()
1263 u16 fs_sel, gs_sel; in vmx_prepare_switch_to_guest() local
1306 fs_sel = current->thread.fsindex; in vmx_prepare_switch_to_guest()
1311 savesegment(fs, fs_sel); in vmx_prepare_switch_to_guest()
1319 savesegment(fs, fs_sel); in vmx_prepare_switch_to_guest()
1321 fs_base = segment_base(fs_sel); in vmx_prepare_switch_to_guest()
1325 vmx_set_host_fs_gs(host_state, fs_sel, gs_sel, fs_base, gs_base); in vmx_prepare_switch_to_guest()
1351 if (host_state->fs_sel & 7) in vmx_prepare_switch_to_host()
1352 loadsegment(fs, host_state->fs_sel); in vmx_prepare_switch_to_host()