Lines Matching defs:vcpu
155 static int nested_vmx_succeed(struct kvm_vcpu *vcpu) in nested_vmx_succeed()
163 static int nested_vmx_failInvalid(struct kvm_vcpu *vcpu) in nested_vmx_failInvalid()
172 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()
201 static void nested_vmx_abort(struct kvm_vcpu *vcpu, u32 indicator) in nested_vmx_abort()
225 static inline void nested_release_evmcs(struct kvm_vcpu *vcpu) in nested_release_evmcs()
256 static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs) in vmx_switch_vmcs()
279 static void free_nested(struct kvm_vcpu *vcpu) in free_nested()
326 void nested_vmx_free_vcpu(struct kvm_vcpu *vcpu) in nested_vmx_free_vcpu()
333 static void nested_ept_inject_page_fault(struct kvm_vcpu *vcpu, in nested_ept_inject_page_fault()
354 static void nested_ept_init_mmu_context(struct kvm_vcpu *vcpu) in nested_ept_init_mmu_context()
371 static void nested_ept_uninit_mmu_context(struct kvm_vcpu *vcpu) in nested_ept_uninit_mmu_context()
394 static int nested_vmx_check_exception(struct kvm_vcpu *vcpu, unsigned long *exit_qual) in nested_vmx_check_exception()
428 static void vmx_inject_page_fault_nested(struct kvm_vcpu *vcpu, in vmx_inject_page_fault_nested()
447 static int nested_vmx_check_io_bitmap_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_io_bitmap_controls()
460 static int nested_vmx_check_msr_bitmap_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_msr_bitmap_controls()
472 static int nested_vmx_check_tpr_shadow_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_tpr_shadow_controls()
487 static bool msr_write_intercepted_l01(struct kvm_vcpu *vcpu, u32 msr) in msr_write_intercepted_l01()
564 static inline bool nested_vmx_prepare_msr_bitmap(struct kvm_vcpu *vcpu, in nested_vmx_prepare_msr_bitmap()
663 static void nested_cache_shadow_vmcs12(struct kvm_vcpu *vcpu, in nested_cache_shadow_vmcs12()
682 static void nested_flush_cached_shadow_vmcs12(struct kvm_vcpu *vcpu, in nested_flush_cached_shadow_vmcs12()
699 static bool nested_exit_intr_ack_set(struct kvm_vcpu *vcpu) in nested_exit_intr_ack_set()
705 static int nested_vmx_check_apic_access_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_apic_access_controls()
715 static int nested_vmx_check_apicv_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_apicv_controls()
761 static int nested_vmx_check_msr_switch(struct kvm_vcpu *vcpu, in nested_vmx_check_msr_switch()
776 static int nested_vmx_check_exit_msr_switch_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_exit_msr_switch_controls()
790 static int nested_vmx_check_entry_msr_switch_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_entry_msr_switch_controls()
801 static int nested_vmx_check_pml_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_pml_controls()
814 static int nested_vmx_check_unrestricted_guest_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_unrestricted_guest_controls()
823 static int nested_vmx_check_mode_based_ept_exec_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_mode_based_ept_exec_controls()
832 static int nested_vmx_check_shadow_vmcs_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_shadow_vmcs_controls()
845 static int nested_vmx_msr_check_common(struct kvm_vcpu *vcpu, in nested_vmx_msr_check_common()
859 static int nested_vmx_load_msr_check(struct kvm_vcpu *vcpu, in nested_vmx_load_msr_check()
870 static int nested_vmx_store_msr_check(struct kvm_vcpu *vcpu, in nested_vmx_store_msr_check()
879 static u32 nested_vmx_max_atomic_switch_msrs(struct kvm_vcpu *vcpu) in nested_vmx_max_atomic_switch_msrs()
897 static u32 nested_vmx_load_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) in nested_vmx_load_msr()
933 static bool nested_vmx_get_vmexit_msr_value(struct kvm_vcpu *vcpu, in nested_vmx_get_vmexit_msr_value()
964 static bool read_and_check_msr_entry(struct kvm_vcpu *vcpu, u64 gpa, int i, in read_and_check_msr_entry()
984 static int nested_vmx_store_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) in nested_vmx_store_msr()
1014 static bool nested_msr_store_list_has_msr(struct kvm_vcpu *vcpu, u32 msr_index) in nested_msr_store_list_has_msr()
1032 static void prepare_vmx_msr_autostore_list(struct kvm_vcpu *vcpu, in prepare_vmx_msr_autostore_list()
1068 static bool nested_cr3_valid(struct kvm_vcpu *vcpu, unsigned long val) in nested_cr3_valid()
1113 static bool nested_vmx_transition_mmu_sync(struct kvm_vcpu *vcpu) in nested_vmx_transition_mmu_sync()
1124 static int nested_vmx_load_cr3(struct kvm_vcpu *vcpu, unsigned long cr3, bool nested_ept, in nested_vmx_load_cr3()
1181 static bool nested_has_guest_tlb_tag(struct kvm_vcpu *vcpu) in nested_has_guest_tlb_tag()
1189 static void nested_vmx_transition_tlb_flush(struct kvm_vcpu *vcpu, in nested_vmx_transition_tlb_flush()
1401 int vmx_set_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data) in vmx_set_vmx_msr()
1996 struct kvm_vcpu *vcpu, bool from_launch) in nested_vmx_handle_enlightened_vmptrld()
2078 void nested_sync_vmcs12_to_shadow(struct kvm_vcpu *vcpu) in nested_sync_vmcs12_to_shadow()
2106 static u64 vmx_calc_preemption_timer_value(struct kvm_vcpu *vcpu) in vmx_calc_preemption_timer_value()
2122 static void vmx_start_preemption_timer(struct kvm_vcpu *vcpu, in vmx_start_preemption_timer()
2511 static int prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12, in prepare_vmcs02()
2646 static bool nested_vmx_check_eptp(struct kvm_vcpu *vcpu, u64 new_eptp) in nested_vmx_check_eptp()
2695 static int nested_check_vm_execution_controls(struct kvm_vcpu *vcpu, in nested_check_vm_execution_controls()
2754 static int nested_check_vm_exit_controls(struct kvm_vcpu *vcpu, in nested_check_vm_exit_controls()
2771 static int nested_check_vm_entry_controls(struct kvm_vcpu *vcpu, in nested_check_vm_entry_controls()
2843 static int nested_vmx_check_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_controls()
2857 static int nested_vmx_check_address_space_size(struct kvm_vcpu *vcpu, in nested_vmx_check_address_space_size()
2868 static int nested_vmx_check_host_state(struct kvm_vcpu *vcpu, in nested_vmx_check_host_state()
2943 static int nested_vmx_check_vmcs_link_ptr(struct kvm_vcpu *vcpu, in nested_vmx_check_vmcs_link_ptr()
2981 static int nested_vmx_check_guest_state(struct kvm_vcpu *vcpu, in nested_vmx_check_guest_state()
3041 static int nested_vmx_check_vmentry_hw(struct kvm_vcpu *vcpu) in nested_vmx_check_vmentry_hw()
3119 static bool nested_get_evmcs_page(struct kvm_vcpu *vcpu) in nested_get_evmcs_page()
3140 static bool nested_get_vmcs12_pages(struct kvm_vcpu *vcpu) in nested_get_vmcs12_pages()
3220 static bool vmx_get_nested_state_pages(struct kvm_vcpu *vcpu) in vmx_get_nested_state_pages()
3239 static int nested_vmx_write_pml_buffer(struct kvm_vcpu *vcpu, gpa_t gpa) in nested_vmx_write_pml_buffer()
3283 static int nested_vmx_check_permission(struct kvm_vcpu *vcpu) in nested_vmx_check_permission()
3298 static u8 vmx_has_apicv_interrupt(struct kvm_vcpu *vcpu) in vmx_has_apicv_interrupt()
3319 enum nvmx_vmentry_status nested_vmx_enter_non_root_mode(struct kvm_vcpu *vcpu, in nested_vmx_enter_non_root_mode()
3481 static int nested_vmx_run(struct kvm_vcpu *vcpu, bool launch) in nested_vmx_run()
3625 vmcs12_guest_cr0(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in vmcs12_guest_cr0()
3635 vmcs12_guest_cr4(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in vmcs12_guest_cr4()
3644 static void vmcs12_save_pending_event(struct kvm_vcpu *vcpu, in vmcs12_save_pending_event()
3687 void nested_mark_vmcs12_pages_dirty(struct kvm_vcpu *vcpu) in nested_mark_vmcs12_pages_dirty()
3708 static void vmx_complete_nested_posted_interrupt(struct kvm_vcpu *vcpu) in vmx_complete_nested_posted_interrupt()
3741 static void nested_vmx_inject_exception_vmexit(struct kvm_vcpu *vcpu, in nested_vmx_inject_exception_vmexit()
3771 static inline bool vmx_pending_dbg_trap(struct kvm_vcpu *vcpu) in vmx_pending_dbg_trap()
3785 static void nested_vmx_update_pending_dbg(struct kvm_vcpu *vcpu) in nested_vmx_update_pending_dbg()
3792 static bool nested_vmx_preemption_timer_pending(struct kvm_vcpu *vcpu) in nested_vmx_preemption_timer_pending()
3798 static int vmx_check_nested_events(struct kvm_vcpu *vcpu) in vmx_check_nested_events()
3898 static u32 vmx_get_preemption_timer_value(struct kvm_vcpu *vcpu) in vmx_get_preemption_timer_value()
3959 static void sync_vmcs02_to_vmcs12_rare(struct kvm_vcpu *vcpu, in sync_vmcs02_to_vmcs12_rare()
4006 static void copy_vmcs02_to_vmcs12_rare(struct kvm_vcpu *vcpu, in copy_vmcs02_to_vmcs12_rare()
4035 static void sync_vmcs02_to_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in sync_vmcs02_to_vmcs12()
4113 static void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12, in prepare_vmcs12()
4170 static void load_vmcs12_host_state(struct kvm_vcpu *vcpu, in load_vmcs12_host_state()
4317 static void nested_vmx_restore_host_state(struct kvm_vcpu *vcpu) in nested_vmx_restore_host_state()
4430 void nested_vmx_vmexit(struct kvm_vcpu *vcpu, u32 vm_exit_reason, in nested_vmx_vmexit()
4595 int get_vmx_mem_address(struct kvm_vcpu *vcpu, unsigned long exit_qualification, in get_vmx_mem_address()
4719 void nested_vmx_pmu_entry_exit_ctls_update(struct kvm_vcpu *vcpu) in nested_vmx_pmu_entry_exit_ctls_update()
4740 static int nested_vmx_get_vmptr(struct kvm_vcpu *vcpu, gpa_t *vmpointer, in nested_vmx_get_vmptr()
4768 static struct vmcs *alloc_shadow_vmcs(struct kvm_vcpu *vcpu) in alloc_shadow_vmcs()
4789 static int enter_vmx_operation(struct kvm_vcpu *vcpu) in enter_vmx_operation()
4846 static int handle_vmon(struct kvm_vcpu *vcpu) in handle_vmon()
4910 static inline void nested_release_vmcs12(struct kvm_vcpu *vcpu) in nested_release_vmcs12()
4938 static int handle_vmoff(struct kvm_vcpu *vcpu) in handle_vmoff()
4952 static int handle_vmclear(struct kvm_vcpu *vcpu) in handle_vmclear()
4997 static int handle_vmlaunch(struct kvm_vcpu *vcpu) in handle_vmlaunch()
5003 static int handle_vmresume(struct kvm_vcpu *vcpu) in handle_vmresume()
5009 static int handle_vmread(struct kvm_vcpu *vcpu) in handle_vmread()
5093 static int handle_vmwrite(struct kvm_vcpu *vcpu) in handle_vmwrite()
5213 static int handle_vmptrld(struct kvm_vcpu *vcpu) in handle_vmptrld()
5276 static int handle_vmptrst(struct kvm_vcpu *vcpu) in handle_vmptrst()
5312 static int handle_invept(struct kvm_vcpu *vcpu) in handle_invept()
5391 static int handle_invvpid(struct kvm_vcpu *vcpu) in handle_invvpid()
5480 static int nested_vmx_eptp_switching(struct kvm_vcpu *vcpu, in nested_vmx_eptp_switching()
5513 static int handle_vmfunc(struct kvm_vcpu *vcpu) in handle_vmfunc()
5559 bool nested_vmx_check_io_bitmaps(struct kvm_vcpu *vcpu, unsigned int port, in nested_vmx_check_io_bitmaps()
5592 static bool nested_vmx_exit_handled_io(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_io()
5616 static bool nested_vmx_exit_handled_msr(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_msr()
5654 static bool nested_vmx_exit_handled_cr(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_cr()
5724 static bool nested_vmx_exit_handled_vmcs_access(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_vmcs_access()
5769 static bool nested_vmx_l0_wants_exit(struct kvm_vcpu *vcpu, in nested_vmx_l0_wants_exit()
5834 static bool nested_vmx_l1_wants_exit(struct kvm_vcpu *vcpu, in nested_vmx_l1_wants_exit()
5956 bool nested_vmx_reflect_vmexit(struct kvm_vcpu *vcpu) in nested_vmx_reflect_vmexit()
6008 static int vmx_get_nested_state(struct kvm_vcpu *vcpu, in vmx_get_nested_state()
6126 void vmx_leave_nested(struct kvm_vcpu *vcpu) in vmx_leave_nested()
6135 static int vmx_set_nested_state(struct kvm_vcpu *vcpu, in vmx_set_nested_state()