Lines Matching refs:host_state
1284 struct vmcs_host_state *host_state; in vmx_prepare_switch_to_guest() local
1315 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_guest()
1321 host_state->ldt_sel = kvm_read_ldt(); in vmx_prepare_switch_to_guest()
1324 savesegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_guest()
1325 savesegment(es, host_state->es_sel); in vmx_prepare_switch_to_guest()
1349 vmx_set_host_fs_gs(host_state, fs_sel, gs_sel, fs_base, gs_base); in vmx_prepare_switch_to_guest()
1355 struct vmcs_host_state *host_state; in vmx_prepare_switch_to_host() local
1360 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_host()
1367 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
1368 kvm_load_ldt(host_state->ldt_sel); in vmx_prepare_switch_to_host()
1370 load_gs_index(host_state->gs_sel); in vmx_prepare_switch_to_host()
1372 loadsegment(gs, host_state->gs_sel); in vmx_prepare_switch_to_host()
1375 if (host_state->fs_sel & 7) in vmx_prepare_switch_to_host()
1376 loadsegment(fs, host_state->fs_sel); in vmx_prepare_switch_to_host()
1378 if (unlikely(host_state->ds_sel | host_state->es_sel)) { in vmx_prepare_switch_to_host()
1379 loadsegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_host()
1380 loadsegment(es, host_state->es_sel); in vmx_prepare_switch_to_host()
2957 memset(&loaded_vmcs->host_state, 0, sizeof(struct vmcs_host_state)); in alloc_loaded_vmcs()
4340 vmx->loaded_vmcs->host_state.cr3 = cr3; in vmx_set_constant_host_state()
4345 vmx->loaded_vmcs->host_state.cr4 = cr4; in vmx_set_constant_host_state()
7246 if (unlikely(host_rsp != vmx->loaded_vmcs->host_state.rsp)) { in vmx_update_host_rsp()
7247 vmx->loaded_vmcs->host_state.rsp = host_rsp; in vmx_update_host_rsp()
7411 if (unlikely(cr3 != vmx->loaded_vmcs->host_state.cr3)) { in vmx_vcpu_run()
7413 vmx->loaded_vmcs->host_state.cr3 = cr3; in vmx_vcpu_run()
7417 if (unlikely(cr4 != vmx->loaded_vmcs->host_state.cr4)) { in vmx_vcpu_run()
7419 vmx->loaded_vmcs->host_state.cr4 = cr4; in vmx_vcpu_run()