Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 156 lines 5.0 kB view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2#if !defined(KVM_X86_OP) || \ 3 !defined(KVM_X86_OP_OPTIONAL) || \ 4 !defined(KVM_X86_OP_OPTIONAL_RET0) 5#error Missing one or more KVM_X86_OP #defines 6#else 7/* 8 * KVM_X86_OP() and KVM_X86_OP_OPTIONAL() are used to help generate 9 * both DECLARE/DEFINE_STATIC_CALL() invocations and 10 * "static_call_update()" calls. 11 * 12 * KVM_X86_OP_OPTIONAL() can be used for those functions that can have 13 * a NULL definition. KVM_X86_OP_OPTIONAL_RET0() can be used likewise 14 * to make a definition optional, but in this case the default will 15 * be __static_call_return0. 16 */ 17KVM_X86_OP(check_processor_compatibility) 18KVM_X86_OP(enable_virtualization_cpu) 19KVM_X86_OP(disable_virtualization_cpu) 20KVM_X86_OP(hardware_unsetup) 21KVM_X86_OP(has_emulated_msr) 22KVM_X86_OP(vcpu_after_set_cpuid) 23KVM_X86_OP(vm_init) 24KVM_X86_OP_OPTIONAL(vm_destroy) 25KVM_X86_OP_OPTIONAL(vm_pre_destroy) 26KVM_X86_OP_OPTIONAL_RET0(vcpu_precreate) 27KVM_X86_OP(vcpu_create) 28KVM_X86_OP(vcpu_free) 29KVM_X86_OP(vcpu_reset) 30KVM_X86_OP(prepare_switch_to_guest) 31KVM_X86_OP(vcpu_load) 32KVM_X86_OP(vcpu_put) 33KVM_X86_OP(update_exception_bitmap) 34KVM_X86_OP(get_msr) 35KVM_X86_OP(set_msr) 36KVM_X86_OP(get_segment_base) 37KVM_X86_OP(get_segment) 38KVM_X86_OP(get_cpl) 39KVM_X86_OP(get_cpl_no_cache) 40KVM_X86_OP(set_segment) 41KVM_X86_OP(get_cs_db_l_bits) 42KVM_X86_OP(is_valid_cr0) 43KVM_X86_OP(set_cr0) 44KVM_X86_OP_OPTIONAL(post_set_cr3) 45KVM_X86_OP(is_valid_cr4) 46KVM_X86_OP(set_cr4) 47KVM_X86_OP(set_efer) 48KVM_X86_OP(get_idt) 49KVM_X86_OP(set_idt) 50KVM_X86_OP(get_gdt) 51KVM_X86_OP(set_gdt) 52KVM_X86_OP(sync_dirty_debug_regs) 53KVM_X86_OP(set_dr7) 54KVM_X86_OP(cache_reg) 55KVM_X86_OP(get_rflags) 56KVM_X86_OP(set_rflags) 57KVM_X86_OP(get_if_flag) 58KVM_X86_OP(flush_tlb_all) 59KVM_X86_OP(flush_tlb_current) 60#if IS_ENABLED(CONFIG_HYPERV) 61KVM_X86_OP_OPTIONAL(flush_remote_tlbs) 62KVM_X86_OP_OPTIONAL(flush_remote_tlbs_range) 63#endif 64KVM_X86_OP(flush_tlb_gva) 65KVM_X86_OP(flush_tlb_guest) 66KVM_X86_OP(vcpu_pre_run) 67KVM_X86_OP(vcpu_run) 68KVM_X86_OP(handle_exit) 69KVM_X86_OP(skip_emulated_instruction) 70KVM_X86_OP_OPTIONAL(update_emulated_instruction) 71KVM_X86_OP(set_interrupt_shadow) 72KVM_X86_OP(get_interrupt_shadow) 73KVM_X86_OP(patch_hypercall) 74KVM_X86_OP(inject_irq) 75KVM_X86_OP(inject_nmi) 76KVM_X86_OP_OPTIONAL_RET0(is_vnmi_pending) 77KVM_X86_OP_OPTIONAL_RET0(set_vnmi_pending) 78KVM_X86_OP(inject_exception) 79KVM_X86_OP(cancel_injection) 80KVM_X86_OP(interrupt_allowed) 81KVM_X86_OP(nmi_allowed) 82KVM_X86_OP(get_nmi_mask) 83KVM_X86_OP(set_nmi_mask) 84KVM_X86_OP(enable_nmi_window) 85KVM_X86_OP(enable_irq_window) 86KVM_X86_OP_OPTIONAL(update_cr8_intercept) 87KVM_X86_OP(refresh_apicv_exec_ctrl) 88KVM_X86_OP_OPTIONAL(hwapic_isr_update) 89KVM_X86_OP_OPTIONAL(load_eoi_exitmap) 90KVM_X86_OP_OPTIONAL(set_virtual_apic_mode) 91KVM_X86_OP_OPTIONAL(set_apic_access_page_addr) 92KVM_X86_OP(deliver_interrupt) 93KVM_X86_OP_OPTIONAL(sync_pir_to_irr) 94KVM_X86_OP_OPTIONAL_RET0(set_tss_addr) 95KVM_X86_OP_OPTIONAL_RET0(set_identity_map_addr) 96KVM_X86_OP_OPTIONAL_RET0(get_mt_mask) 97KVM_X86_OP(load_mmu_pgd) 98KVM_X86_OP_OPTIONAL(link_external_spt) 99KVM_X86_OP_OPTIONAL(set_external_spte) 100KVM_X86_OP_OPTIONAL(free_external_spt) 101KVM_X86_OP_OPTIONAL(remove_external_spte) 102KVM_X86_OP(has_wbinvd_exit) 103KVM_X86_OP(get_l2_tsc_offset) 104KVM_X86_OP(get_l2_tsc_multiplier) 105KVM_X86_OP(write_tsc_offset) 106KVM_X86_OP(write_tsc_multiplier) 107KVM_X86_OP(get_exit_info) 108KVM_X86_OP(get_entry_info) 109KVM_X86_OP(check_intercept) 110KVM_X86_OP(handle_exit_irqoff) 111KVM_X86_OP_OPTIONAL(update_cpu_dirty_logging) 112KVM_X86_OP_OPTIONAL(vcpu_blocking) 113KVM_X86_OP_OPTIONAL(vcpu_unblocking) 114KVM_X86_OP_OPTIONAL(pi_update_irte) 115KVM_X86_OP_OPTIONAL(pi_start_bypass) 116KVM_X86_OP_OPTIONAL(apicv_pre_state_restore) 117KVM_X86_OP_OPTIONAL(apicv_post_state_restore) 118KVM_X86_OP_OPTIONAL_RET0(dy_apicv_has_pending_interrupt) 119KVM_X86_OP_OPTIONAL(protected_apic_has_interrupt) 120KVM_X86_OP_OPTIONAL(set_hv_timer) 121KVM_X86_OP_OPTIONAL(cancel_hv_timer) 122KVM_X86_OP(setup_mce) 123#ifdef CONFIG_KVM_SMM 124KVM_X86_OP(smi_allowed) 125KVM_X86_OP(enter_smm) 126KVM_X86_OP(leave_smm) 127KVM_X86_OP(enable_smi_window) 128#endif 129KVM_X86_OP_OPTIONAL(dev_get_attr) 130KVM_X86_OP_OPTIONAL(mem_enc_ioctl) 131KVM_X86_OP_OPTIONAL(vcpu_mem_enc_ioctl) 132KVM_X86_OP_OPTIONAL(vcpu_mem_enc_unlocked_ioctl) 133KVM_X86_OP_OPTIONAL(mem_enc_register_region) 134KVM_X86_OP_OPTIONAL(mem_enc_unregister_region) 135KVM_X86_OP_OPTIONAL(vm_copy_enc_context_from) 136KVM_X86_OP_OPTIONAL(vm_move_enc_context_from) 137KVM_X86_OP_OPTIONAL(guest_memory_reclaimed) 138KVM_X86_OP(get_feature_msr) 139KVM_X86_OP(check_emulate_instruction) 140KVM_X86_OP(apic_init_signal_blocked) 141KVM_X86_OP_OPTIONAL(enable_l2_tlb_flush) 142KVM_X86_OP_OPTIONAL(migrate_timers) 143KVM_X86_OP(recalc_intercepts) 144KVM_X86_OP(complete_emulated_msr) 145KVM_X86_OP(vcpu_deliver_sipi_vector) 146KVM_X86_OP_OPTIONAL_RET0(vcpu_get_apicv_inhibit_reasons); 147KVM_X86_OP_OPTIONAL(get_untagged_addr) 148KVM_X86_OP_OPTIONAL(alloc_apic_backing_page) 149KVM_X86_OP_OPTIONAL_RET0(gmem_prepare) 150KVM_X86_OP_OPTIONAL_RET0(gmem_max_mapping_level) 151KVM_X86_OP_OPTIONAL(gmem_invalidate) 152#endif 153 154#undef KVM_X86_OP 155#undef KVM_X86_OP_OPTIONAL 156#undef KVM_X86_OP_OPTIONAL_RET0