Home
last modified time | relevance | path

Searched refs:host_state (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/arch/x86/kvm/vmx/
Dvmcs.h71 struct vmcs_host_state host_state; member
Dvmx.c1198 struct vmcs_host_state *host_state; in vmx_prepare_switch_to_guest() local
1228 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_guest()
1234 host_state->ldt_sel = kvm_read_ldt(); in vmx_prepare_switch_to_guest()
1237 savesegment(ds, host_state->ds_sel); in vmx_prepare_switch_to_guest()
1238 savesegment(es, host_state->es_sel); in vmx_prepare_switch_to_guest()
1262 vmx_set_host_fs_gs(host_state, fs_sel, gs_sel, fs_base, gs_base); in vmx_prepare_switch_to_guest()
1268 struct vmcs_host_state *host_state; in vmx_prepare_switch_to_host() local
1273 host_state = &vmx->loaded_vmcs->host_state; in vmx_prepare_switch_to_host()
1280 if (host_state->ldt_sel || (host_state->gs_sel & 7)) { in vmx_prepare_switch_to_host()
1281 kvm_load_ldt(host_state->ldt_sel); in vmx_prepare_switch_to_host()
[all …]
Dnested.c244 src = &prev->host_state; in vmx_sync_vmcs_host_state()
245 dest = &vmx->loaded_vmcs->host_state; in vmx_sync_vmcs_host_state()
3048 if (unlikely(cr3 != vmx->loaded_vmcs->host_state.cr3)) { in nested_vmx_check_vmentry_hw()
3050 vmx->loaded_vmcs->host_state.cr3 = cr3; in nested_vmx_check_vmentry_hw()
3054 if (unlikely(cr4 != vmx->loaded_vmcs->host_state.cr4)) { in nested_vmx_check_vmentry_hw()
3056 vmx->loaded_vmcs->host_state.cr4 = cr4; in nested_vmx_check_vmentry_hw()
3084 [host_state_rsp]"i"(offsetof(struct loaded_vmcs, host_state.rsp)), in nested_vmx_check_vmentry_hw()