Lines Matching refs:fs_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
1249 if (unlikely(fs_sel != host->fs_sel)) { in vmx_set_host_fs_gs()
1250 if (!(fs_sel & 7)) in vmx_set_host_fs_gs()
1251 vmcs_write16(HOST_FS_SELECTOR, fs_sel); in vmx_set_host_fs_gs()
1254 host->fs_sel = fs_sel; in vmx_set_host_fs_gs()
1281 u16 fs_sel, gs_sel; in vmx_prepare_switch_to_guest() local
1321 fs_sel = current->thread.fsindex; in vmx_prepare_switch_to_guest()
1326 savesegment(fs, fs_sel); in vmx_prepare_switch_to_guest()
1334 savesegment(fs, fs_sel); in vmx_prepare_switch_to_guest()
1336 fs_base = segment_base(fs_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()
1366 if (host_state->fs_sel & 7) in vmx_prepare_switch_to_host()
1367 loadsegment(fs, host_state->fs_sel); in vmx_prepare_switch_to_host()