Commit | Line | Data |
---|---|---|
9af5471b JB |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #if !defined(KVM_X86_OP) || !defined(KVM_X86_OP_NULL) | |
3 | BUILD_BUG_ON(1) | |
4 | #endif | |
5 | ||
6 | /* | |
7 | * KVM_X86_OP() and KVM_X86_OP_NULL() are used to help generate | |
8 | * "static_call()"s. They are also intended for use when defining | |
9 | * the vmx/svm kvm_x86_ops. KVM_X86_OP() can be used for those | |
10 | * functions that follow the [svm|vmx]_func_name convention. | |
11 | * KVM_X86_OP_NULL() can leave a NULL definition for the | |
12 | * case where there is no definition or a function name that | |
13 | * doesn't match the typical naming convention is supplied. | |
14 | */ | |
15 | KVM_X86_OP_NULL(hardware_enable) | |
16 | KVM_X86_OP_NULL(hardware_disable) | |
17 | KVM_X86_OP_NULL(hardware_unsetup) | |
18 | KVM_X86_OP_NULL(cpu_has_accelerated_tpr) | |
19 | KVM_X86_OP(has_emulated_msr) | |
20 | KVM_X86_OP(vcpu_after_set_cpuid) | |
21 | KVM_X86_OP(vm_init) | |
22 | KVM_X86_OP_NULL(vm_destroy) | |
23 | KVM_X86_OP(vcpu_create) | |
24 | KVM_X86_OP(vcpu_free) | |
25 | KVM_X86_OP(vcpu_reset) | |
26 | KVM_X86_OP(prepare_guest_switch) | |
27 | KVM_X86_OP(vcpu_load) | |
28 | KVM_X86_OP(vcpu_put) | |
29 | KVM_X86_OP(update_exception_bitmap) | |
30 | KVM_X86_OP(get_msr) | |
31 | KVM_X86_OP(set_msr) | |
32 | KVM_X86_OP(get_segment_base) | |
33 | KVM_X86_OP(get_segment) | |
34 | KVM_X86_OP(get_cpl) | |
35 | KVM_X86_OP(set_segment) | |
36 | KVM_X86_OP_NULL(get_cs_db_l_bits) | |
37 | KVM_X86_OP(set_cr0) | |
38 | KVM_X86_OP(is_valid_cr4) | |
39 | KVM_X86_OP(set_cr4) | |
40 | KVM_X86_OP(set_efer) | |
41 | KVM_X86_OP(get_idt) | |
42 | KVM_X86_OP(set_idt) | |
43 | KVM_X86_OP(get_gdt) | |
44 | KVM_X86_OP(set_gdt) | |
45 | KVM_X86_OP(sync_dirty_debug_regs) | |
46 | KVM_X86_OP(set_dr7) | |
47 | KVM_X86_OP(cache_reg) | |
48 | KVM_X86_OP(get_rflags) | |
49 | KVM_X86_OP(set_rflags) | |
50 | KVM_X86_OP(tlb_flush_all) | |
51 | KVM_X86_OP(tlb_flush_current) | |
52 | KVM_X86_OP_NULL(tlb_remote_flush) | |
53 | KVM_X86_OP_NULL(tlb_remote_flush_with_range) | |
54 | KVM_X86_OP(tlb_flush_gva) | |
55 | KVM_X86_OP(tlb_flush_guest) | |
56 | KVM_X86_OP(run) | |
57 | KVM_X86_OP_NULL(handle_exit) | |
58 | KVM_X86_OP_NULL(skip_emulated_instruction) | |
59 | KVM_X86_OP_NULL(update_emulated_instruction) | |
60 | KVM_X86_OP(set_interrupt_shadow) | |
61 | KVM_X86_OP(get_interrupt_shadow) | |
62 | KVM_X86_OP(patch_hypercall) | |
63 | KVM_X86_OP(set_irq) | |
64 | KVM_X86_OP(set_nmi) | |
65 | KVM_X86_OP(queue_exception) | |
66 | KVM_X86_OP(cancel_injection) | |
67 | KVM_X86_OP(interrupt_allowed) | |
68 | KVM_X86_OP(nmi_allowed) | |
69 | KVM_X86_OP(get_nmi_mask) | |
70 | KVM_X86_OP(set_nmi_mask) | |
71 | KVM_X86_OP(enable_nmi_window) | |
72 | KVM_X86_OP(enable_irq_window) | |
73 | KVM_X86_OP(update_cr8_intercept) | |
74 | KVM_X86_OP(check_apicv_inhibit_reasons) | |
75 | KVM_X86_OP_NULL(pre_update_apicv_exec_ctrl) | |
76 | KVM_X86_OP(refresh_apicv_exec_ctrl) | |
77 | KVM_X86_OP(hwapic_irr_update) | |
78 | KVM_X86_OP(hwapic_isr_update) | |
79 | KVM_X86_OP_NULL(guest_apic_has_interrupt) | |
80 | KVM_X86_OP(load_eoi_exitmap) | |
81 | KVM_X86_OP(set_virtual_apic_mode) | |
82 | KVM_X86_OP_NULL(set_apic_access_page_addr) | |
83 | KVM_X86_OP(deliver_posted_interrupt) | |
84 | KVM_X86_OP_NULL(sync_pir_to_irr) | |
85 | KVM_X86_OP(set_tss_addr) | |
86 | KVM_X86_OP(set_identity_map_addr) | |
87 | KVM_X86_OP(get_mt_mask) | |
88 | KVM_X86_OP(load_mmu_pgd) | |
89 | KVM_X86_OP_NULL(has_wbinvd_exit) | |
90 | KVM_X86_OP(write_l1_tsc_offset) | |
91 | KVM_X86_OP(get_exit_info) | |
92 | KVM_X86_OP(check_intercept) | |
93 | KVM_X86_OP(handle_exit_irqoff) | |
94 | KVM_X86_OP_NULL(request_immediate_exit) | |
95 | KVM_X86_OP(sched_in) | |
9af5471b JB |
96 | KVM_X86_OP_NULL(pre_block) |
97 | KVM_X86_OP_NULL(post_block) | |
98 | KVM_X86_OP_NULL(vcpu_blocking) | |
99 | KVM_X86_OP_NULL(vcpu_unblocking) | |
100 | KVM_X86_OP_NULL(update_pi_irte) | |
101 | KVM_X86_OP_NULL(apicv_post_state_restore) | |
102 | KVM_X86_OP_NULL(dy_apicv_has_pending_interrupt) | |
103 | KVM_X86_OP_NULL(set_hv_timer) | |
104 | KVM_X86_OP_NULL(cancel_hv_timer) | |
105 | KVM_X86_OP(setup_mce) | |
106 | KVM_X86_OP(smi_allowed) | |
107 | KVM_X86_OP(pre_enter_smm) | |
108 | KVM_X86_OP(pre_leave_smm) | |
109 | KVM_X86_OP(enable_smi_window) | |
110 | KVM_X86_OP_NULL(mem_enc_op) | |
111 | KVM_X86_OP_NULL(mem_enc_reg_region) | |
112 | KVM_X86_OP_NULL(mem_enc_unreg_region) | |
113 | KVM_X86_OP(get_msr_feature) | |
114 | KVM_X86_OP(can_emulate_instruction) | |
115 | KVM_X86_OP(apic_init_signal_blocked) | |
116 | KVM_X86_OP_NULL(enable_direct_tlbflush) | |
117 | KVM_X86_OP_NULL(migrate_timers) | |
118 | KVM_X86_OP(msr_filter_changed) | |
119 | KVM_X86_OP_NULL(complete_emulated_msr) | |
120 | ||
121 | #undef KVM_X86_OP | |
122 | #undef KVM_X86_OP_NULL |