Lines Matching refs:kvm_x86_call
999 if (kvm_x86_call(get_cpl)(vcpu) <= required_cpl) in kvm_require_cpl()
1083 return kvm_x86_call(is_valid_cr0)(vcpu, cr0); in kvm_is_valid_cr0()
1142 kvm_x86_call(get_cs_db_l_bits)(vcpu, &cs_db, &cs_l); in kvm_set_cr0()
1156 kvm_x86_call(set_cr0)(vcpu, cr0); in kvm_set_cr0()
1274 if (kvm_x86_call(get_cpl)(vcpu) != 0 || in kvm_emulate_xsetbv()
1287 kvm_x86_call(is_valid_cr4)(vcpu, cr4); in kvm_is_valid_cr4()
1355 kvm_x86_call(set_cr4)(vcpu, cr4); in kvm_set_cr4()
1494 kvm_x86_call(set_dr7)(vcpu, dr7); in kvm_update_dr7()
1671 return kvm_x86_call(get_feature_msr)(index, data); in kvm_get_feature_msr()
1733 r = kvm_x86_call(set_efer)(vcpu, efer); in set_efer()
1863 return kvm_x86_call(set_msr)(vcpu, &msr); in __kvm_set_msr()
1906 ret = kvm_x86_call(get_msr)(vcpu, &msr); in __kvm_get_msr()
1968 return kvm_x86_call(complete_emulated_msr)(vcpu, vcpu->run->msr.error); in complete_fast_msr_access()
2032 return kvm_x86_call(complete_emulated_msr)(vcpu, r); in kvm_emulate_rdmsr()
2057 return kvm_x86_call(complete_emulated_msr)(vcpu, r); in kvm_emulate_wrmsr()
2586 kvm_x86_call(get_l2_tsc_offset)(vcpu), in kvm_vcpu_write_tsc_offset()
2587 kvm_x86_call(get_l2_tsc_multiplier)(vcpu)); in kvm_vcpu_write_tsc_offset()
2591 kvm_x86_call(write_tsc_offset)(vcpu); in kvm_vcpu_write_tsc_offset()
2602 kvm_x86_call(get_l2_tsc_multiplier)(vcpu)); in kvm_vcpu_write_tsc_multiplier()
2607 kvm_x86_call(write_tsc_multiplier)(vcpu); in kvm_vcpu_write_tsc_multiplier()
3580 kvm_x86_call(flush_tlb_all)(vcpu); in kvm_vcpu_flush_tlb_all()
3601 kvm_x86_call(flush_tlb_guest)(vcpu); in kvm_vcpu_flush_tlb_guest()
3614 kvm_x86_call(flush_tlb_current)(vcpu); in kvm_vcpu_flush_tlb_current()
4709 r = kvm_x86_call(has_emulated_msr)(kvm, MSR_IA32_SMBASE); in kvm_vm_ioctl_check_extension()
4792 return kvm_x86_call(dev_get_attr)(attr->group, attr->attr, val); in __kvm_x86_dev_get_attr()
4965 if (kvm_x86_call(has_wbinvd_exit)()) in kvm_arch_vcpu_load()
4972 kvm_x86_call(vcpu_load)(vcpu, cpu); in kvm_arch_vcpu_load()
5072 !kvm_x86_call(get_cpl_no_cache)(vcpu); in kvm_arch_vcpu_put()
5086 kvm_x86_call(vcpu_put)(vcpu); in kvm_arch_vcpu_put()
5093 kvm_x86_call(sync_pir_to_irr)(vcpu); in kvm_vcpu_ioctl_get_lapic()
5210 kvm_x86_call(setup_mce)(vcpu); in kvm_vcpu_ioctl_x86_setup_mce()
5370 events->interrupt.shadow = kvm_x86_call(get_interrupt_shadow)(vcpu); in kvm_vcpu_ioctl_x86_get_vcpu_events()
5374 events->nmi.masked = kvm_x86_call(get_nmi_mask)(vcpu); in kvm_vcpu_ioctl_x86_get_vcpu_events()
5456 kvm_x86_call(set_interrupt_shadow)(vcpu, in kvm_vcpu_ioctl_x86_set_vcpu_events()
5466 kvm_x86_call(set_nmi_mask)(vcpu, events->nmi.masked); in kvm_vcpu_ioctl_x86_set_vcpu_events()
5814 return kvm_x86_call(enable_l2_tlb_flush)(vcpu); in kvm_vcpu_ioctl_enable_cap()
6302 ret = kvm_x86_call(set_tss_addr)(kvm, addr); in kvm_vm_ioctl_set_tss_addr()
6309 return kvm_x86_call(set_identity_map_addr)(kvm, ident_addr); in kvm_vm_ioctl_set_identity_map_addr()
6621 r = kvm_x86_call(vm_copy_enc_context_from)(kvm, cap->args[0]); in kvm_vm_ioctl_enable_cap()
6628 r = kvm_x86_call(vm_move_enc_context_from)(kvm, cap->args[0]); in kvm_vm_ioctl_enable_cap()
7289 r = kvm_x86_call(mem_enc_ioctl)(kvm, argp); in kvm_arch_vm_ioctl()
7303 r = kvm_x86_call(mem_enc_register_region)(kvm, ®ion); in kvm_arch_vm_ioctl()
7317 r = kvm_x86_call(mem_enc_unregister_region)(kvm, ®ion); in kvm_arch_vm_ioctl()
7469 if (!kvm_x86_call(has_emulated_msr)(NULL, in kvm_init_msr_lists()
7529 kvm_x86_call(set_segment)(vcpu, var, seg); in kvm_set_segment()
7535 kvm_x86_call(get_segment)(vcpu, var, seg); in kvm_get_segment()
7558 u64 access = (kvm_x86_call(get_cpl)(vcpu) == 3) ? PFERR_USER_MASK : 0; in kvm_mmu_gva_to_gpa_read()
7568 u64 access = (kvm_x86_call(get_cpl)(vcpu) == 3) ? PFERR_USER_MASK : 0; in kvm_mmu_gva_to_gpa_write()
7621 u64 access = (kvm_x86_call(get_cpl)(vcpu) == 3) ? PFERR_USER_MASK : 0; in kvm_fetch_guest_virt()
7646 u64 access = (kvm_x86_call(get_cpl)(vcpu) == 3) ? PFERR_USER_MASK : 0; in kvm_read_guest_virt()
7669 else if (kvm_x86_call(get_cpl)(vcpu) == 3) in emulator_read_std()
7714 else if (kvm_x86_call(get_cpl)(vcpu) == 3) in emulator_write_std()
7735 return kvm_x86_call(check_emulate_instruction)(vcpu, emul_type, in kvm_check_emulate_insn()
7786 u64 access = ((kvm_x86_call(get_cpl)(vcpu) == 3) ? PFERR_USER_MASK : 0) in vcpu_mmio_gva_to_gpa()
8213 return kvm_x86_call(get_segment_base)(vcpu, seg); in get_segment_base()
8226 if (kvm_x86_call(has_wbinvd_exit)()) { in kvm_emulate_wbinvd_noskip()
8330 return kvm_x86_call(get_cpl)(emul_to_vcpu(ctxt)); in emulator_get_cpl()
8335 kvm_x86_call(get_gdt)(emul_to_vcpu(ctxt), dt); in emulator_get_gdt()
8340 kvm_x86_call(get_idt)(emul_to_vcpu(ctxt), dt); in emulator_get_idt()
8345 kvm_x86_call(set_gdt)(emul_to_vcpu(ctxt), dt); in emulator_set_gdt()
8350 kvm_x86_call(set_idt)(emul_to_vcpu(ctxt), dt); in emulator_set_idt()
8497 return kvm_x86_call(check_intercept)(emul_to_vcpu(ctxt), info, stage, in emulator_intercept()
8540 kvm_x86_call(set_nmi_mask)(emul_to_vcpu(ctxt), masked); in emulator_set_nmi_mask()
8585 return kvm_x86_call(get_untagged_addr)(emul_to_vcpu(ctxt), in emulator_get_untagged_addr()
8646 u32 int_shadow = kvm_x86_call(get_interrupt_shadow)(vcpu); in toggle_interruptibility()
8657 kvm_x86_call(set_interrupt_shadow)(vcpu, mask); in toggle_interruptibility()
8698 kvm_x86_call(get_cs_db_l_bits)(vcpu, &cs_db, &cs_l); in init_emulate_ctxt()
8754 kvm_x86_call(get_exit_info)(vcpu, (u32 *)&info[0], &info[1], &info[2], in prepare_emulation_failure_exit()
8819 kvm_x86_call(get_exit_info)(vcpu, &reason, &info1, &info2, in kvm_prepare_event_vectoring_exit()
8854 if (!is_guest_mode(vcpu) && kvm_x86_call(get_cpl)(vcpu) == 0) { in handle_emulation_failure()
8935 unsigned long rflags = kvm_x86_call(get_rflags)(vcpu); in kvm_skip_emulated_instruction()
8938 r = kvm_x86_call(skip_emulated_instruction)(vcpu); in kvm_skip_emulated_instruction()
8970 return kvm_x86_call(get_interrupt_shadow)(vcpu) & KVM_X86_SHADOW_INT_MOV_SS; in kvm_is_code_breakpoint_inhibited()
9265 unsigned long rflags = kvm_x86_call(get_rflags)(vcpu); in x86_emulate_instruction()
9282 kvm_x86_call(update_emulated_instruction)(vcpu); in x86_emulate_instruction()
9681 return kvm_x86_call(check_processor_compatibility)(); in kvm_x86_check_processor_compatibility()
9820 kvm_x86_call(hardware_unsetup)(); in kvm_x86_vendor_init()
9851 kvm_x86_call(hardware_unsetup)(); in kvm_x86_vendor_exit()
9933 kvm_x86_call(vcpu_get_apicv_inhibit_reasons)(vcpu); in kvm_vcpu_apicv_activated()
10119 kvm_x86_call(get_cpl)(vcpu), in kvm_emulate_hypercall()
10141 kvm_x86_call(patch_hypercall)(vcpu, instruction); in emulator_fix_hypercall()
10158 kvm_run->if_flag = kvm_x86_call(get_if_flag)(vcpu); in post_kvm_run_save()
10195 kvm_x86_call(update_cr8_intercept)(vcpu, tpr, max_irr); in update_cr8_intercept()
10225 kvm_x86_call(inject_exception)(vcpu); in kvm_inject_exception()
10311 kvm_x86_call(inject_nmi)(vcpu); in kvm_check_and_inject_events()
10313 kvm_x86_call(inject_irq)(vcpu, true); in kvm_check_and_inject_events()
10398 r = can_inject ? kvm_x86_call(smi_allowed)(vcpu, true) : in kvm_check_and_inject_events()
10408 kvm_x86_call(enable_smi_window)(vcpu); in kvm_check_and_inject_events()
10413 r = can_inject ? kvm_x86_call(nmi_allowed)(vcpu, true) : in kvm_check_and_inject_events()
10420 kvm_x86_call(inject_nmi)(vcpu); in kvm_check_and_inject_events()
10422 WARN_ON(kvm_x86_call(nmi_allowed)(vcpu, true) < 0); in kvm_check_and_inject_events()
10425 kvm_x86_call(enable_nmi_window)(vcpu); in kvm_check_and_inject_events()
10429 r = can_inject ? kvm_x86_call(interrupt_allowed)(vcpu, true) : in kvm_check_and_inject_events()
10438 kvm_x86_call(inject_irq)(vcpu, false); in kvm_check_and_inject_events()
10439 WARN_ON(kvm_x86_call(interrupt_allowed)(vcpu, true) < 0); in kvm_check_and_inject_events()
10443 kvm_x86_call(enable_irq_window)(vcpu); in kvm_check_and_inject_events()
10489 if (kvm_x86_call(get_nmi_mask)(vcpu) || vcpu->arch.nmi_injected) in process_nmi()
10498 if (kvm_x86_call(is_vnmi_pending)(vcpu)) in process_nmi()
10505 (kvm_x86_call(set_vnmi_pending)(vcpu))) in process_nmi()
10516 kvm_x86_call(is_vnmi_pending)(vcpu); in kvm_get_nr_pending_nmis()
10550 kvm_x86_call(refresh_apicv_exec_ctrl)(vcpu); in __kvm_vcpu_update_apicv()
10650 kvm_x86_call(sync_pir_to_irr)(vcpu); in vcpu_scan_ioapic()
10675 kvm_x86_call(load_eoi_exitmap)(vcpu, eoi_exit_bitmap); in vcpu_load_eoi_exitmap()
10679 kvm_x86_call(load_eoi_exitmap)( in vcpu_load_eoi_exitmap()
10685 kvm_x86_call(guest_memory_reclaimed)(kvm); in kvm_arch_guest_memory_reclaimed()
10693 kvm_x86_call(set_apic_access_page_addr)(vcpu); in kvm_vcpu_reload_apic_access_page()
10857 kvm_x86_call(msr_filter_changed)(vcpu); in vcpu_enter_guest()
10860 kvm_x86_call(update_cpu_dirty_logging)(vcpu); in vcpu_enter_guest()
10890 kvm_x86_call(enable_irq_window)(vcpu); in vcpu_enter_guest()
10905 kvm_x86_call(prepare_switch_to_guest)(vcpu); in vcpu_enter_guest()
10941 kvm_x86_call(sync_pir_to_irr)(vcpu); in vcpu_enter_guest()
10971 kvm_x86_call(set_dr6)(vcpu, vcpu->arch.dr6); in vcpu_enter_guest()
10990 exit_fastpath = kvm_x86_call(vcpu_run)(vcpu, in vcpu_enter_guest()
10996 kvm_x86_call(sync_pir_to_irr)(vcpu); in vcpu_enter_guest()
11015 kvm_x86_call(sync_dirty_debug_regs)(vcpu); in vcpu_enter_guest()
11044 kvm_x86_call(handle_exit_irqoff)(vcpu); in vcpu_enter_guest()
11099 r = kvm_x86_call(handle_exit)(vcpu, exit_fastpath); in vcpu_enter_guest()
11105 kvm_x86_call(cancel_injection)(vcpu); in vcpu_enter_guest()
11135 kvm_x86_call(nmi_allowed)(vcpu, false))) in kvm_vcpu_has_events()
11141 kvm_x86_call(smi_allowed)(vcpu, false))) in kvm_vcpu_has_events()
11364 kvm_x86_call(dy_apicv_has_pending_interrupt)(vcpu); in kvm_arch_dy_has_pending_interrupt()
11580 r = kvm_x86_call(vcpu_pre_run)(vcpu); in kvm_arch_vcpu_ioctl_run()
11708 kvm_x86_call(get_idt)(vcpu, &dt); in __get_sregs_common()
11711 kvm_x86_call(get_gdt)(vcpu, &dt); in __get_sregs_common()
11918 kvm_x86_call(set_idt)(vcpu, &dt); in __set_sregs_common()
11921 kvm_x86_call(set_gdt)(vcpu, &dt); in __set_sregs_common()
11927 kvm_x86_call(post_set_cr3)(vcpu, sregs->cr3); in __set_sregs_common()
11932 kvm_x86_call(set_efer)(vcpu, sregs->efer); in __set_sregs_common()
11935 kvm_x86_call(set_cr0)(vcpu, sregs->cr0); in __set_sregs_common()
11938 kvm_x86_call(set_cr4)(vcpu, sregs->cr4); in __set_sregs_common()
12116 kvm_x86_call(update_exception_bitmap)(vcpu); in kvm_arch_vcpu_ioctl_set_guest_debug()
12253 return kvm_x86_call(vcpu_precreate)(kvm); in kvm_arch_vcpu_precreate()
12323 r = kvm_x86_call(vcpu_create)(vcpu); in kvm_arch_vcpu_create()
12379 kvm_x86_call(vcpu_free)(vcpu); in kvm_arch_vcpu_destroy()
12499 kvm_x86_call(vcpu_reset)(vcpu, init_event); in kvm_vcpu_reset()
12518 kvm_x86_call(set_cr0)(vcpu, new_cr0); in kvm_vcpu_reset()
12519 kvm_x86_call(set_cr4)(vcpu, 0); in kvm_vcpu_reset()
12520 kvm_x86_call(set_efer)(vcpu, 0); in kvm_vcpu_reset()
12521 kvm_x86_call(update_exception_bitmap)(vcpu); in kvm_vcpu_reset()
12588 ret = kvm_x86_call(enable_virtualization_cpu)(); in kvm_arch_enable_virtualization_cpu()
12670 kvm_x86_call(disable_virtualization_cpu)(); in kvm_arch_disable_virtualization_cpu()
12714 ret = kvm_x86_call(vm_init)(kvm); in kvm_arch_init_vm()
12894 kvm_x86_call(vm_destroy)(kvm); in kvm_arch_destroy_vm()
13228 return kvm_x86_call(get_cpl)(vcpu) == 0; in kvm_arch_vcpu_in_kernel()
13248 return kvm_x86_call(interrupt_allowed)(vcpu, false); in kvm_arch_interrupt_allowed()
13274 rflags = kvm_x86_call(get_rflags)(vcpu); in kvm_get_rflags()
13286 kvm_x86_call(set_rflags)(vcpu, rflags); in __kvm_set_rflags()
13398 kvm_x86_call(get_cpl)(vcpu) == 0) in kvm_can_deliver_async_pf()
13509 kvm_x86_call(pi_start_assignment)(kvm); in kvm_arch_start_assignment()
13572 ret = kvm_x86_call(pi_update_irte)(irqfd->kvm, in kvm_arch_irq_bypass_add_producer()
13596 ret = kvm_x86_call(pi_update_irte)(irqfd->kvm, in kvm_arch_irq_bypass_del_producer()
13608 return kvm_x86_call(pi_update_irte)(kvm, host_irq, guest_irq, set); in kvm_arch_update_irqfd_routing()
13634 return kvm_x86_call(gmem_prepare)(kvm, pfn, gfn, max_order); in kvm_arch_gmem_prepare()
13641 kvm_x86_call(gmem_invalidate)(start, end); in kvm_arch_gmem_invalidate()