Lines Matching refs:host_state

1133 	struct vmcs_host_state *host_state;  in vmx_prepare_switch_to_guest()  local
1159 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_guest()
1165 host_state->ldt_sel = kvm_read_ldt(); in vmx_prepare_switch_to_guest()
1168 savesegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_guest()
1169 savesegment(es, host_state->es_sel); in vmx_prepare_switch_to_guest()
1193 vmx_set_host_fs_gs(host_state, fs_sel, gs_sel, fs_base, gs_base); in vmx_prepare_switch_to_guest()
1199 struct vmcs_host_state *host_state; in vmx_prepare_switch_to_host() local
1204 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_host()
1211 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
1212 kvm_load_ldt(host_state->ldt_sel); in vmx_prepare_switch_to_host()
1214 load_gs_index(host_state->gs_sel); in vmx_prepare_switch_to_host()
1216 loadsegment(gs, host_state->gs_sel); in vmx_prepare_switch_to_host()
1219 if (host_state->fs_sel & 7) in vmx_prepare_switch_to_host()
1220 loadsegment(fs, host_state->fs_sel); in vmx_prepare_switch_to_host()
1222 if (unlikely(host_state->ds_sel | host_state->es_sel)) { in vmx_prepare_switch_to_host()
1223 loadsegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_host()
1224 loadsegment(es, host_state->es_sel); in vmx_prepare_switch_to_host()
2600 memset(&loaded_vmcs->host_state, 0, sizeof(struct vmcs_host_state)); in alloc_loaded_vmcs()
3889 vmx->loaded_vmcs->host_state.cr3 = cr3; in vmx_set_constant_host_state()
3894 vmx->loaded_vmcs->host_state.cr4 = cr4; in vmx_set_constant_host_state()
6486 if (unlikely(host_rsp != vmx->loaded_vmcs->host_state.rsp)) { in vmx_update_host_rsp()
6487 vmx->loaded_vmcs->host_state.rsp = host_rsp; in vmx_update_host_rsp()
6523 if (unlikely(cr3 != vmx->loaded_vmcs->host_state.cr3)) { in vmx_vcpu_run()
6525 vmx->loaded_vmcs->host_state.cr3 = cr3; in vmx_vcpu_run()
6529 if (unlikely(cr4 != vmx->loaded_vmcs->host_state.cr4)) { in vmx_vcpu_run()
6531 vmx->loaded_vmcs->host_state.cr4 = cr4; in vmx_vcpu_run()