Lines Matching defs:vcpu
399 static void vmx_update_fb_clear_dis(struct kvm_vcpu *vcpu, struct vcpu_vmx *vmx) in vmx_update_fb_clear_dis()
538 struct kvm_vcpu *vcpu; in check_ept_pointer_match() local
565 struct kvm_vcpu *vcpu, struct kvm_tlb_range *range) in __hv_remote_flush_tlb_with_range()
584 struct kvm_vcpu *vcpu; in hv_remote_flush_tlb_with_range() local
612 static int hv_enable_direct_tlbflush(struct kvm_vcpu *vcpu) in hv_enable_direct_tlbflush()
687 static inline bool cpu_need_virtualize_apic_accesses(struct kvm_vcpu *vcpu) in cpu_need_virtualize_apic_accesses()
870 void update_exception_bitmap(struct kvm_vcpu *vcpu) in update_exception_bitmap()
1181 static inline bool pt_output_base_valid(struct kvm_vcpu *vcpu, u64 base) in pt_output_base_valid()
1273 void vmx_prepare_switch_to_guest(struct kvm_vcpu *vcpu) in vmx_prepare_switch_to_guest()
1403 void vmx_vcpu_load_vmcs(struct kvm_vcpu *vcpu, int cpu, in vmx_vcpu_load_vmcs()
1475 static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_load()
1486 static void vmx_vcpu_put(struct kvm_vcpu *vcpu) in vmx_vcpu_put()
1493 static bool emulation_required(struct kvm_vcpu *vcpu) in emulation_required()
1498 unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) in vmx_get_rflags()
1516 void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) in vmx_set_rflags()
1540 u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu) in vmx_get_interrupt_shadow()
1553 void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) in vmx_set_interrupt_shadow()
1569 static int vmx_rtit_ctl_check(struct kvm_vcpu *vcpu, u64 data) in vmx_rtit_ctl_check()
1641 static bool vmx_can_emulate_instruction(struct kvm_vcpu *vcpu, void *insn, int insn_len) in vmx_can_emulate_instruction()
1646 static int skip_emulated_instruction(struct kvm_vcpu *vcpu) in skip_emulated_instruction()
1687 static void vmx_update_emulated_instruction(struct kvm_vcpu *vcpu) in vmx_update_emulated_instruction()
1710 static int vmx_skip_emulated_instruction(struct kvm_vcpu *vcpu) in vmx_skip_emulated_instruction()
1716 static void vmx_clear_hlt(struct kvm_vcpu *vcpu) in vmx_clear_hlt()
1729 static void vmx_queue_exception(struct kvm_vcpu *vcpu) in vmx_queue_exception()
1823 static u64 vmx_write_l1_tsc_offset(struct kvm_vcpu *vcpu, u64 offset) in vmx_write_l1_tsc_offset()
1851 bool nested_vmx_allowed(struct kvm_vcpu *vcpu) in nested_vmx_allowed()
1856 static inline bool vmx_feature_control_msr_valid(struct kvm_vcpu *vcpu, in vmx_feature_control_msr_valid()
1884 static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_get_msr()
2030 static u64 nested_vmx_truncate_sysenter_addr(struct kvm_vcpu *vcpu, in nested_vmx_truncate_sysenter_addr()
2045 static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_set_msr()
2306 static void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) in vmx_cache_reg()
2789 static void fix_pmode_seg(struct kvm_vcpu *vcpu, int seg, in fix_pmode_seg()
2808 static void enter_pmode(struct kvm_vcpu *vcpu) in enter_pmode()
2879 static void enter_rmode(struct kvm_vcpu *vcpu) in enter_rmode()
2928 int vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) in vmx_set_efer()
2952 static void enter_lmode(struct kvm_vcpu *vcpu) in enter_lmode()
2969 static void exit_lmode(struct kvm_vcpu *vcpu) in exit_lmode()
2977 static void vmx_flush_tlb_all(struct kvm_vcpu *vcpu) in vmx_flush_tlb_all()
3000 static inline int vmx_get_current_vpid(struct kvm_vcpu *vcpu) in vmx_get_current_vpid()
3007 static void vmx_flush_tlb_current(struct kvm_vcpu *vcpu) in vmx_flush_tlb_current()
3023 static void vmx_flush_tlb_gva(struct kvm_vcpu *vcpu, gva_t addr) in vmx_flush_tlb_gva()
3032 static void vmx_flush_tlb_guest(struct kvm_vcpu *vcpu) in vmx_flush_tlb_guest()
3044 void vmx_ept_load_pdptrs(struct kvm_vcpu *vcpu) in vmx_ept_load_pdptrs()
3059 void ept_save_pdptrs(struct kvm_vcpu *vcpu) in ept_save_pdptrs()
3076 struct kvm_vcpu *vcpu) in ept_update_paging_mode_cr0()
3100 void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in vmx_set_cr0()
3146 u64 construct_eptp(struct kvm_vcpu *vcpu, unsigned long root_hpa, in construct_eptp()
3161 static void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, unsigned long pgd, in vmx_load_mmu_pgd()
3196 static bool vmx_is_valid_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_is_valid_cr4()
3212 void vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4()
3272 void vmx_get_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in vmx_get_segment()
3308 static u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg) in vmx_get_segment_base()
3319 int vmx_get_cpl(struct kvm_vcpu *vcpu) in vmx_get_cpl()
3351 void vmx_set_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in vmx_set_segment()
3391 static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) in vmx_get_cs_db_l_bits()
3399 static void vmx_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_idt()
3405 static void vmx_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_idt()
3411 static void vmx_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_gdt()
3417 static void vmx_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_gdt()
3423 static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) in rmode_segment_valid()
3444 static bool code_segment_valid(struct kvm_vcpu *vcpu) in code_segment_valid()
3472 static bool stack_segment_valid(struct kvm_vcpu *vcpu) in stack_segment_valid()
3494 static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg) in data_segment_valid()
3519 static bool tr_valid(struct kvm_vcpu *vcpu) in tr_valid()
3537 static bool ldtr_valid(struct kvm_vcpu *vcpu) in ldtr_valid()
3555 static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) in cs_ss_rpl_check()
3571 bool __vmx_guest_state_valid(struct kvm_vcpu *vcpu) in __vmx_guest_state_valid()
3798 static __always_inline void vmx_disable_intercept_for_msr(struct kvm_vcpu *vcpu, in vmx_disable_intercept_for_msr()
3844 static __always_inline void vmx_enable_intercept_for_msr(struct kvm_vcpu *vcpu, in vmx_enable_intercept_for_msr()
3878 static __always_inline void vmx_set_intercept_for_msr(struct kvm_vcpu *vcpu, in vmx_set_intercept_for_msr()
3887 static u8 vmx_msr_bitmap_mode(struct kvm_vcpu *vcpu) in vmx_msr_bitmap_mode()
3902 static void vmx_reset_x2apic_msrs(struct kvm_vcpu *vcpu, u8 mode) in vmx_reset_x2apic_msrs()
3919 static void vmx_update_msr_bitmap_x2apic(struct kvm_vcpu *vcpu, u8 mode) in vmx_update_msr_bitmap_x2apic()
3940 void vmx_update_msr_bitmap(struct kvm_vcpu *vcpu) in vmx_update_msr_bitmap()
3955 void pt_update_intercept_for_msr(struct kvm_vcpu *vcpu) in pt_update_intercept_for_msr()
3971 static bool vmx_guest_apic_has_interrupt(struct kvm_vcpu *vcpu) in vmx_guest_apic_has_interrupt()
3991 static void vmx_msr_filter_changed(struct kvm_vcpu *vcpu) in vmx_msr_filter_changed()
4014 static inline bool kvm_vcpu_trigger_posted_interrupt(struct kvm_vcpu *vcpu, in kvm_vcpu_trigger_posted_interrupt()
4053 static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, in vmx_deliver_nested_posted_interrupt()
4080 static int vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) in vmx_deliver_posted_interrupt()
4170 struct kvm_vcpu *vcpu = &vmx->vcpu; in set_cr4_guest_host_mask() local
4198 static void vmx_refresh_apicv_exec_ctrl(struct kvm_vcpu *vcpu) in vmx_refresh_apicv_exec_ctrl()
4302 struct kvm_vcpu *vcpu = &vmx->vcpu; in vmx_compute_secondary_exec_control() local
4482 static void vmx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) in vmx_vcpu_reset()
4579 static void enable_irq_window(struct kvm_vcpu *vcpu) in enable_irq_window()
4584 static void enable_nmi_window(struct kvm_vcpu *vcpu) in enable_nmi_window()
4595 static void vmx_inject_irq(struct kvm_vcpu *vcpu) in vmx_inject_irq()
4623 static void vmx_inject_nmi(struct kvm_vcpu *vcpu) in vmx_inject_nmi()
4654 bool vmx_get_nmi_mask(struct kvm_vcpu *vcpu) in vmx_get_nmi_mask()
4668 void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) in vmx_set_nmi_mask()
4688 bool vmx_nmi_blocked(struct kvm_vcpu *vcpu) in vmx_nmi_blocked()
4701 static int vmx_nmi_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_nmi_allowed()
4713 bool vmx_interrupt_blocked(struct kvm_vcpu *vcpu) in vmx_interrupt_blocked()
4723 static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_interrupt_allowed()
4762 static bool rmode_exception(struct kvm_vcpu *vcpu, int vec) in rmode_exception()
4791 static int handle_rmode_exception(struct kvm_vcpu *vcpu, in handle_rmode_exception()
4837 static int handle_machine_check(struct kvm_vcpu *vcpu) in handle_machine_check()
4854 bool vmx_guest_inject_ac(struct kvm_vcpu *vcpu) in vmx_guest_inject_ac()
4863 static int handle_exception_nmi(struct kvm_vcpu *vcpu) in handle_exception_nmi()
5010 static __always_inline int handle_external_interrupt(struct kvm_vcpu *vcpu) in handle_external_interrupt()
5016 static int handle_triple_fault(struct kvm_vcpu *vcpu) in handle_triple_fault()
5023 static int handle_io(struct kvm_vcpu *vcpu) in handle_io()
5045 vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) in vmx_patch_hypercall()
5056 static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr0()
5089 static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr4()
5106 static int handle_desc(struct kvm_vcpu *vcpu) in handle_desc()
5112 static int handle_cr(struct kvm_vcpu *vcpu) in handle_cr()
5192 static int handle_dr(struct kvm_vcpu *vcpu) in handle_dr()
5253 static void vmx_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) in vmx_sync_dirty_debug_regs()
5266 static void vmx_set_dr7(struct kvm_vcpu *vcpu, unsigned long val) in vmx_set_dr7()
5271 static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu) in handle_tpr_below_threshold()
5277 static int handle_interrupt_window(struct kvm_vcpu *vcpu) in handle_interrupt_window()
5287 static int handle_vmcall(struct kvm_vcpu *vcpu) in handle_vmcall()
5292 static int handle_invd(struct kvm_vcpu *vcpu) in handle_invd()
5298 static int handle_invlpg(struct kvm_vcpu *vcpu) in handle_invlpg()
5306 static int handle_rdpmc(struct kvm_vcpu *vcpu) in handle_rdpmc()
5314 static int handle_wbinvd(struct kvm_vcpu *vcpu) in handle_wbinvd()
5319 static int handle_xsetbv(struct kvm_vcpu *vcpu) in handle_xsetbv()
5329 static int handle_apic_access(struct kvm_vcpu *vcpu) in handle_apic_access()
5351 static int handle_apic_eoi_induced(struct kvm_vcpu *vcpu) in handle_apic_eoi_induced()
5361 static int handle_apic_write(struct kvm_vcpu *vcpu) in handle_apic_write()
5371 static int handle_task_switch(struct kvm_vcpu *vcpu) in handle_task_switch()
5428 static int handle_ept_violation(struct kvm_vcpu *vcpu) in handle_ept_violation()
5484 static int handle_ept_misconfig(struct kvm_vcpu *vcpu) in handle_ept_misconfig()
5502 static int handle_nmi_window(struct kvm_vcpu *vcpu) in handle_nmi_window()
5512 static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) in handle_invalid_guest_state()
5557 static void grow_ple_window(struct kvm_vcpu *vcpu) in grow_ple_window()
5573 static void shrink_ple_window(struct kvm_vcpu *vcpu) in shrink_ple_window()
5605 static int handle_pause(struct kvm_vcpu *vcpu) in handle_pause()
5620 static int handle_nop(struct kvm_vcpu *vcpu) in handle_nop()
5625 static int handle_mwait(struct kvm_vcpu *vcpu) in handle_mwait()
5631 static int handle_invalid_op(struct kvm_vcpu *vcpu) in handle_invalid_op()
5637 static int handle_monitor_trap(struct kvm_vcpu *vcpu) in handle_monitor_trap()
5642 static int handle_monitor(struct kvm_vcpu *vcpu) in handle_monitor()
5648 static int handle_invpcid(struct kvm_vcpu *vcpu) in handle_invpcid()
5682 static int handle_pml_full(struct kvm_vcpu *vcpu) in handle_pml_full()
5707 static fastpath_t handle_fastpath_preemption_timer(struct kvm_vcpu *vcpu) in handle_fastpath_preemption_timer()
5720 static int handle_preemption_timer(struct kvm_vcpu *vcpu) in handle_preemption_timer()
5730 static int handle_vmx_instruction(struct kvm_vcpu *vcpu) in handle_vmx_instruction()
5736 static int handle_encls(struct kvm_vcpu *vcpu) in handle_encls()
5808 static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2, in vmx_get_exit_info()
5836 static void vmx_flush_pml_buffer(struct kvm_vcpu *vcpu) in vmx_flush_pml_buffer()
5874 struct kvm_vcpu *vcpu; in kvm_flush_pml_buffers() local
6052 static int vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath) in vmx_handle_exit()
6215 static noinstr void vmx_l1d_flush(struct kvm_vcpu *vcpu) in vmx_l1d_flush()
6275 static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) in update_cr8_intercept()
6291 void vmx_set_virtual_apic_mode(struct kvm_vcpu *vcpu) in vmx_set_virtual_apic_mode()
6344 static void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu) in vmx_set_apic_access_page_addr()
6372 static void vmx_hwapic_isr_update(struct kvm_vcpu *vcpu, int max_isr) in vmx_hwapic_isr_update()
6406 static void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr) in vmx_hwapic_irr_update()
6420 static int vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu) in vmx_sync_pir_to_irr()
6453 static void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) in vmx_load_eoi_exitmap()
6464 static void vmx_apicv_post_state_restore(struct kvm_vcpu *vcpu) in vmx_apicv_post_state_restore()
6474 static void handle_interrupt_nmi_irqoff(struct kvm_vcpu *vcpu, in handle_interrupt_nmi_irqoff()
6498 static void handle_external_interrupt_irqoff(struct kvm_vcpu *vcpu) in handle_external_interrupt_irqoff()
6511 static void vmx_handle_exit_irqoff(struct kvm_vcpu *vcpu) in vmx_handle_exit_irqoff()
6583 static void __vmx_complete_interrupts(struct kvm_vcpu *vcpu, in __vmx_complete_interrupts()
6644 static void vmx_cancel_injection(struct kvm_vcpu *vcpu) in vmx_cancel_injection()
6672 static void vmx_update_hv_timer(struct kvm_vcpu *vcpu) in vmx_update_hv_timer()
6731 static fastpath_t vmx_exit_handlers_fastpath(struct kvm_vcpu *vcpu) in vmx_exit_handlers_fastpath()
6743 static noinstr void vmx_vcpu_enter_exit(struct kvm_vcpu *vcpu, in vmx_vcpu_enter_exit()
6808 static fastpath_t vmx_vcpu_run(struct kvm_vcpu *vcpu) in vmx_vcpu_run()
6958 static void vmx_free_vcpu(struct kvm_vcpu *vcpu) in vmx_free_vcpu()
6969 static int vmx_create_vcpu(struct kvm_vcpu *vcpu) in vmx_create_vcpu()
7164 static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) in vmx_get_mt_mask()
7237 static void nested_vmx_cr_fixed1_bits_update(struct kvm_vcpu *vcpu) in nested_vmx_cr_fixed1_bits_update()
7277 static void nested_vmx_entry_exit_ctls_update(struct kvm_vcpu *vcpu) in nested_vmx_entry_exit_ctls_update()
7294 static void update_intel_pt_cfg(struct kvm_vcpu *vcpu) in update_intel_pt_cfg()
7363 static void vmx_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu) in vmx_vcpu_after_set_cpuid()
7442 static void vmx_request_immediate_exit(struct kvm_vcpu *vcpu) in vmx_request_immediate_exit()
7447 static int vmx_check_intercept_io(struct kvm_vcpu *vcpu, in vmx_check_intercept_io()
7481 static int vmx_check_intercept(struct kvm_vcpu *vcpu, in vmx_check_intercept()
7549 static int vmx_set_hv_timer(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc, in vmx_set_hv_timer()
7589 static void vmx_cancel_hv_timer(struct kvm_vcpu *vcpu) in vmx_cancel_hv_timer()
7595 static void vmx_sched_in(struct kvm_vcpu *vcpu, int cpu) in vmx_sched_in()
7627 static int vmx_pre_block(struct kvm_vcpu *vcpu) in vmx_pre_block()
7638 static void vmx_post_block(struct kvm_vcpu *vcpu) in vmx_post_block()
7646 static void vmx_setup_mce(struct kvm_vcpu *vcpu) in vmx_setup_mce()
7656 static int vmx_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_smi_allowed()
7664 static int vmx_pre_enter_smm(struct kvm_vcpu *vcpu, char *smstate) in vmx_pre_enter_smm()
7678 static int vmx_pre_leave_smm(struct kvm_vcpu *vcpu, const char *smstate) in vmx_pre_leave_smm()
7698 static void enable_smi_window(struct kvm_vcpu *vcpu) in enable_smi_window()
7703 static bool vmx_apic_init_signal_blocked(struct kvm_vcpu *vcpu) in vmx_apic_init_signal_blocked()
7708 static void vmx_migrate_timers(struct kvm_vcpu *vcpu) in vmx_migrate_timers()