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()
536 static int hv_enable_l2_tlb_flush(struct kvm_vcpu *vcpu) in hv_enable_l2_tlb_flush()
667 static inline bool cpu_need_virtualize_apic_accesses(struct kvm_vcpu *vcpu) in cpu_need_virtualize_apic_accesses()
867 void vmx_update_exception_bitmap(struct kvm_vcpu *vcpu) in vmx_update_exception_bitmap()
1185 static inline bool pt_output_base_valid(struct kvm_vcpu *vcpu, u64 base) in pt_output_base_valid()
1281 void vmx_prepare_switch_to_guest(struct kvm_vcpu *vcpu) in vmx_prepare_switch_to_guest()
1412 static void grow_ple_window(struct kvm_vcpu *vcpu) in grow_ple_window()
1428 static void shrink_ple_window(struct kvm_vcpu *vcpu) in shrink_ple_window()
1444 void vmx_vcpu_load_vmcs(struct kvm_vcpu *vcpu, int cpu, in vmx_vcpu_load_vmcs()
1515 void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_load()
1525 void vmx_vcpu_put(struct kvm_vcpu *vcpu) in vmx_vcpu_put()
1532 bool vmx_emulation_required(struct kvm_vcpu *vcpu) in vmx_emulation_required()
1537 unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) in vmx_get_rflags()
1555 void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) in vmx_set_rflags()
1584 bool vmx_get_if_flag(struct kvm_vcpu *vcpu) in vmx_get_if_flag()
1589 u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu) in vmx_get_interrupt_shadow()
1602 void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) in vmx_set_interrupt_shadow()
1618 static int vmx_rtit_ctl_check(struct kvm_vcpu *vcpu, u64 data) in vmx_rtit_ctl_check()
1691 int vmx_check_emulate_instruction(struct kvm_vcpu *vcpu, int emul_type, in vmx_check_emulate_instruction()
1714 static int skip_emulated_instruction(struct kvm_vcpu *vcpu) in skip_emulated_instruction()
1782 void vmx_update_emulated_instruction(struct kvm_vcpu *vcpu) in vmx_update_emulated_instruction()
1813 int vmx_skip_emulated_instruction(struct kvm_vcpu *vcpu) in vmx_skip_emulated_instruction()
1819 static void vmx_clear_hlt(struct kvm_vcpu *vcpu) in vmx_clear_hlt()
1832 void vmx_inject_exception(struct kvm_vcpu *vcpu) in vmx_inject_exception()
1932 u64 vmx_get_l2_tsc_offset(struct kvm_vcpu *vcpu) in vmx_get_l2_tsc_offset()
1942 u64 vmx_get_l2_tsc_multiplier(struct kvm_vcpu *vcpu) in vmx_get_l2_tsc_multiplier()
1953 void vmx_write_tsc_offset(struct kvm_vcpu *vcpu) in vmx_write_tsc_offset()
1958 void vmx_write_tsc_multiplier(struct kvm_vcpu *vcpu) in vmx_write_tsc_multiplier()
2018 int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_get_msr()
2169 static u64 nested_vmx_truncate_sysenter_addr(struct kvm_vcpu *vcpu, in nested_vmx_truncate_sysenter_addr()
2179 static u64 vmx_get_supported_debugctl(struct kvm_vcpu *vcpu, bool host_initiated) in vmx_get_supported_debugctl()
2199 int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_set_msr()
2500 void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) in vmx_cache_reg()
3009 static void fix_pmode_seg(struct kvm_vcpu *vcpu, int seg, in fix_pmode_seg()
3028 static void enter_pmode(struct kvm_vcpu *vcpu) in enter_pmode()
3098 static void enter_rmode(struct kvm_vcpu *vcpu) in enter_rmode()
3146 int vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) in vmx_set_efer()
3171 static void enter_lmode(struct kvm_vcpu *vcpu) in enter_lmode()
3188 static void exit_lmode(struct kvm_vcpu *vcpu) in exit_lmode()
3195 void vmx_flush_tlb_all(struct kvm_vcpu *vcpu) in vmx_flush_tlb_all()
3218 static inline int vmx_get_current_vpid(struct kvm_vcpu *vcpu) in vmx_get_current_vpid()
3225 void vmx_flush_tlb_current(struct kvm_vcpu *vcpu) in vmx_flush_tlb_current()
3241 void vmx_flush_tlb_gva(struct kvm_vcpu *vcpu, gva_t addr) in vmx_flush_tlb_gva()
3250 void vmx_flush_tlb_guest(struct kvm_vcpu *vcpu) in vmx_flush_tlb_guest()
3262 void vmx_ept_load_pdptrs(struct kvm_vcpu *vcpu) in vmx_ept_load_pdptrs()
3277 void ept_save_pdptrs(struct kvm_vcpu *vcpu) in ept_save_pdptrs()
3295 bool vmx_is_valid_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in vmx_is_valid_cr0()
3306 void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in vmx_set_cr0()
3402 u64 construct_eptp(struct kvm_vcpu *vcpu, hpa_t root_hpa, int root_level) in construct_eptp()
3416 void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, hpa_t root_hpa, int root_level) in vmx_load_mmu_pgd()
3445 bool vmx_is_valid_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_is_valid_cr4()
3461 void vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4()
3525 void vmx_get_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in vmx_get_segment()
3561 u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg) in vmx_get_segment_base()
3572 static int __vmx_get_cpl(struct kvm_vcpu *vcpu, bool no_cache) in __vmx_get_cpl()
3587 int vmx_get_cpl(struct kvm_vcpu *vcpu) in vmx_get_cpl()
3592 int vmx_get_cpl_no_cache(struct kvm_vcpu *vcpu) in vmx_get_cpl_no_cache()
3614 void __vmx_set_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in __vmx_set_segment()
3651 void vmx_set_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in vmx_set_segment()
3658 void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) in vmx_get_cs_db_l_bits()
3666 void vmx_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_idt()
3672 void vmx_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_idt()
3678 void vmx_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_gdt()
3684 void vmx_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_gdt()
3690 static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) in rmode_segment_valid()
3711 static bool code_segment_valid(struct kvm_vcpu *vcpu) in code_segment_valid()
3739 static bool stack_segment_valid(struct kvm_vcpu *vcpu) in stack_segment_valid()
3761 static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg) in data_segment_valid()
3786 static bool tr_valid(struct kvm_vcpu *vcpu) in tr_valid()
3804 static bool ldtr_valid(struct kvm_vcpu *vcpu) in ldtr_valid()
3822 static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) in cs_ss_rpl_check()
3838 bool __vmx_guest_state_valid(struct kvm_vcpu *vcpu) in __vmx_guest_state_valid()
4004 void vmx_disable_intercept_for_msr(struct kvm_vcpu *vcpu, u32 msr, int type) in vmx_disable_intercept_for_msr()
4046 void vmx_enable_intercept_for_msr(struct kvm_vcpu *vcpu, u32 msr, int type) in vmx_enable_intercept_for_msr()
4076 static void vmx_update_msr_bitmap_x2apic(struct kvm_vcpu *vcpu) in vmx_update_msr_bitmap_x2apic()
4136 void pt_update_intercept_for_msr(struct kvm_vcpu *vcpu) in pt_update_intercept_for_msr()
4152 void vmx_msr_filter_changed(struct kvm_vcpu *vcpu) in vmx_msr_filter_changed()
4183 static inline void kvm_vcpu_trigger_posted_interrupt(struct kvm_vcpu *vcpu, in kvm_vcpu_trigger_posted_interrupt()
4227 static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, in vmx_deliver_nested_posted_interrupt()
4273 static int vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) in vmx_deliver_posted_interrupt()
4306 struct kvm_vcpu *vcpu = apic->vcpu; in vmx_deliver_interrupt() local
4393 struct kvm_vcpu *vcpu = &vmx->vcpu; in set_cr4_guest_host_mask() local
4459 void vmx_refresh_apicv_exec_ctrl(struct kvm_vcpu *vcpu) in vmx_refresh_apicv_exec_ctrl()
4611 struct kvm_vcpu *vcpu = &vmx->vcpu; in vmx_secondary_exec_control() local
4851 static void __vmx_vcpu_reset(struct kvm_vcpu *vcpu) in __vmx_vcpu_reset()
4883 void vmx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) in vmx_vcpu_reset()
4942 void vmx_enable_irq_window(struct kvm_vcpu *vcpu) in vmx_enable_irq_window()
4947 void vmx_enable_nmi_window(struct kvm_vcpu *vcpu) in vmx_enable_nmi_window()
4958 void vmx_inject_irq(struct kvm_vcpu *vcpu, bool reinjected) in vmx_inject_irq()
4986 void vmx_inject_nmi(struct kvm_vcpu *vcpu) in vmx_inject_nmi()
5017 bool vmx_get_nmi_mask(struct kvm_vcpu *vcpu) in vmx_get_nmi_mask()
5031 void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) in vmx_set_nmi_mask()
5051 bool vmx_nmi_blocked(struct kvm_vcpu *vcpu) in vmx_nmi_blocked()
5064 int vmx_nmi_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_nmi_allowed()
5076 bool __vmx_interrupt_blocked(struct kvm_vcpu *vcpu) in __vmx_interrupt_blocked()
5083 bool vmx_interrupt_blocked(struct kvm_vcpu *vcpu) in vmx_interrupt_blocked()
5091 int vmx_interrupt_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_interrupt_allowed()
5132 static bool rmode_exception(struct kvm_vcpu *vcpu, int vec) in rmode_exception()
5161 static int handle_rmode_exception(struct kvm_vcpu *vcpu, in handle_rmode_exception()
5188 static int handle_machine_check(struct kvm_vcpu *vcpu) in handle_machine_check()
5205 bool vmx_guest_inject_ac(struct kvm_vcpu *vcpu) in vmx_guest_inject_ac()
5214 static int handle_exception_nmi(struct kvm_vcpu *vcpu) in handle_exception_nmi()
5388 static __always_inline int handle_external_interrupt(struct kvm_vcpu *vcpu) in handle_external_interrupt()
5394 static int handle_triple_fault(struct kvm_vcpu *vcpu) in handle_triple_fault()
5401 static int handle_io(struct kvm_vcpu *vcpu) in handle_io()
5422 void vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) in vmx_patch_hypercall()
5433 static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr0()
5459 static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr4()
5476 static int handle_desc(struct kvm_vcpu *vcpu) in handle_desc()
5488 static int handle_cr(struct kvm_vcpu *vcpu) in handle_cr()
5568 static int handle_dr(struct kvm_vcpu *vcpu) in handle_dr()
5628 void vmx_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) in vmx_sync_dirty_debug_regs()
5647 void vmx_set_dr6(struct kvm_vcpu *vcpu, unsigned long val) in vmx_set_dr6()
5653 void vmx_set_dr7(struct kvm_vcpu *vcpu, unsigned long val) in vmx_set_dr7()
5658 static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu) in handle_tpr_below_threshold()
5664 static int handle_interrupt_window(struct kvm_vcpu *vcpu) in handle_interrupt_window()
5674 static int handle_invlpg(struct kvm_vcpu *vcpu) in handle_invlpg()
5682 static int handle_apic_access(struct kvm_vcpu *vcpu) in handle_apic_access()
5704 static int handle_apic_eoi_induced(struct kvm_vcpu *vcpu) in handle_apic_eoi_induced()
5714 static int handle_apic_write(struct kvm_vcpu *vcpu) in handle_apic_write()
5731 static int handle_task_switch(struct kvm_vcpu *vcpu) in handle_task_switch()
5788 static int handle_ept_violation(struct kvm_vcpu *vcpu) in handle_ept_violation()
5841 static int handle_ept_misconfig(struct kvm_vcpu *vcpu) in handle_ept_misconfig()
5862 static int handle_nmi_window(struct kvm_vcpu *vcpu) in handle_nmi_window()
5874 static bool vmx_emulation_required_with_pending_exception(struct kvm_vcpu *vcpu) in vmx_emulation_required_with_pending_exception()
5882 static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) in handle_invalid_guest_state()
5923 int vmx_vcpu_pre_run(struct kvm_vcpu *vcpu) in vmx_vcpu_pre_run()
5937 static int handle_pause(struct kvm_vcpu *vcpu) in handle_pause()
5952 static int handle_monitor_trap(struct kvm_vcpu *vcpu) in handle_monitor_trap()
5957 static int handle_invpcid(struct kvm_vcpu *vcpu) in handle_invpcid()
5988 static int handle_pml_full(struct kvm_vcpu *vcpu) in handle_pml_full()
6013 static fastpath_t handle_fastpath_preemption_timer(struct kvm_vcpu *vcpu, in handle_fastpath_preemption_timer()
6044 static int handle_preemption_timer(struct kvm_vcpu *vcpu) in handle_preemption_timer()
6060 static int handle_vmx_instruction(struct kvm_vcpu *vcpu) in handle_vmx_instruction()
6067 static int handle_encls(struct kvm_vcpu *vcpu) in handle_encls()
6079 static int handle_bus_lock_vmexit(struct kvm_vcpu *vcpu) in handle_bus_lock_vmexit()
6090 static int handle_notify(struct kvm_vcpu *vcpu) in handle_notify()
6179 void vmx_get_exit_info(struct kvm_vcpu *vcpu, u32 *reason, in vmx_get_exit_info()
6200 void vmx_get_entry_info(struct kvm_vcpu *vcpu, u32 *intr_info, u32 *error_code) in vmx_get_entry_info()
6217 static void vmx_flush_pml_buffer(struct kvm_vcpu *vcpu) in vmx_flush_pml_buffer()
6282 void dump_vmcs(struct kvm_vcpu *vcpu) in dump_vmcs()
6479 static int __vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath) in __vmx_handle_exit()
6640 int vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath) in vmx_handle_exit()
6668 static noinstr void vmx_l1d_flush(struct kvm_vcpu *vcpu) in vmx_l1d_flush()
6729 void vmx_update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) in vmx_update_cr8_intercept()
6745 void vmx_set_virtual_apic_mode(struct kvm_vcpu *vcpu) in vmx_set_virtual_apic_mode()
6799 void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu) in vmx_set_apic_access_page_addr()
6870 void vmx_hwapic_isr_update(struct kvm_vcpu *vcpu, int max_isr) in vmx_hwapic_isr_update()
6925 int vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu) in vmx_sync_pir_to_irr()
6971 void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) in vmx_load_eoi_exitmap()
6982 void vmx_apicv_pre_state_restore(struct kvm_vcpu *vcpu) in vmx_apicv_pre_state_restore()
6993 static void handle_nm_fault_irqoff(struct kvm_vcpu *vcpu) in handle_nm_fault_irqoff()
7013 static void handle_exception_irqoff(struct kvm_vcpu *vcpu, u32 intr_info) in handle_exception_irqoff()
7026 static void handle_external_interrupt_irqoff(struct kvm_vcpu *vcpu, in handle_external_interrupt_irqoff()
7045 void vmx_handle_exit_irqoff(struct kvm_vcpu *vcpu) in vmx_handle_exit_irqoff()
7124 static void __vmx_complete_interrupts(struct kvm_vcpu *vcpu, in __vmx_complete_interrupts()
7185 void vmx_cancel_injection(struct kvm_vcpu *vcpu) in vmx_cancel_injection()
7218 static void vmx_update_hv_timer(struct kvm_vcpu *vcpu, bool force_immediate_exit) in vmx_update_hv_timer()
7277 static fastpath_t vmx_exit_handlers_fastpath(struct kvm_vcpu *vcpu, in vmx_exit_handlers_fastpath()
7300 static noinstr void vmx_vcpu_enter_exit(struct kvm_vcpu *vcpu, in vmx_vcpu_enter_exit()
7357 fastpath_t vmx_vcpu_run(struct kvm_vcpu *vcpu, bool force_immediate_exit) in vmx_vcpu_run()
7508 void vmx_vcpu_free(struct kvm_vcpu *vcpu) in vmx_vcpu_free()
7520 int vmx_vcpu_create(struct kvm_vcpu *vcpu) in vmx_vcpu_create()
7674 u8 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) in vmx_get_mt_mask()
7718 static void nested_vmx_cr_fixed1_bits_update(struct kvm_vcpu *vcpu) in nested_vmx_cr_fixed1_bits_update()
7761 static void update_intel_pt_cfg(struct kvm_vcpu *vcpu) in update_intel_pt_cfg()
7830 void vmx_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu) in vmx_vcpu_after_set_cpuid()
8008 static int vmx_check_intercept_io(struct kvm_vcpu *vcpu, in vmx_check_intercept_io()
8042 int vmx_check_intercept(struct kvm_vcpu *vcpu, in vmx_check_intercept()
8125 int vmx_set_hv_timer(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc, in vmx_set_hv_timer()
8165 void vmx_cancel_hv_timer(struct kvm_vcpu *vcpu) in vmx_cancel_hv_timer()
8171 void vmx_update_cpu_dirty_logging(struct kvm_vcpu *vcpu) in vmx_update_cpu_dirty_logging()
8194 void vmx_setup_mce(struct kvm_vcpu *vcpu) in vmx_setup_mce()
8205 int vmx_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_smi_allowed()
8213 int vmx_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram) in vmx_enter_smm()
8234 int vmx_leave_smm(struct kvm_vcpu *vcpu, const union kvm_smram *smram) in vmx_leave_smm()
8255 void vmx_enable_smi_window(struct kvm_vcpu *vcpu) in vmx_enable_smi_window()
8261 bool vmx_apic_init_signal_blocked(struct kvm_vcpu *vcpu) in vmx_apic_init_signal_blocked()
8266 void vmx_migrate_timers(struct kvm_vcpu *vcpu) in vmx_migrate_timers()
8300 gva_t vmx_get_untagged_addr(struct kvm_vcpu *vcpu, gva_t gva, unsigned int flags) in vmx_get_untagged_addr()
8339 struct kvm_vcpu *vcpu = kvm_get_running_vcpu(); in vmx_handle_intel_pt_intr() local