Lines Matching refs:host_state

1258 	struct vmcs_host_state *host_state;  in vmx_prepare_switch_to_guest()  local
1291 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_guest()
1297 host_state->ldt_sel = kvm_read_ldt(); in vmx_prepare_switch_to_guest()
1300 savesegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_guest()
1301 savesegment(es, host_state->es_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()
1331 struct vmcs_host_state *host_state; in vmx_prepare_switch_to_host() local
1336 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_host()
1343 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
1344 kvm_load_ldt(host_state->ldt_sel); in vmx_prepare_switch_to_host()
1346 load_gs_index(host_state->gs_sel); in vmx_prepare_switch_to_host()
1348 loadsegment(gs, host_state->gs_sel); in vmx_prepare_switch_to_host()
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()
1354 if (unlikely(host_state->ds_sel | host_state->es_sel)) { in vmx_prepare_switch_to_host()
1355 loadsegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_host()
1356 loadsegment(es, host_state->es_sel); in vmx_prepare_switch_to_host()
2923 memset(&loaded_vmcs->host_state, 0, sizeof(struct vmcs_host_state)); in alloc_loaded_vmcs()
4295 vmx->loaded_vmcs->host_state.cr3 = cr3; in vmx_set_constant_host_state()
4300 vmx->loaded_vmcs->host_state.cr4 = cr4; in vmx_set_constant_host_state()
7133 if (unlikely(host_rsp != vmx->loaded_vmcs->host_state.rsp)) { in vmx_update_host_rsp()
7134 vmx->loaded_vmcs->host_state.rsp = host_rsp; in vmx_update_host_rsp()
7273 if (unlikely(cr3 != vmx->loaded_vmcs->host_state.cr3)) { in vmx_vcpu_run()
7275 vmx->loaded_vmcs->host_state.cr3 = cr3; in vmx_vcpu_run()
7279 if (unlikely(cr4 != vmx->loaded_vmcs->host_state.cr4)) { in vmx_vcpu_run()
7281 vmx->loaded_vmcs->host_state.cr4 = cr4; in vmx_vcpu_run()