Lines Matching defs:vcpu

151 static int nested_vmx_succeed(struct kvm_vcpu *vcpu)  in nested_vmx_succeed()
159 static int nested_vmx_failInvalid(struct kvm_vcpu *vcpu) in nested_vmx_failInvalid()
168 static int nested_vmx_failValid(struct kvm_vcpu *vcpu, in nested_vmx_failValid()
187 static int nested_vmx_fail(struct kvm_vcpu *vcpu, u32 vm_instruction_error) in nested_vmx_fail()
202 static void nested_vmx_abort(struct kvm_vcpu *vcpu, u32 indicator) in nested_vmx_abort()
226 static inline void nested_release_evmcs(struct kvm_vcpu *vcpu) in nested_release_evmcs()
257 static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs) in vmx_switch_vmcs()
286 static void free_nested(struct kvm_vcpu *vcpu) in free_nested()
334 void nested_vmx_free_vcpu(struct kvm_vcpu *vcpu) in nested_vmx_free_vcpu()
349 static void nested_ept_invalidate_addr(struct kvm_vcpu *vcpu, gpa_t eptp, in nested_ept_invalidate_addr()
366 static void nested_ept_inject_page_fault(struct kvm_vcpu *vcpu, in nested_ept_inject_page_fault()
399 static void nested_ept_new_eptp(struct kvm_vcpu *vcpu) in nested_ept_new_eptp()
410 static void nested_ept_init_mmu_context(struct kvm_vcpu *vcpu) in nested_ept_init_mmu_context()
423 static void nested_ept_uninit_mmu_context(struct kvm_vcpu *vcpu) in nested_ept_uninit_mmu_context()
446 static int nested_vmx_check_exception(struct kvm_vcpu *vcpu, unsigned long *exit_qual) in nested_vmx_check_exception()
479 static bool nested_vmx_handle_page_fault_workaround(struct kvm_vcpu *vcpu, in nested_vmx_handle_page_fault_workaround()
498 static int nested_vmx_check_io_bitmap_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_io_bitmap_controls()
511 static int nested_vmx_check_msr_bitmap_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_msr_bitmap_controls()
523 static int nested_vmx_check_tpr_shadow_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_tpr_shadow_controls()
595 static inline bool nested_vmx_prepare_msr_bitmap(struct kvm_vcpu *vcpu, in nested_vmx_prepare_msr_bitmap()
694 static void nested_cache_shadow_vmcs12(struct kvm_vcpu *vcpu, in nested_cache_shadow_vmcs12()
713 static void nested_flush_cached_shadow_vmcs12(struct kvm_vcpu *vcpu, in nested_flush_cached_shadow_vmcs12()
736 static bool nested_exit_intr_ack_set(struct kvm_vcpu *vcpu) in nested_exit_intr_ack_set()
742 static int nested_vmx_check_apic_access_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_apic_access_controls()
752 static int nested_vmx_check_apicv_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_apicv_controls()
797 static int nested_vmx_check_msr_switch(struct kvm_vcpu *vcpu, in nested_vmx_check_msr_switch()
810 static int nested_vmx_check_exit_msr_switch_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_exit_msr_switch_controls()
824 static int nested_vmx_check_entry_msr_switch_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_entry_msr_switch_controls()
835 static int nested_vmx_check_pml_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_pml_controls()
848 static int nested_vmx_check_unrestricted_guest_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_unrestricted_guest_controls()
857 static int nested_vmx_check_mode_based_ept_exec_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_mode_based_ept_exec_controls()
866 static int nested_vmx_check_shadow_vmcs_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_shadow_vmcs_controls()
879 static int nested_vmx_msr_check_common(struct kvm_vcpu *vcpu, in nested_vmx_msr_check_common()
893 static int nested_vmx_load_msr_check(struct kvm_vcpu *vcpu, in nested_vmx_load_msr_check()
904 static int nested_vmx_store_msr_check(struct kvm_vcpu *vcpu, in nested_vmx_store_msr_check()
913 static u32 nested_vmx_max_atomic_switch_msrs(struct kvm_vcpu *vcpu) in nested_vmx_max_atomic_switch_msrs()
931 static u32 nested_vmx_load_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) in nested_vmx_load_msr()
967 static bool nested_vmx_get_vmexit_msr_value(struct kvm_vcpu *vcpu, in nested_vmx_get_vmexit_msr_value()
998 static bool read_and_check_msr_entry(struct kvm_vcpu *vcpu, u64 gpa, int i, in read_and_check_msr_entry()
1018 static int nested_vmx_store_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) in nested_vmx_store_msr()
1048 static bool nested_msr_store_list_has_msr(struct kvm_vcpu *vcpu, u32 msr_index) in nested_msr_store_list_has_msr()
1066 static void prepare_vmx_msr_autostore_list(struct kvm_vcpu *vcpu, in prepare_vmx_msr_autostore_list()
1108 static int nested_vmx_load_cr3(struct kvm_vcpu *vcpu, unsigned long cr3, in nested_vmx_load_cr3()
1152 static bool nested_has_guest_tlb_tag(struct kvm_vcpu *vcpu) in nested_has_guest_tlb_tag()
1160 static void nested_vmx_transition_tlb_flush(struct kvm_vcpu *vcpu, in nested_vmx_transition_tlb_flush()
1383 int vmx_set_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data) in vmx_set_vmx_msr()
1978 struct kvm_vcpu *vcpu, bool from_launch) in nested_vmx_handle_enlightened_vmptrld()
2062 void nested_sync_vmcs12_to_shadow(struct kvm_vcpu *vcpu) in nested_sync_vmcs12_to_shadow()
2086 static u64 vmx_calc_preemption_timer_value(struct kvm_vcpu *vcpu) in vmx_calc_preemption_timer_value()
2102 static void vmx_start_preemption_timer(struct kvm_vcpu *vcpu, in vmx_start_preemption_timer()
2499 static int prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12, in prepare_vmcs02()
2656 static bool nested_vmx_check_eptp(struct kvm_vcpu *vcpu, u64 new_eptp) in nested_vmx_check_eptp()
2704 static int nested_check_vm_execution_controls(struct kvm_vcpu *vcpu, in nested_check_vm_execution_controls()
2763 static int nested_check_vm_exit_controls(struct kvm_vcpu *vcpu, in nested_check_vm_exit_controls()
2780 static int nested_check_vm_entry_controls(struct kvm_vcpu *vcpu, in nested_check_vm_entry_controls()
2852 static int nested_vmx_check_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_controls()
2866 static int nested_vmx_check_address_space_size(struct kvm_vcpu *vcpu, in nested_vmx_check_address_space_size()
2877 static int nested_vmx_check_host_state(struct kvm_vcpu *vcpu, in nested_vmx_check_host_state()
2952 static int nested_vmx_check_vmcs_link_ptr(struct kvm_vcpu *vcpu, in nested_vmx_check_vmcs_link_ptr()
2995 static int nested_vmx_check_guest_state(struct kvm_vcpu *vcpu, in nested_vmx_check_guest_state()
3055 static int nested_vmx_check_vmentry_hw(struct kvm_vcpu *vcpu) in nested_vmx_check_vmentry_hw()
3133 static bool nested_get_evmcs_page(struct kvm_vcpu *vcpu) in nested_get_evmcs_page()
3161 static bool nested_get_vmcs12_pages(struct kvm_vcpu *vcpu) in nested_get_vmcs12_pages()
3262 static bool vmx_get_nested_state_pages(struct kvm_vcpu *vcpu) in vmx_get_nested_state_pages()
3281 static int nested_vmx_write_pml_buffer(struct kvm_vcpu *vcpu, gpa_t gpa) in nested_vmx_write_pml_buffer()
3325 static int nested_vmx_check_permission(struct kvm_vcpu *vcpu) in nested_vmx_check_permission()
3340 static u8 vmx_has_apicv_interrupt(struct kvm_vcpu *vcpu) in vmx_has_apicv_interrupt()
3361 enum nvmx_vmentry_status nested_vmx_enter_non_root_mode(struct kvm_vcpu *vcpu, in nested_vmx_enter_non_root_mode()
3522 static int nested_vmx_run(struct kvm_vcpu *vcpu, bool launch) in nested_vmx_run()
3680 vmcs12_guest_cr0(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in vmcs12_guest_cr0()
3690 vmcs12_guest_cr4(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in vmcs12_guest_cr4()
3699 static void vmcs12_save_pending_event(struct kvm_vcpu *vcpu, in vmcs12_save_pending_event()
3766 void nested_mark_vmcs12_pages_dirty(struct kvm_vcpu *vcpu) in nested_mark_vmcs12_pages_dirty()
3787 static int vmx_complete_nested_posted_interrupt(struct kvm_vcpu *vcpu) in vmx_complete_nested_posted_interrupt()
3829 static void nested_vmx_inject_exception_vmexit(struct kvm_vcpu *vcpu, in nested_vmx_inject_exception_vmexit()
3859 static inline bool vmx_pending_dbg_trap(struct kvm_vcpu *vcpu) in vmx_pending_dbg_trap()
3873 static void nested_vmx_update_pending_dbg(struct kvm_vcpu *vcpu) in nested_vmx_update_pending_dbg()
3880 static bool nested_vmx_preemption_timer_pending(struct kvm_vcpu *vcpu) in nested_vmx_preemption_timer_pending()
3886 static int vmx_check_nested_events(struct kvm_vcpu *vcpu) in vmx_check_nested_events()
4004 static u32 vmx_get_preemption_timer_value(struct kvm_vcpu *vcpu) in vmx_get_preemption_timer_value()
4065 static void sync_vmcs02_to_vmcs12_rare(struct kvm_vcpu *vcpu, in sync_vmcs02_to_vmcs12_rare()
4112 static void copy_vmcs02_to_vmcs12_rare(struct kvm_vcpu *vcpu, in copy_vmcs02_to_vmcs12_rare()
4141 static void sync_vmcs02_to_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in sync_vmcs02_to_vmcs12()
4222 static void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12, in prepare_vmcs12()
4286 static void load_vmcs12_host_state(struct kvm_vcpu *vcpu, in load_vmcs12_host_state()
4434 static void nested_vmx_restore_host_state(struct kvm_vcpu *vcpu) in nested_vmx_restore_host_state()
4544 void nested_vmx_vmexit(struct kvm_vcpu *vcpu, u32 vm_exit_reason, in nested_vmx_vmexit()
4704 static void nested_vmx_triple_fault(struct kvm_vcpu *vcpu) in nested_vmx_triple_fault()
4715 int get_vmx_mem_address(struct kvm_vcpu *vcpu, unsigned long exit_qualification, in get_vmx_mem_address()
4839 void nested_vmx_pmu_refresh(struct kvm_vcpu *vcpu, in nested_vmx_pmu_refresh()
4861 static int nested_vmx_get_vmptr(struct kvm_vcpu *vcpu, gpa_t *vmpointer, in nested_vmx_get_vmptr()
4889 static struct vmcs *alloc_shadow_vmcs(struct kvm_vcpu *vcpu) in alloc_shadow_vmcs()
4912 static int enter_vmx_operation(struct kvm_vcpu *vcpu) in enter_vmx_operation()
4963 static int handle_vmon(struct kvm_vcpu *vcpu) in handle_vmon()
5032 static inline void nested_release_vmcs12(struct kvm_vcpu *vcpu) in nested_release_vmcs12()
5060 static int handle_vmoff(struct kvm_vcpu *vcpu) in handle_vmoff()
5074 static int handle_vmclear(struct kvm_vcpu *vcpu) in handle_vmclear()
5121 static int handle_vmlaunch(struct kvm_vcpu *vcpu) in handle_vmlaunch()
5127 static int handle_vmresume(struct kvm_vcpu *vcpu) in handle_vmresume()
5133 static int handle_vmread(struct kvm_vcpu *vcpu) in handle_vmread()
5239 static int handle_vmwrite(struct kvm_vcpu *vcpu) in handle_vmwrite()
5360 static int handle_vmptrld(struct kvm_vcpu *vcpu) in handle_vmptrld()
5430 static int handle_vmptrst(struct kvm_vcpu *vcpu) in handle_vmptrst()
5458 static int handle_invept(struct kvm_vcpu *vcpu) in handle_invept()
5538 static int handle_invvpid(struct kvm_vcpu *vcpu) in handle_invvpid()
5627 static int nested_vmx_eptp_switching(struct kvm_vcpu *vcpu, in nested_vmx_eptp_switching()
5660 static int handle_vmfunc(struct kvm_vcpu *vcpu) in handle_vmfunc()
5716 bool nested_vmx_check_io_bitmaps(struct kvm_vcpu *vcpu, unsigned int port, in nested_vmx_check_io_bitmaps()
5749 static bool nested_vmx_exit_handled_io(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_io()
5773 static bool nested_vmx_exit_handled_msr(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_msr()
5811 static bool nested_vmx_exit_handled_cr(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_cr()
5881 static bool nested_vmx_exit_handled_encls(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_encls()
5896 static bool nested_vmx_exit_handled_vmcs_access(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_vmcs_access()
5941 static bool nested_vmx_l0_wants_exit(struct kvm_vcpu *vcpu, in nested_vmx_l0_wants_exit()
6012 static bool nested_vmx_l1_wants_exit(struct kvm_vcpu *vcpu, in nested_vmx_l1_wants_exit()
6136 bool nested_vmx_reflect_vmexit(struct kvm_vcpu *vcpu) in nested_vmx_reflect_vmexit()
6188 static int vmx_get_nested_state(struct kvm_vcpu *vcpu, in vmx_get_nested_state()
6314 void vmx_leave_nested(struct kvm_vcpu *vcpu) in vmx_leave_nested()
6323 static int vmx_set_nested_state(struct kvm_vcpu *vcpu, in vmx_set_nested_state()