Lines Matching defs:vcpu
461 static int hv_enable_direct_tlbflush(struct kvm_vcpu *vcpu) in hv_enable_direct_tlbflush()
536 static inline bool cpu_need_virtualize_apic_accesses(struct kvm_vcpu *vcpu) in cpu_need_virtualize_apic_accesses()
718 void vmx_update_exception_bitmap(struct kvm_vcpu *vcpu) in vmx_update_exception_bitmap()
772 static bool msr_write_intercepted(struct kvm_vcpu *vcpu, u32 msr) in msr_write_intercepted()
1016 static inline bool pt_output_base_valid(struct kvm_vcpu *vcpu, u64 base) in pt_output_base_valid()
1108 void vmx_prepare_switch_to_guest(struct kvm_vcpu *vcpu) in vmx_prepare_switch_to_guest()
1241 void vmx_vcpu_load_vmcs(struct kvm_vcpu *vcpu, int cpu, in vmx_vcpu_load_vmcs()
1308 static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_load()
1319 static void vmx_vcpu_put(struct kvm_vcpu *vcpu) in vmx_vcpu_put()
1326 bool vmx_emulation_required(struct kvm_vcpu *vcpu) in vmx_emulation_required()
1331 unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) in vmx_get_rflags()
1349 void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) in vmx_set_rflags()
1373 u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu) in vmx_get_interrupt_shadow()
1386 void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) in vmx_set_interrupt_shadow()
1402 static int vmx_rtit_ctl_check(struct kvm_vcpu *vcpu, u64 data) in vmx_rtit_ctl_check()
1474 static bool vmx_can_emulate_instruction(struct kvm_vcpu *vcpu, void *insn, int insn_len) in vmx_can_emulate_instruction()
1490 static int skip_emulated_instruction(struct kvm_vcpu *vcpu) in skip_emulated_instruction()
1558 static void vmx_update_emulated_instruction(struct kvm_vcpu *vcpu) in vmx_update_emulated_instruction()
1581 static int vmx_skip_emulated_instruction(struct kvm_vcpu *vcpu) in vmx_skip_emulated_instruction()
1587 static void vmx_clear_hlt(struct kvm_vcpu *vcpu) in vmx_clear_hlt()
1600 static void vmx_queue_exception(struct kvm_vcpu *vcpu) in vmx_queue_exception()
1692 u64 vmx_get_l2_tsc_offset(struct kvm_vcpu *vcpu) in vmx_get_l2_tsc_offset()
1702 u64 vmx_get_l2_tsc_multiplier(struct kvm_vcpu *vcpu) in vmx_get_l2_tsc_multiplier()
1713 static void vmx_write_tsc_offset(struct kvm_vcpu *vcpu, u64 offset) in vmx_write_tsc_offset()
1718 static void vmx_write_tsc_multiplier(struct kvm_vcpu *vcpu, u64 multiplier) in vmx_write_tsc_multiplier()
1729 bool nested_vmx_allowed(struct kvm_vcpu *vcpu) in nested_vmx_allowed()
1734 static inline bool vmx_feature_control_msr_valid(struct kvm_vcpu *vcpu, in vmx_feature_control_msr_valid()
1762 static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_get_msr()
1913 static u64 nested_vmx_truncate_sysenter_addr(struct kvm_vcpu *vcpu, in nested_vmx_truncate_sysenter_addr()
1923 static u64 vcpu_supported_debugctl(struct kvm_vcpu *vcpu) in vcpu_supported_debugctl()
1941 static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_set_msr()
2240 static void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) in vmx_cache_reg()
2721 static void fix_pmode_seg(struct kvm_vcpu *vcpu, int seg, in fix_pmode_seg()
2740 static void enter_pmode(struct kvm_vcpu *vcpu) in enter_pmode()
2811 static void enter_rmode(struct kvm_vcpu *vcpu) in enter_rmode()
2858 int vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) in vmx_set_efer()
2882 static void enter_lmode(struct kvm_vcpu *vcpu) in enter_lmode()
2899 static void exit_lmode(struct kvm_vcpu *vcpu) in exit_lmode()
2907 static void vmx_flush_tlb_all(struct kvm_vcpu *vcpu) in vmx_flush_tlb_all()
2930 static void vmx_flush_tlb_current(struct kvm_vcpu *vcpu) in vmx_flush_tlb_current()
2948 static void vmx_flush_tlb_gva(struct kvm_vcpu *vcpu, gva_t addr) in vmx_flush_tlb_gva()
2957 static void vmx_flush_tlb_guest(struct kvm_vcpu *vcpu) in vmx_flush_tlb_guest()
2969 void vmx_ept_load_pdptrs(struct kvm_vcpu *vcpu) in vmx_ept_load_pdptrs()
2984 void ept_save_pdptrs(struct kvm_vcpu *vcpu) in ept_save_pdptrs()
3002 void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in vmx_set_cr0()
3091 u64 construct_eptp(struct kvm_vcpu *vcpu, hpa_t root_hpa, int root_level) in construct_eptp()
3105 static void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, hpa_t root_hpa, in vmx_load_mmu_pgd()
3134 static bool vmx_is_valid_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_is_valid_cr4()
3150 void vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4()
3214 void vmx_get_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in vmx_get_segment()
3250 static u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg) in vmx_get_segment_base()
3261 int vmx_get_cpl(struct kvm_vcpu *vcpu) in vmx_get_cpl()
3293 void __vmx_set_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in __vmx_set_segment()
3330 static void vmx_set_segment(struct kvm_vcpu *vcpu, struct kvm_segment *var, int seg) in vmx_set_segment()
3337 static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) in vmx_get_cs_db_l_bits()
3345 static void vmx_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_idt()
3351 static void vmx_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_idt()
3357 static void vmx_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_gdt()
3363 static void vmx_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_gdt()
3369 static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) in rmode_segment_valid()
3390 static bool code_segment_valid(struct kvm_vcpu *vcpu) in code_segment_valid()
3418 static bool stack_segment_valid(struct kvm_vcpu *vcpu) in stack_segment_valid()
3440 static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg) in data_segment_valid()
3465 static bool tr_valid(struct kvm_vcpu *vcpu) in tr_valid()
3483 static bool ldtr_valid(struct kvm_vcpu *vcpu) in ldtr_valid()
3501 static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) in cs_ss_rpl_check()
3517 bool __vmx_guest_state_valid(struct kvm_vcpu *vcpu) in __vmx_guest_state_valid()
3738 void vmx_disable_intercept_for_msr(struct kvm_vcpu *vcpu, u32 msr, int type) in vmx_disable_intercept_for_msr()
3783 void vmx_enable_intercept_for_msr(struct kvm_vcpu *vcpu, u32 msr, int type) in vmx_enable_intercept_for_msr()
3816 static void vmx_reset_x2apic_msrs(struct kvm_vcpu *vcpu, u8 mode) in vmx_reset_x2apic_msrs()
3833 static void vmx_update_msr_bitmap_x2apic(struct kvm_vcpu *vcpu) in vmx_update_msr_bitmap_x2apic()
3872 void pt_update_intercept_for_msr(struct kvm_vcpu *vcpu) in pt_update_intercept_for_msr()
3888 static bool vmx_guest_apic_has_interrupt(struct kvm_vcpu *vcpu) in vmx_guest_apic_has_interrupt()
3908 static void vmx_msr_filter_changed(struct kvm_vcpu *vcpu) in vmx_msr_filter_changed()
3930 static inline bool kvm_vcpu_trigger_posted_interrupt(struct kvm_vcpu *vcpu, in kvm_vcpu_trigger_posted_interrupt()
3969 static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, in vmx_deliver_nested_posted_interrupt()
3996 static int vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) in vmx_deliver_posted_interrupt()
4087 struct kvm_vcpu *vcpu = &vmx->vcpu; in set_cr4_guest_host_mask() local
4139 static void vmx_refresh_apicv_exec_ctrl(struct kvm_vcpu *vcpu) in vmx_refresh_apicv_exec_ctrl()
4242 struct kvm_vcpu *vcpu = &vmx->vcpu; in vmx_secondary_exec_control() local
4439 static void vmx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) in vmx_vcpu_reset()
4492 static void vmx_enable_irq_window(struct kvm_vcpu *vcpu) in vmx_enable_irq_window()
4497 static void vmx_enable_nmi_window(struct kvm_vcpu *vcpu) in vmx_enable_nmi_window()
4508 static void vmx_inject_irq(struct kvm_vcpu *vcpu) in vmx_inject_irq()
4536 static void vmx_inject_nmi(struct kvm_vcpu *vcpu) in vmx_inject_nmi()
4567 bool vmx_get_nmi_mask(struct kvm_vcpu *vcpu) in vmx_get_nmi_mask()
4581 void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) in vmx_set_nmi_mask()
4601 bool vmx_nmi_blocked(struct kvm_vcpu *vcpu) in vmx_nmi_blocked()
4614 static int vmx_nmi_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_nmi_allowed()
4626 bool vmx_interrupt_blocked(struct kvm_vcpu *vcpu) in vmx_interrupt_blocked()
4636 static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_interrupt_allowed()
4677 static bool rmode_exception(struct kvm_vcpu *vcpu, int vec) in rmode_exception()
4706 static int handle_rmode_exception(struct kvm_vcpu *vcpu, in handle_rmode_exception()
4733 static int handle_machine_check(struct kvm_vcpu *vcpu) in handle_machine_check()
4750 bool vmx_guest_inject_ac(struct kvm_vcpu *vcpu) in vmx_guest_inject_ac()
4759 static int handle_exception_nmi(struct kvm_vcpu *vcpu) in handle_exception_nmi()
4880 static __always_inline int handle_external_interrupt(struct kvm_vcpu *vcpu) in handle_external_interrupt()
4886 static int handle_triple_fault(struct kvm_vcpu *vcpu) in handle_triple_fault()
4893 static int handle_io(struct kvm_vcpu *vcpu) in handle_io()
4915 vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) in vmx_patch_hypercall()
4926 static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr0()
4959 static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr4()
4976 static int handle_desc(struct kvm_vcpu *vcpu) in handle_desc()
4982 static int handle_cr(struct kvm_vcpu *vcpu) in handle_cr()
5062 static int handle_dr(struct kvm_vcpu *vcpu) in handle_dr()
5125 static void vmx_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) in vmx_sync_dirty_debug_regs()
5144 static void vmx_set_dr7(struct kvm_vcpu *vcpu, unsigned long val) in vmx_set_dr7()
5149 static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu) in handle_tpr_below_threshold()
5155 static int handle_interrupt_window(struct kvm_vcpu *vcpu) in handle_interrupt_window()
5165 static int handle_invlpg(struct kvm_vcpu *vcpu) in handle_invlpg()
5173 static int handle_apic_access(struct kvm_vcpu *vcpu) in handle_apic_access()
5195 static int handle_apic_eoi_induced(struct kvm_vcpu *vcpu) in handle_apic_eoi_induced()
5205 static int handle_apic_write(struct kvm_vcpu *vcpu) in handle_apic_write()
5215 static int handle_task_switch(struct kvm_vcpu *vcpu) in handle_task_switch()
5272 static int handle_ept_violation(struct kvm_vcpu *vcpu) in handle_ept_violation()
5328 static int handle_ept_misconfig(struct kvm_vcpu *vcpu) in handle_ept_misconfig()
5349 static int handle_nmi_window(struct kvm_vcpu *vcpu) in handle_nmi_window()
5361 static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) in handle_invalid_guest_state()
5406 static void grow_ple_window(struct kvm_vcpu *vcpu) in grow_ple_window()
5422 static void shrink_ple_window(struct kvm_vcpu *vcpu) in shrink_ple_window()
5442 static int handle_pause(struct kvm_vcpu *vcpu) in handle_pause()
5457 static int handle_monitor_trap(struct kvm_vcpu *vcpu) in handle_monitor_trap()
5462 static int handle_invpcid(struct kvm_vcpu *vcpu) in handle_invpcid()
5496 static int handle_pml_full(struct kvm_vcpu *vcpu) in handle_pml_full()
5521 static fastpath_t handle_fastpath_preemption_timer(struct kvm_vcpu *vcpu) in handle_fastpath_preemption_timer()
5534 static int handle_preemption_timer(struct kvm_vcpu *vcpu) in handle_preemption_timer()
5544 static int handle_vmx_instruction(struct kvm_vcpu *vcpu) in handle_vmx_instruction()
5551 static int handle_encls(struct kvm_vcpu *vcpu) in handle_encls()
5563 static int handle_bus_lock_vmexit(struct kvm_vcpu *vcpu) in handle_bus_lock_vmexit()
5636 static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2, in vmx_get_exit_info()
5664 static void vmx_flush_pml_buffer(struct kvm_vcpu *vcpu) in vmx_flush_pml_buffer()
5721 void dump_vmcs(struct kvm_vcpu *vcpu) in dump_vmcs()
5891 static int __vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath) in __vmx_handle_exit()
6053 static int vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath) in vmx_handle_exit()
6081 static noinstr void vmx_l1d_flush(struct kvm_vcpu *vcpu) in vmx_l1d_flush()
6141 static void vmx_update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) in vmx_update_cr8_intercept()
6157 void vmx_set_virtual_apic_mode(struct kvm_vcpu *vcpu) in vmx_set_virtual_apic_mode()
6211 static void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu) in vmx_set_apic_access_page_addr()
6239 static void vmx_hwapic_isr_update(struct kvm_vcpu *vcpu, int max_isr) in vmx_hwapic_isr_update()
6273 static void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr) in vmx_hwapic_irr_update()
6287 static int vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu) in vmx_sync_pir_to_irr()
6322 static void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) in vmx_load_eoi_exitmap()
6333 static void vmx_apicv_post_state_restore(struct kvm_vcpu *vcpu) in vmx_apicv_post_state_restore()
6343 static void handle_interrupt_nmi_irqoff(struct kvm_vcpu *vcpu, in handle_interrupt_nmi_irqoff()
6367 static void handle_external_interrupt_irqoff(struct kvm_vcpu *vcpu) in handle_external_interrupt_irqoff()
6380 static void vmx_handle_exit_irqoff(struct kvm_vcpu *vcpu) in vmx_handle_exit_irqoff()
6456 static void __vmx_complete_interrupts(struct kvm_vcpu *vcpu, in __vmx_complete_interrupts()
6517 static void vmx_cancel_injection(struct kvm_vcpu *vcpu) in vmx_cancel_injection()
6545 static void vmx_update_hv_timer(struct kvm_vcpu *vcpu) in vmx_update_hv_timer()
6579 static fastpath_t vmx_exit_handlers_fastpath(struct kvm_vcpu *vcpu) in vmx_exit_handlers_fastpath()
6591 static noinstr void vmx_vcpu_enter_exit(struct kvm_vcpu *vcpu, in vmx_vcpu_enter_exit()
6613 static fastpath_t vmx_vcpu_run(struct kvm_vcpu *vcpu) in vmx_vcpu_run()
6801 static void vmx_free_vcpu(struct kvm_vcpu *vcpu) in vmx_free_vcpu()
6812 static int vmx_create_vcpu(struct kvm_vcpu *vcpu) in vmx_create_vcpu()
6984 static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) in vmx_get_mt_mask()
7056 static void nested_vmx_cr_fixed1_bits_update(struct kvm_vcpu *vcpu) in nested_vmx_cr_fixed1_bits_update()
7096 static void nested_vmx_entry_exit_ctls_update(struct kvm_vcpu *vcpu) in nested_vmx_entry_exit_ctls_update()
7113 static void update_intel_pt_cfg(struct kvm_vcpu *vcpu) in update_intel_pt_cfg()
7182 static void vmx_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu) in vmx_vcpu_after_set_cpuid()
7282 static void vmx_request_immediate_exit(struct kvm_vcpu *vcpu) in vmx_request_immediate_exit()
7287 static int vmx_check_intercept_io(struct kvm_vcpu *vcpu, in vmx_check_intercept_io()
7321 static int vmx_check_intercept(struct kvm_vcpu *vcpu, in vmx_check_intercept()
7389 static int vmx_set_hv_timer(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc, in vmx_set_hv_timer()
7429 static void vmx_cancel_hv_timer(struct kvm_vcpu *vcpu) in vmx_cancel_hv_timer()
7435 static void vmx_sched_in(struct kvm_vcpu *vcpu, int cpu) in vmx_sched_in()
7441 void vmx_update_cpu_dirty_logging(struct kvm_vcpu *vcpu) in vmx_update_cpu_dirty_logging()
7461 static int vmx_pre_block(struct kvm_vcpu *vcpu) in vmx_pre_block()
7472 static void vmx_post_block(struct kvm_vcpu *vcpu) in vmx_post_block()
7480 static void vmx_setup_mce(struct kvm_vcpu *vcpu) in vmx_setup_mce()
7490 static int vmx_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection) in vmx_smi_allowed()
7498 static int vmx_enter_smm(struct kvm_vcpu *vcpu, char *smstate) in vmx_enter_smm()
7512 static int vmx_leave_smm(struct kvm_vcpu *vcpu, const char *smstate) in vmx_leave_smm()
7532 static void vmx_enable_smi_window(struct kvm_vcpu *vcpu) in vmx_enable_smi_window()
7537 static bool vmx_apic_init_signal_blocked(struct kvm_vcpu *vcpu) in vmx_apic_init_signal_blocked()
7542 static void vmx_migrate_timers(struct kvm_vcpu *vcpu) in vmx_migrate_timers()