Searched refs:host_state (Results 1 – 6 of 6) sorted by relevance
470 WARN_ON(addr_is_memory(addr) && hyp_phys_to_page(addr)->host_state != PKVM_NOPAGE); in host_stage2_adjust_range()499 hyp_phys_to_page(addr)->host_state = state; in __host_update_page_state()623 if (hyp_phys_to_page(addr)->host_state != state) in __host_check_page_state_range()633 if (hyp_phys_to_page(addr)->host_state == PKVM_NOPAGE) { in __host_set_page_state_range()907 switch (page->host_state) { in __pkvm_host_share_guest()961 if (page->host_state != PKVM_PAGE_SHARED_OWNED) in __check_host_shared_guest()
204 hyp_phys_to_page(phys)->host_state = PKVM_PAGE_SHARED_BORROWED; in fix_host_ownership_walker()207 hyp_phys_to_page(phys)->host_state = PKVM_PAGE_SHARED_OWNED; in fix_host_ownership_walker()
1284 struct vmcs_host_state *host_state; in vmx_prepare_switch_to_guest() local1315 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() local1360 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()[all …]
74 struct vmcs_host_state host_state; member
281 src = &prev->host_state; in vmx_sync_vmcs_host_state()282 dest = &vmx->loaded_vmcs->host_state; in vmx_sync_vmcs_host_state()3229 if (unlikely(cr3 != vmx->loaded_vmcs->host_state.cr3)) { in nested_vmx_check_vmentry_hw()3231 vmx->loaded_vmcs->host_state.cr3 = cr3; in nested_vmx_check_vmentry_hw()3235 if (unlikely(cr4 != vmx->loaded_vmcs->host_state.cr4)) { in nested_vmx_check_vmentry_hw()3237 vmx->loaded_vmcs->host_state.cr4 = cr4; in nested_vmx_check_vmentry_hw()
48 enum pkvm_page_state host_state : 8; member