Lines Matching defs:vcpu

471 	struct kvm_vcpu       vcpu;  member
561 static inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu) in to_vmx()
782 static inline struct vmcs12 *get_vmcs12(struct kvm_vcpu *vcpu) in get_vmcs12()
787 static struct page *nested_get_page(struct kvm_vcpu *vcpu, gpa_t addr) in nested_get_page()
1565 static void update_exception_bitmap(struct kvm_vcpu *vcpu) in update_exception_bitmap()
1809 static void vmx_save_host_state(struct kvm_vcpu *vcpu) in vmx_save_host_state()
1919 static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_load()
1967 static void vmx_vcpu_put(struct kvm_vcpu *vcpu) in vmx_vcpu_put()
1977 static void vmx_fpu_activate(struct kvm_vcpu *vcpu) in vmx_fpu_activate()
2014 static void vmx_fpu_deactivate(struct kvm_vcpu *vcpu) in vmx_fpu_deactivate()
2041 static unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) in vmx_get_rflags()
2058 static void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) in vmx_set_rflags()
2069 static u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu) in vmx_get_interrupt_shadow()
2082 static void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) in vmx_set_interrupt_shadow()
2098 static void skip_emulated_instruction(struct kvm_vcpu *vcpu) in skip_emulated_instruction()
2114 static int nested_vmx_check_exception(struct kvm_vcpu *vcpu, unsigned nr) in nested_vmx_check_exception()
2127 static void vmx_queue_exception(struct kvm_vcpu *vcpu, unsigned nr, in vmx_queue_exception()
2184 static void vmx_set_msr_bitmap(struct kvm_vcpu *vcpu) in vmx_set_msr_bitmap()
2266 static u64 vmx_read_l1_tsc(struct kvm_vcpu *vcpu, u64 host_tsc) in vmx_read_l1_tsc()
2280 static void vmx_set_tsc_khz(struct kvm_vcpu *vcpu, u32 user_tsc_khz, bool scale) in vmx_set_tsc_khz()
2292 static u64 vmx_read_tsc_offset(struct kvm_vcpu *vcpu) in vmx_read_tsc_offset()
2300 static void vmx_write_tsc_offset(struct kvm_vcpu *vcpu, u64 offset) in vmx_write_tsc_offset()
2323 static void vmx_adjust_tsc_offset(struct kvm_vcpu *vcpu, s64 adjustment, bool host) in vmx_adjust_tsc_offset()
2336 static u64 vmx_compute_tsc_offset(struct kvm_vcpu *vcpu, u64 target_tsc) in vmx_compute_tsc_offset()
2341 static bool guest_cpuid_has_vmx(struct kvm_vcpu *vcpu) in guest_cpuid_has_vmx()
2353 static inline bool nested_vmx_allowed(struct kvm_vcpu *vcpu) in nested_vmx_allowed()
2543 static int vmx_get_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) in vmx_get_vmx_msr()
2643 static int vmx_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) in vmx_get_msr()
2723 static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_set_msr()
2834 static void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) in vmx_cache_reg()
3272 static bool emulation_required(struct kvm_vcpu *vcpu) in emulation_required()
3277 static void fix_pmode_seg(struct kvm_vcpu *vcpu, int seg, in fix_pmode_seg()
3296 static void enter_pmode(struct kvm_vcpu *vcpu) in enter_pmode()
3369 static void enter_rmode(struct kvm_vcpu *vcpu) in enter_rmode()
3417 static void vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) in vmx_set_efer()
3444 static void enter_lmode(struct kvm_vcpu *vcpu) in enter_lmode()
3461 static void exit_lmode(struct kvm_vcpu *vcpu) in exit_lmode()
3469 static void vmx_flush_tlb(struct kvm_vcpu *vcpu) in vmx_flush_tlb()
3479 static void vmx_decache_cr0_guest_bits(struct kvm_vcpu *vcpu) in vmx_decache_cr0_guest_bits()
3487 static void vmx_decache_cr3(struct kvm_vcpu *vcpu) in vmx_decache_cr3()
3494 static void vmx_decache_cr4_guest_bits(struct kvm_vcpu *vcpu) in vmx_decache_cr4_guest_bits()
3502 static void ept_load_pdptrs(struct kvm_vcpu *vcpu) in ept_load_pdptrs()
3518 static void ept_save_pdptrs(struct kvm_vcpu *vcpu) in ept_save_pdptrs()
3539 struct kvm_vcpu *vcpu) in ept_update_paging_mode_cr0()
3565 static void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in vmx_set_cr0()
3620 static void vmx_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) in vmx_set_cr3()
3640 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4()
3692 static void vmx_get_segment(struct kvm_vcpu *vcpu, in vmx_get_segment()
3729 static u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg) in vmx_get_segment_base()
3740 static int vmx_get_cpl(struct kvm_vcpu *vcpu) in vmx_get_cpl()
3772 static void vmx_set_segment(struct kvm_vcpu *vcpu, in vmx_set_segment()
3813 static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) in vmx_get_cs_db_l_bits()
3821 static void vmx_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_idt()
3827 static void vmx_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_idt()
3833 static void vmx_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_get_gdt()
3839 static void vmx_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) in vmx_set_gdt()
3845 static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) in rmode_segment_valid()
3866 static bool code_segment_valid(struct kvm_vcpu *vcpu) in code_segment_valid()
3894 static bool stack_segment_valid(struct kvm_vcpu *vcpu) in stack_segment_valid()
3916 static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg) in data_segment_valid()
3941 static bool tr_valid(struct kvm_vcpu *vcpu) in tr_valid()
3959 static bool ldtr_valid(struct kvm_vcpu *vcpu) in ldtr_valid()
3977 static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) in cs_ss_rpl_check()
3993 static bool guest_state_valid(struct kvm_vcpu *vcpu) in guest_state_valid()
4366 static int vmx_complete_nested_posted_interrupt(struct kvm_vcpu *vcpu) in vmx_complete_nested_posted_interrupt()
4403 static inline bool kvm_vcpu_trigger_posted_interrupt(struct kvm_vcpu *vcpu) in kvm_vcpu_trigger_posted_interrupt()
4415 static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, in vmx_deliver_nested_posted_interrupt()
4441 static void vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) in vmx_deliver_posted_interrupt()
4459 static void vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu) in vmx_sync_pir_to_irr()
4469 static void vmx_sync_pir_to_irr_dummy(struct kvm_vcpu *vcpu) in vmx_sync_pir_to_irr_dummy()
4729 static void vmx_vcpu_reset(struct kvm_vcpu *vcpu) in vmx_vcpu_reset()
4822 static bool nested_exit_on_intr(struct kvm_vcpu *vcpu) in nested_exit_on_intr()
4832 static bool nested_exit_intr_ack_set(struct kvm_vcpu *vcpu) in nested_exit_intr_ack_set()
4838 static bool nested_exit_on_nmi(struct kvm_vcpu *vcpu) in nested_exit_on_nmi()
4844 static void enable_irq_window(struct kvm_vcpu *vcpu) in enable_irq_window()
4853 static void enable_nmi_window(struct kvm_vcpu *vcpu) in enable_nmi_window()
4868 static void vmx_inject_irq(struct kvm_vcpu *vcpu) in vmx_inject_irq()
4895 static void vmx_inject_nmi(struct kvm_vcpu *vcpu) in vmx_inject_nmi()
4926 static bool vmx_get_nmi_mask(struct kvm_vcpu *vcpu) in vmx_get_nmi_mask()
4935 static void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) in vmx_set_nmi_mask()
4955 static int vmx_nmi_allowed(struct kvm_vcpu *vcpu) in vmx_nmi_allowed()
4968 static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu) in vmx_interrupt_allowed()
4993 static bool rmode_exception(struct kvm_vcpu *vcpu, int vec) in rmode_exception()
5025 static int handle_rmode_exception(struct kvm_vcpu *vcpu, in handle_rmode_exception()
5071 static int handle_machine_check(struct kvm_vcpu *vcpu) in handle_machine_check()
5077 static int handle_exception(struct kvm_vcpu *vcpu) in handle_exception()
5188 static int handle_external_interrupt(struct kvm_vcpu *vcpu) in handle_external_interrupt()
5194 static int handle_triple_fault(struct kvm_vcpu *vcpu) in handle_triple_fault()
5200 static int handle_io(struct kvm_vcpu *vcpu) in handle_io()
5223 vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) in vmx_patch_hypercall()
5233 static bool nested_cr0_valid(struct kvm_vcpu *vcpu, unsigned long val) in nested_cr0_valid()
5246 static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr0()
5278 static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val) in handle_set_cr4()
5296 static void handle_clts(struct kvm_vcpu *vcpu) in handle_clts()
5311 static int handle_cr(struct kvm_vcpu *vcpu) in handle_cr()
5390 static int handle_dr(struct kvm_vcpu *vcpu) in handle_dr()
5458 static u64 vmx_get_dr6(struct kvm_vcpu *vcpu) in vmx_get_dr6()
5463 static void vmx_set_dr6(struct kvm_vcpu *vcpu, unsigned long val) in vmx_set_dr6()
5467 static void vmx_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) in vmx_sync_dirty_debug_regs()
5485 static void vmx_set_dr7(struct kvm_vcpu *vcpu, unsigned long val) in vmx_set_dr7()
5490 static int handle_cpuid(struct kvm_vcpu *vcpu) in handle_cpuid()
5496 static int handle_rdmsr(struct kvm_vcpu *vcpu) in handle_rdmsr()
5516 static int handle_wrmsr(struct kvm_vcpu *vcpu) in handle_wrmsr()
5537 static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu) in handle_tpr_below_threshold()
5543 static int handle_interrupt_window(struct kvm_vcpu *vcpu) in handle_interrupt_window()
5569 static int handle_halt(struct kvm_vcpu *vcpu) in handle_halt()
5574 static int handle_vmcall(struct kvm_vcpu *vcpu) in handle_vmcall()
5580 static int handle_invd(struct kvm_vcpu *vcpu) in handle_invd()
5585 static int handle_invlpg(struct kvm_vcpu *vcpu) in handle_invlpg()
5594 static int handle_rdpmc(struct kvm_vcpu *vcpu) in handle_rdpmc()
5604 static int handle_wbinvd(struct kvm_vcpu *vcpu) in handle_wbinvd()
5610 static int handle_xsetbv(struct kvm_vcpu *vcpu) in handle_xsetbv()
5620 static int handle_xsaves(struct kvm_vcpu *vcpu) in handle_xsaves()
5627 static int handle_xrstors(struct kvm_vcpu *vcpu) in handle_xrstors()
5634 static int handle_apic_access(struct kvm_vcpu *vcpu) in handle_apic_access()
5657 static int handle_apic_eoi_induced(struct kvm_vcpu *vcpu) in handle_apic_eoi_induced()
5667 static int handle_apic_write(struct kvm_vcpu *vcpu) in handle_apic_write()
5677 static int handle_task_switch(struct kvm_vcpu *vcpu) in handle_task_switch()
5745 static int handle_ept_violation(struct kvm_vcpu *vcpu) in handle_ept_violation()
5817 static void ept_misconfig_inspect_spte(struct kvm_vcpu *vcpu, u64 spte, in ept_misconfig_inspect_spte()
5856 static int handle_ept_misconfig(struct kvm_vcpu *vcpu) in handle_ept_misconfig()
5894 static int handle_nmi_window(struct kvm_vcpu *vcpu) in handle_nmi_window()
5908 static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) in handle_invalid_guest_state()
5986 static void grow_ple_window(struct kvm_vcpu *vcpu) in grow_ple_window()
5999 static void shrink_ple_window(struct kvm_vcpu *vcpu) in shrink_ple_window()
6259 static int handle_pause(struct kvm_vcpu *vcpu) in handle_pause()
6270 static int handle_nop(struct kvm_vcpu *vcpu) in handle_nop()
6276 static int handle_mwait(struct kvm_vcpu *vcpu) in handle_mwait()
6282 static int handle_monitor(struct kvm_vcpu *vcpu) in handle_monitor()
6380 static void nested_vmx_succeed(struct kvm_vcpu *vcpu) in nested_vmx_succeed()
6387 static void nested_vmx_failInvalid(struct kvm_vcpu *vcpu) in nested_vmx_failInvalid()
6395 static void nested_vmx_failValid(struct kvm_vcpu *vcpu, in nested_vmx_failValid()
6417 static void nested_vmx_abort(struct kvm_vcpu *vcpu, u32 indicator) in nested_vmx_abort()
6442 static int get_vmx_mem_address(struct kvm_vcpu *vcpu, in get_vmx_mem_address()
6496 static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, in nested_vmx_check_vmptr()
6592 static int handle_vmon(struct kvm_vcpu *vcpu) in handle_vmon()
6668 static int nested_vmx_check_permission(struct kvm_vcpu *vcpu) in nested_vmx_check_permission()
6753 static int handle_vmoff(struct kvm_vcpu *vcpu) in handle_vmoff()
6764 static int handle_vmclear(struct kvm_vcpu *vcpu) in handle_vmclear()
6807 static int handle_vmlaunch(struct kvm_vcpu *vcpu) in handle_vmlaunch()
6813 static int handle_vmresume(struct kvm_vcpu *vcpu) in handle_vmresume()
6845 static inline int vmcs12_read_any(struct kvm_vcpu *vcpu, in vmcs12_read_any()
6876 static inline int vmcs12_write_any(struct kvm_vcpu *vcpu, in vmcs12_write_any()
6994 static int nested_vmx_check_vmcs12(struct kvm_vcpu *vcpu) in nested_vmx_check_vmcs12()
7005 static int handle_vmread(struct kvm_vcpu *vcpu) in handle_vmread()
7048 static int handle_vmwrite(struct kvm_vcpu *vcpu) in handle_vmwrite()
7102 static int handle_vmptrld(struct kvm_vcpu *vcpu) in handle_vmptrld()
7153 static int handle_vmptrst(struct kvm_vcpu *vcpu) in handle_vmptrst()
7179 static int handle_invept(struct kvm_vcpu *vcpu) in handle_invept()
7245 static int handle_invvpid(struct kvm_vcpu *vcpu) in handle_invvpid()
7251 static int handle_pml_full(struct kvm_vcpu *vcpu) in handle_pml_full()
7330 static bool nested_vmx_exit_handled_io(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_io()
7379 static bool nested_vmx_exit_handled_msr(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_msr()
7416 static bool nested_vmx_exit_handled_cr(struct kvm_vcpu *vcpu, in nested_vmx_exit_handled_cr()
7497 static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) in nested_vmx_exit_handled()
7629 static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2) in vmx_get_exit_info()
7707 struct kvm_vcpu *vcpu; in kvm_flush_pml_buffers() local
7722 static int vmx_handle_exit(struct kvm_vcpu *vcpu) in vmx_handle_exit()
7812 static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) in update_cr8_intercept()
7828 static void vmx_set_virtual_x2apic_mode(struct kvm_vcpu *vcpu, bool set) in vmx_set_virtual_x2apic_mode()
7857 static void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu, hpa_t hpa) in vmx_set_apic_access_page_addr()
7914 static void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr) in vmx_hwapic_irr_update()
7942 static void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) in vmx_load_eoi_exitmap()
7977 static void vmx_handle_external_intr(struct kvm_vcpu *vcpu) in vmx_handle_external_intr()
8077 static void __vmx_complete_interrupts(struct kvm_vcpu *vcpu, in __vmx_complete_interrupts()
8138 static void vmx_cancel_injection(struct kvm_vcpu *vcpu) in vmx_cancel_injection()
8166 static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu) in vmx_vcpu_run()
8364 static void vmx_load_vmcs01(struct kvm_vcpu *vcpu) in vmx_load_vmcs01()
8380 static void vmx_free_vcpu(struct kvm_vcpu *vcpu) in vmx_free_vcpu()
8505 static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) in vmx_get_mt_mask()
8541 static void vmx_cpuid_update(struct kvm_vcpu *vcpu) in vmx_cpuid_update()
8592 static void nested_ept_inject_page_fault(struct kvm_vcpu *vcpu, in nested_ept_inject_page_fault()
8608 static unsigned long nested_ept_get_cr3(struct kvm_vcpu *vcpu) in nested_ept_get_cr3()
8614 static void nested_ept_init_mmu_context(struct kvm_vcpu *vcpu) in nested_ept_init_mmu_context()
8627 static void nested_ept_uninit_mmu_context(struct kvm_vcpu *vcpu) in nested_ept_uninit_mmu_context()
8644 static void vmx_inject_page_fault_nested(struct kvm_vcpu *vcpu, in vmx_inject_page_fault_nested()
8659 static bool nested_get_vmcs12_pages(struct kvm_vcpu *vcpu, in nested_get_vmcs12_pages()
8735 static void vmx_start_preemption_timer(struct kvm_vcpu *vcpu) in vmx_start_preemption_timer()
8757 static int nested_vmx_check_msr_bitmap_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_msr_bitmap_controls()
8783 static inline bool nested_vmx_merge_msr_bitmap(struct kvm_vcpu *vcpu, in nested_vmx_merge_msr_bitmap()
8862 static int nested_vmx_check_apicv_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_apicv_controls()
8905 static int nested_vmx_check_msr_switch(struct kvm_vcpu *vcpu, in nested_vmx_check_msr_switch()
8930 static int nested_vmx_check_msr_switch_controls(struct kvm_vcpu *vcpu, in nested_vmx_check_msr_switch_controls()
8947 static int nested_vmx_msr_check_common(struct kvm_vcpu *vcpu, in nested_vmx_msr_check_common()
8961 static int nested_vmx_load_msr_check(struct kvm_vcpu *vcpu, in nested_vmx_load_msr_check()
8972 static int nested_vmx_store_msr_check(struct kvm_vcpu *vcpu, in nested_vmx_store_msr_check()
8985 static u32 nested_vmx_load_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) in nested_vmx_load_msr()
9020 static int nested_vmx_store_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) in nested_vmx_store_msr()
9068 static void prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in prepare_vmcs02()
9384 static int nested_vmx_run(struct kvm_vcpu *vcpu, bool launch) in nested_vmx_run()
9596 vmcs12_guest_cr0(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in vmcs12_guest_cr0()
9606 vmcs12_guest_cr4(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) in vmcs12_guest_cr4()
9615 static void vmcs12_save_pending_event(struct kvm_vcpu *vcpu, in vmcs12_save_pending_event()
9657 static int vmx_check_nested_events(struct kvm_vcpu *vcpu, bool external_intr) in vmx_check_nested_events()
9696 static u32 vmx_get_preemption_timer_value(struct kvm_vcpu *vcpu) in vmx_get_preemption_timer_value()
9721 static void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12, in prepare_vmcs12()
9874 static void load_vmcs12_host_state(struct kvm_vcpu *vcpu, in load_vmcs12_host_state()
10011 static void nested_vmx_vmexit(struct kvm_vcpu *vcpu, u32 exit_reason, in nested_vmx_vmexit()
10104 static void vmx_leave_nested(struct kvm_vcpu *vcpu) in vmx_leave_nested()
10118 static void nested_vmx_entry_failure(struct kvm_vcpu *vcpu, in nested_vmx_entry_failure()
10130 static int vmx_check_intercept(struct kvm_vcpu *vcpu, in vmx_check_intercept()
10137 static void vmx_sched_in(struct kvm_vcpu *vcpu, int cpu) in vmx_sched_in()