Lines Matching defs:vcpu
63 struct kvm_vcpu vcpu; member
101 static inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu) in to_vmx()
476 static void update_exception_bitmap(struct kvm_vcpu *vcpu) in update_exception_bitmap()
544 static void vmx_save_host_state(struct kvm_vcpu *vcpu) in vmx_save_host_state()
633 static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_load()
689 static void vmx_vcpu_put(struct kvm_vcpu *vcpu) in vmx_vcpu_put()
694 static void vmx_fpu_activate(struct kvm_vcpu *vcpu) in vmx_fpu_activate()
705 static void vmx_fpu_deactivate(struct kvm_vcpu *vcpu) in vmx_fpu_deactivate()
714 static unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) in vmx_get_rflags()
719 static void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) in vmx_set_rflags()
726 static void skip_emulated_instruction(struct kvm_vcpu *vcpu) in skip_emulated_instruction()
746 static void vmx_queue_exception(struct kvm_vcpu *vcpu, unsigned nr, in vmx_queue_exception()
775 static bool vmx_exception_injected(struct kvm_vcpu *vcpu) in vmx_exception_injected()
872 static int vmx_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) in vmx_get_msr()
924 static int vmx_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data) in vmx_set_msr()
987 static void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) in vmx_cache_reg()
1002 static int set_guest_debug(struct kvm_vcpu *vcpu, struct kvm_debug_guest *dbg) in set_guest_debug()
1040 static int vmx_get_irq(struct kvm_vcpu *vcpu) in vmx_get_irq()
1324 static void enter_pmode(struct kvm_vcpu *vcpu) in enter_pmode()
1386 static void enter_rmode(struct kvm_vcpu *vcpu) in enter_rmode()
1438 static void enter_lmode(struct kvm_vcpu *vcpu) in enter_lmode()
1459 static void exit_lmode(struct kvm_vcpu *vcpu) in exit_lmode()
1470 static void vmx_flush_tlb(struct kvm_vcpu *vcpu) in vmx_flush_tlb()
1477 static void vmx_decache_cr4_guest_bits(struct kvm_vcpu *vcpu) in vmx_decache_cr4_guest_bits()
1483 static void ept_load_pdptrs(struct kvm_vcpu *vcpu) in ept_load_pdptrs()
1501 struct kvm_vcpu *vcpu) in ept_update_paging_mode_cr0()
1527 struct kvm_vcpu *vcpu) in ept_update_paging_mode_cr4()
1536 static void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in vmx_set_cr0()
1581 static void vmx_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) in vmx_set_cr3()
1602 static void vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in vmx_set_cr4()
1615 static void vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) in vmx_set_efer()
1639 static u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg) in vmx_get_segment_base()
1646 static void vmx_get_segment(struct kvm_vcpu *vcpu, in vmx_get_segment()
1669 static int vmx_get_cpl(struct kvm_vcpu *vcpu) in vmx_get_cpl()
1705 static void vmx_set_segment(struct kvm_vcpu *vcpu, in vmx_set_segment()
1733 static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) in vmx_get_cs_db_l_bits()
1741 static void vmx_get_idt(struct kvm_vcpu *vcpu, struct descriptor_table *dt) in vmx_get_idt()
1747 static void vmx_set_idt(struct kvm_vcpu *vcpu, struct descriptor_table *dt) in vmx_set_idt()
1753 static void vmx_get_gdt(struct kvm_vcpu *vcpu, struct descriptor_table *dt) in vmx_get_gdt()
1759 static void vmx_set_gdt(struct kvm_vcpu *vcpu, struct descriptor_table *dt) in vmx_set_gdt()
1765 static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) in rmode_segment_valid()
1783 static bool code_segment_valid(struct kvm_vcpu *vcpu) in code_segment_valid()
1809 static bool stack_segment_valid(struct kvm_vcpu *vcpu) in stack_segment_valid()
1829 static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg) in data_segment_valid()
1852 static bool tr_valid(struct kvm_vcpu *vcpu) in tr_valid()
1868 static bool ldtr_valid(struct kvm_vcpu *vcpu) in ldtr_valid()
1884 static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) in cs_ss_rpl_check()
1900 static bool guest_state_valid(struct kvm_vcpu *vcpu) in guest_state_valid()
2256 static int vmx_vcpu_reset(struct kvm_vcpu *vcpu) in vmx_vcpu_reset()
2378 static void enable_irq_window(struct kvm_vcpu *vcpu) in enable_irq_window()
2387 static void enable_nmi_window(struct kvm_vcpu *vcpu) in enable_nmi_window()
2401 static void vmx_inject_irq(struct kvm_vcpu *vcpu, int irq) in vmx_inject_irq()
2422 static void vmx_inject_nmi(struct kvm_vcpu *vcpu) in vmx_inject_nmi()
2455 static void vmx_update_window_states(struct kvm_vcpu *vcpu) in vmx_update_window_states()
2472 static void kvm_do_inject_irq(struct kvm_vcpu *vcpu) in kvm_do_inject_irq()
2484 static void do_interrupt_requests(struct kvm_vcpu *vcpu, in do_interrupt_requests()
2539 static void kvm_guest_debug_pre(struct kvm_vcpu *vcpu) in kvm_guest_debug_pre()
2557 static int handle_rmode_exception(struct kvm_vcpu *vcpu, in handle_rmode_exception()
2589 static int handle_exception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_exception()
2663 static int handle_external_interrupt(struct kvm_vcpu *vcpu, in handle_external_interrupt()
2671 static int handle_triple_fault(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_triple_fault()
2677 static int handle_io(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_io()
2705 vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) in vmx_patch_hypercall()
2715 static int handle_cr(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_cr()
2792 static int handle_dr(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_dr()
2826 static int handle_cpuid(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_cpuid()
2832 static int handle_rdmsr(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_rdmsr()
2852 static int handle_wrmsr(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_wrmsr()
2870 static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu, in handle_tpr_below_threshold()
2876 static int handle_interrupt_window(struct kvm_vcpu *vcpu, in handle_interrupt_window()
2901 static int handle_halt(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_halt()
2907 static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_vmcall()
2914 static int handle_invlpg(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_invlpg()
2923 static int handle_wbinvd(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_wbinvd()
2930 static int handle_apic_access(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_apic_access()
2950 static int handle_task_switch(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_task_switch()
2974 static int handle_ept_violation(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_ept_violation()
3032 static int handle_nmi_window(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_nmi_window()
3045 static void handle_invalid_guest_state(struct kvm_vcpu *vcpu, in handle_invalid_guest_state()
3115 static int kvm_handle_exit(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) in kvm_handle_exit()
3181 static void update_tpr_threshold(struct kvm_vcpu *vcpu) in update_tpr_threshold()
3256 static void vmx_intr_assist(struct kvm_vcpu *vcpu) in vmx_intr_assist()
3325 static void vmx_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in vmx_vcpu_run()