Lines Matching defs:vcpu

478 	struct kvm_vcpu *vcpu;  in check_ept_pointer_match()  local
505 struct kvm_vcpu *vcpu, struct kvm_tlb_range *range) in __hv_remote_flush_tlb_with_range()
524 struct kvm_vcpu *vcpu; in hv_remote_flush_tlb_with_range() local
552 static int hv_enable_direct_tlbflush(struct kvm_vcpu *vcpu) in hv_enable_direct_tlbflush()
627 static inline bool cpu_need_virtualize_apic_accesses(struct kvm_vcpu *vcpu) in cpu_need_virtualize_apic_accesses()
810 void update_exception_bitmap(struct kvm_vcpu *vcpu) in update_exception_bitmap()
859 static bool msr_write_intercepted(struct kvm_vcpu *vcpu, u32 msr) in msr_write_intercepted()
1103 static inline bool pt_output_base_valid(struct kvm_vcpu *vcpu, u64 base) in pt_output_base_valid()
1195 void vmx_prepare_switch_to_guest(struct kvm_vcpu *vcpu) in vmx_prepare_switch_to_guest()
1325 void vmx_vcpu_load_vmcs(struct kvm_vcpu *vcpu, int cpu, in vmx_vcpu_load_vmcs()
1397 static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_load()
1408 static void vmx_vcpu_put(struct kvm_vcpu *vcpu) in vmx_vcpu_put()
1415 static bool emulation_required(struct kvm_vcpu *vcpu) in emulation_required()
1420 unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) in vmx_get_rflags()
1438 void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) in vmx_set_rflags()
1462 u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu) in vmx_get_interrupt_shadow()
1475 void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) in vmx_set_interrupt_shadow()
1491 static int vmx_rtit_ctl_check(struct kvm_vcpu *vcpu, u64 data) in vmx_rtit_ctl_check()
1563 static bool vmx_can_emulate_instruction(struct kvm_vcpu *vcpu, void *insn, int insn_len) in vmx_can_emulate_instruction()
1568 static int skip_emulated_instruction(struct kvm_vcpu *vcpu) in skip_emulated_instruction()
1609 static void vmx_update_emulated_instruction(struct kvm_vcpu *vcpu) in vmx_update_emulated_instruction()
1632 static int vmx_skip_emulated_instruction(struct kvm_vcpu *vcpu) in vmx_skip_emulated_instruction()
1638 static void vmx_clear_hlt(struct kvm_vcpu *vcpu) in vmx_clear_hlt()
1651 static void vmx_queue_exception(struct kvm_vcpu *vcpu) in vmx_queue_exception()
1735 static u64 vmx_write_l1_tsc_offset(struct kvm_vcpu *vcpu, u64 offset) in vmx_write_l1_tsc_offset()
1763 bool nested_vmx_allowed(struct kvm_vcpu *vcpu) in nested_vmx_allowed()
1768 static inline bool vmx_feature_control_msr_valid(struct kvm_vcpu *vcpu, in vmx_feature_control_msr_valid()
1796 static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_get_msr()
1941 static u64 nested_vmx_truncate_sysenter_addr(struct kvm_vcpu *vcpu, in nested_vmx_truncate_sysenter_addr()
1956 static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_set_msr()
2213 static void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) in vmx_cache_reg()
2696 static void fix_pmode_seg(struct kvm_vcpu *vcpu, int seg, in fix_pmode_seg()
2715 static void enter_pmode(struct kvm_vcpu *vcpu) in enter_pmode()
2786 static void enter_rmode(struct kvm_vcpu *vcpu) in enter_rmode()
2835 int vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) in vmx_set_efer()
2859 static void enter_lmode(struct kvm_vcpu *vcpu) in enter_lmode()
2876 static void exit_lmode(struct kvm_vcpu *vcpu) in exit_lmode()
2884 static void vmx_flush_tlb_all(struct kvm_vcpu *vcpu) in vmx_flush_tlb_all()
2907 static void vmx_flush_tlb_current(struct kvm_vcpu *vcpu) in vmx_flush_tlb_current()
2925 static void vmx_flush_tlb_gva(struct kvm_vcpu *vcpu, gva_t addr) in vmx_flush_tlb_gva()
2934 static void vmx_flush_tlb_guest(struct kvm_vcpu *vcpu) in vmx_flush_tlb_guest()
2946 void vmx_ept_load_pdptrs(struct kvm_vcpu *vcpu) in vmx_ept_load_pdptrs()
2961 void ept_save_pdptrs(struct kvm_vcpu *vcpu) in ept_save_pdptrs()
2978 struct kvm_vcpu *vcpu) in ept_update_paging_mode_cr0()
3002 void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in vmx_set_cr0()
3048 u64 construct_eptp(struct kvm_vcpu *vcpu, unsigned long root_hpa, in construct_eptp()
3063 static void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, unsigned long pgd, in vmx_load_mmu_pgd()
3098 int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4()
3174 void vmx_get_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in vmx_get_segment()
3210 static u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg) in vmx_get_segment_base()
3221 int vmx_get_cpl(struct kvm_vcpu *vcpu) in vmx_get_cpl()
3253 void vmx_set_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in vmx_set_segment()
3293 static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) in vmx_get_cs_db_l_bits()
3301 static void vmx_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_idt()
3307 static void vmx_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_idt()
3313 static void vmx_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_gdt()
3319 static void vmx_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_gdt()
3325 static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) in rmode_segment_valid()
3346 static bool code_segment_valid(struct kvm_vcpu *vcpu) in code_segment_valid()
3374 static bool stack_segment_valid(struct kvm_vcpu *vcpu) in stack_segment_valid()
3396 static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg) in data_segment_valid()
3421 static bool tr_valid(struct kvm_vcpu *vcpu) in tr_valid()
3439 static bool ldtr_valid(struct kvm_vcpu *vcpu) in ldtr_valid()
3457 static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) in cs_ss_rpl_check()
3473 bool __vmx_guest_state_valid(struct kvm_vcpu *vcpu) in __vmx_guest_state_valid()
3700 static __always_inline void vmx_disable_intercept_for_msr(struct kvm_vcpu *vcpu, in vmx_disable_intercept_for_msr()
3746 static __always_inline void vmx_enable_intercept_for_msr(struct kvm_vcpu *vcpu, in vmx_enable_intercept_for_msr()
3780 static __always_inline void vmx_set_intercept_for_msr(struct kvm_vcpu *vcpu, in vmx_set_intercept_for_msr()
3789 static u8 vmx_msr_bitmap_mode(struct kvm_vcpu *vcpu) in vmx_msr_bitmap_mode()
3804 static void vmx_reset_x2apic_msrs(struct kvm_vcpu *vcpu, u8 mode) in vmx_reset_x2apic_msrs()
3821 static void vmx_update_msr_bitmap_x2apic(struct kvm_vcpu *vcpu, u8 mode) in vmx_update_msr_bitmap_x2apic()
3842 void vmx_update_msr_bitmap(struct kvm_vcpu *vcpu) in vmx_update_msr_bitmap()
3857 void pt_update_intercept_for_msr(struct kvm_vcpu *vcpu) in pt_update_intercept_for_msr()
3873 static bool vmx_guest_apic_has_interrupt(struct kvm_vcpu *vcpu) in vmx_guest_apic_has_interrupt()
3893 static void vmx_msr_filter_changed(struct kvm_vcpu *vcpu) in vmx_msr_filter_changed()
3916 static inline bool kvm_vcpu_trigger_posted_interrupt(struct kvm_vcpu *vcpu, in kvm_vcpu_trigger_posted_interrupt()
3955 static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, in vmx_deliver_nested_posted_interrupt()
3982 static int vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) in vmx_deliver_posted_interrupt()
4073 struct kvm_vcpu *vcpu = &vmx->vcpu; in set_cr4_guest_host_mask() local
4101 static void vmx_refresh_apicv_exec_ctrl(struct kvm_vcpu *vcpu) in vmx_refresh_apicv_exec_ctrl()
4205 struct kvm_vcpu *vcpu = &vmx->vcpu; in vmx_compute_secondary_exec_control() local
4385 static void vmx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) in vmx_vcpu_reset()
4480 static void enable_irq_window(struct kvm_vcpu *vcpu) in enable_irq_window()
4485 static void enable_nmi_window(struct kvm_vcpu *vcpu) in enable_nmi_window()
4496 static void vmx_inject_irq(struct kvm_vcpu *vcpu) in vmx_inject_irq()
4524 static void vmx_inject_nmi(struct kvm_vcpu *vcpu) in vmx_inject_nmi()
4555 bool vmx_get_nmi_mask(struct kvm_vcpu *vcpu) in vmx_get_nmi_mask()
4569 void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) in vmx_set_nmi_mask()
4589 bool vmx_nmi_blocked(struct kvm_vcpu *vcpu) in vmx_nmi_blocked()
4602 static int vmx_nmi_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_nmi_allowed()
4614 bool vmx_interrupt_blocked(struct kvm_vcpu *vcpu) in vmx_interrupt_blocked()
4624 static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_interrupt_allowed()
4663 static bool rmode_exception(struct kvm_vcpu *vcpu, int vec) in rmode_exception()
4692 static int handle_rmode_exception(struct kvm_vcpu *vcpu, in handle_rmode_exception()
4738 static int handle_machine_check(struct kvm_vcpu *vcpu) in handle_machine_check()
4755 static inline bool guest_inject_ac(struct kvm_vcpu *vcpu) in guest_inject_ac()
4764 static int handle_exception_nmi(struct kvm_vcpu *vcpu) in handle_exception_nmi()
4886 static __always_inline int handle_external_interrupt(struct kvm_vcpu *vcpu) in handle_external_interrupt()
4892 static int handle_triple_fault(struct kvm_vcpu *vcpu) in handle_triple_fault()
4899 static int handle_io(struct kvm_vcpu *vcpu) in handle_io()
4921 vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) in vmx_patch_hypercall()
4932 static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr0()
4965 static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr4()
4982 static int handle_desc(struct kvm_vcpu *vcpu) in handle_desc()
4988 static int handle_cr(struct kvm_vcpu *vcpu) in handle_cr()
5068 static int handle_dr(struct kvm_vcpu *vcpu) in handle_dr()
5129 static void vmx_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) in vmx_sync_dirty_debug_regs()
5142 static void vmx_set_dr7(struct kvm_vcpu *vcpu, unsigned long val) in vmx_set_dr7()
5147 static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu) in handle_tpr_below_threshold()
5153 static int handle_interrupt_window(struct kvm_vcpu *vcpu) in handle_interrupt_window()
5163 static int handle_vmcall(struct kvm_vcpu *vcpu) in handle_vmcall()
5168 static int handle_invd(struct kvm_vcpu *vcpu) in handle_invd()
5174 static int handle_invlpg(struct kvm_vcpu *vcpu) in handle_invlpg()
5182 static int handle_rdpmc(struct kvm_vcpu *vcpu) in handle_rdpmc()
5190 static int handle_wbinvd(struct kvm_vcpu *vcpu) in handle_wbinvd()
5195 static int handle_xsetbv(struct kvm_vcpu *vcpu) in handle_xsetbv()
5205 static int handle_apic_access(struct kvm_vcpu *vcpu) in handle_apic_access()
5227 static int handle_apic_eoi_induced(struct kvm_vcpu *vcpu) in handle_apic_eoi_induced()
5237 static int handle_apic_write(struct kvm_vcpu *vcpu) in handle_apic_write()
5247 static int handle_task_switch(struct kvm_vcpu *vcpu) in handle_task_switch()
5304 static int handle_ept_violation(struct kvm_vcpu *vcpu) in handle_ept_violation()
5360 static int handle_ept_misconfig(struct kvm_vcpu *vcpu) in handle_ept_misconfig()
5378 static int handle_nmi_window(struct kvm_vcpu *vcpu) in handle_nmi_window()
5388 static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) in handle_invalid_guest_state()
5433 static void grow_ple_window(struct kvm_vcpu *vcpu) in grow_ple_window()
5449 static void shrink_ple_window(struct kvm_vcpu *vcpu) in shrink_ple_window()
5481 static int handle_pause(struct kvm_vcpu *vcpu) in handle_pause()
5496 static int handle_nop(struct kvm_vcpu *vcpu) in handle_nop()
5501 static int handle_mwait(struct kvm_vcpu *vcpu) in handle_mwait()
5507 static int handle_invalid_op(struct kvm_vcpu *vcpu) in handle_invalid_op()
5513 static int handle_monitor_trap(struct kvm_vcpu *vcpu) in handle_monitor_trap()
5518 static int handle_monitor(struct kvm_vcpu *vcpu) in handle_monitor()
5524 static int handle_invpcid(struct kvm_vcpu *vcpu) in handle_invpcid()
5558 static int handle_pml_full(struct kvm_vcpu *vcpu) in handle_pml_full()
5583 static fastpath_t handle_fastpath_preemption_timer(struct kvm_vcpu *vcpu) in handle_fastpath_preemption_timer()
5596 static int handle_preemption_timer(struct kvm_vcpu *vcpu) in handle_preemption_timer()
5606 static int handle_vmx_instruction(struct kvm_vcpu *vcpu) in handle_vmx_instruction()
5612 static int handle_encls(struct kvm_vcpu *vcpu) in handle_encls()
5684 static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2, in vmx_get_exit_info()
5712 static void vmx_flush_pml_buffer(struct kvm_vcpu *vcpu) in vmx_flush_pml_buffer()
5750 struct kvm_vcpu *vcpu; in kvm_flush_pml_buffers() local
5931 static int vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath) in vmx_handle_exit()
6092 static noinstr void vmx_l1d_flush(struct kvm_vcpu *vcpu) in vmx_l1d_flush()
6152 static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) in update_cr8_intercept()
6168 void vmx_set_virtual_apic_mode(struct kvm_vcpu *vcpu) in vmx_set_virtual_apic_mode()
6221 static void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu) in vmx_set_apic_access_page_addr()
6249 static void vmx_hwapic_isr_update(struct kvm_vcpu *vcpu, int max_isr) in vmx_hwapic_isr_update()
6283 static void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr) in vmx_hwapic_irr_update()
6297 static int vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu) in vmx_sync_pir_to_irr()
6335 static void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) in vmx_load_eoi_exitmap()
6346 static void vmx_apicv_post_state_restore(struct kvm_vcpu *vcpu) in vmx_apicv_post_state_restore()
6356 static void handle_interrupt_nmi_irqoff(struct kvm_vcpu *vcpu, u32 intr_info) in handle_interrupt_nmi_irqoff()
6381 static void handle_external_interrupt_irqoff(struct kvm_vcpu *vcpu) in handle_external_interrupt_irqoff()
6392 static void vmx_handle_exit_irqoff(struct kvm_vcpu *vcpu) in vmx_handle_exit_irqoff()
6461 static void __vmx_complete_interrupts(struct kvm_vcpu *vcpu, in __vmx_complete_interrupts()
6522 static void vmx_cancel_injection(struct kvm_vcpu *vcpu) in vmx_cancel_injection()
6550 static void vmx_update_hv_timer(struct kvm_vcpu *vcpu) in vmx_update_hv_timer()
6584 static fastpath_t vmx_exit_handlers_fastpath(struct kvm_vcpu *vcpu) in vmx_exit_handlers_fastpath()
6598 static noinstr void vmx_vcpu_enter_exit(struct kvm_vcpu *vcpu, in vmx_vcpu_enter_exit()
6655 static fastpath_t vmx_vcpu_run(struct kvm_vcpu *vcpu) in vmx_vcpu_run()
6825 static void vmx_free_vcpu(struct kvm_vcpu *vcpu) in vmx_free_vcpu()
6836 static int vmx_create_vcpu(struct kvm_vcpu *vcpu) in vmx_create_vcpu()
7023 static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) in vmx_get_mt_mask()
7096 static void nested_vmx_cr_fixed1_bits_update(struct kvm_vcpu *vcpu) in nested_vmx_cr_fixed1_bits_update()
7136 static void nested_vmx_entry_exit_ctls_update(struct kvm_vcpu *vcpu) in nested_vmx_entry_exit_ctls_update()
7153 static void update_intel_pt_cfg(struct kvm_vcpu *vcpu) in update_intel_pt_cfg()
7222 static void vmx_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu) in vmx_vcpu_after_set_cpuid()
7299 static void vmx_request_immediate_exit(struct kvm_vcpu *vcpu) in vmx_request_immediate_exit()
7304 static int vmx_check_intercept_io(struct kvm_vcpu *vcpu, in vmx_check_intercept_io()
7338 static int vmx_check_intercept(struct kvm_vcpu *vcpu, in vmx_check_intercept()
7405 static int vmx_set_hv_timer(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc, in vmx_set_hv_timer()
7445 static void vmx_cancel_hv_timer(struct kvm_vcpu *vcpu) in vmx_cancel_hv_timer()
7451 static void vmx_sched_in(struct kvm_vcpu *vcpu, int cpu) in vmx_sched_in()
7483 static int vmx_pre_block(struct kvm_vcpu *vcpu) in vmx_pre_block()
7494 static void vmx_post_block(struct kvm_vcpu *vcpu) in vmx_post_block()
7502 static void vmx_setup_mce(struct kvm_vcpu *vcpu) in vmx_setup_mce()
7512 static int vmx_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_smi_allowed()
7520 static int vmx_pre_enter_smm(struct kvm_vcpu *vcpu, char *smstate) in vmx_pre_enter_smm()
7534 static int vmx_pre_leave_smm(struct kvm_vcpu *vcpu, const char *smstate) in vmx_pre_leave_smm()
7554 static void enable_smi_window(struct kvm_vcpu *vcpu) in enable_smi_window()
7559 static bool vmx_apic_init_signal_blocked(struct kvm_vcpu *vcpu) in vmx_apic_init_signal_blocked()
7564 static void vmx_migrate_timers(struct kvm_vcpu *vcpu) in vmx_migrate_timers()