Lines Matching refs:host_state

1190 	struct vmcs_host_state *host_state;  in vmx_prepare_switch_to_guest()  local
1223 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_guest()
1229 host_state->ldt_sel = kvm_read_ldt(); in vmx_prepare_switch_to_guest()
1232 savesegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_guest()
1233 savesegment(es, host_state->es_sel); in vmx_prepare_switch_to_guest()
1257 vmx_set_host_fs_gs(host_state, fs_sel, gs_sel, fs_base, gs_base); in vmx_prepare_switch_to_guest()
1263 struct vmcs_host_state *host_state; in vmx_prepare_switch_to_host() local
1268 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_host()
1275 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
1276 kvm_load_ldt(host_state->ldt_sel); in vmx_prepare_switch_to_host()
1278 load_gs_index(host_state->gs_sel); in vmx_prepare_switch_to_host()
1280 loadsegment(gs, host_state->gs_sel); in vmx_prepare_switch_to_host()
1283 if (host_state->fs_sel & 7) in vmx_prepare_switch_to_host()
1284 loadsegment(fs, host_state->fs_sel); in vmx_prepare_switch_to_host()
1286 if (unlikely(host_state->ds_sel | host_state->es_sel)) { in vmx_prepare_switch_to_host()
1287 loadsegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_host()
1288 loadsegment(es, host_state->es_sel); in vmx_prepare_switch_to_host()
2794 memset(&loaded_vmcs->host_state, 0, sizeof(struct vmcs_host_state)); in alloc_loaded_vmcs()
4194 vmx->loaded_vmcs->host_state.cr3 = cr3; in vmx_set_constant_host_state()
4199 vmx->loaded_vmcs->host_state.cr4 = cr4; in vmx_set_constant_host_state()
7022 if (unlikely(host_rsp != vmx->loaded_vmcs->host_state.rsp)) { in vmx_update_host_rsp()
7023 vmx->loaded_vmcs->host_state.rsp = host_rsp; in vmx_update_host_rsp()
7149 if (unlikely(cr3 != vmx->loaded_vmcs->host_state.cr3)) { in vmx_vcpu_run()
7151 vmx->loaded_vmcs->host_state.cr3 = cr3; in vmx_vcpu_run()
7155 if (unlikely(cr4 != vmx->loaded_vmcs->host_state.cr4)) { in vmx_vcpu_run()
7157 vmx->loaded_vmcs->host_state.cr4 = cr4; in vmx_vcpu_run()