Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #if !defined(KVM_X86_PMU_OP) || !defined(KVM_X86_PMU_OP_OPTIONAL)
0003 BUILD_BUG_ON(1)
0004 #endif
0005 
0006 /*
0007  * KVM_X86_PMU_OP() and KVM_X86_PMU_OP_OPTIONAL() are used to help generate
0008  * both DECLARE/DEFINE_STATIC_CALL() invocations and
0009  * "static_call_update()" calls.
0010  *
0011  * KVM_X86_PMU_OP_OPTIONAL() can be used for those functions that can have
0012  * a NULL definition, for example if "static_call_cond()" will be used
0013  * at the call sites.
0014  */
0015 KVM_X86_PMU_OP(hw_event_available)
0016 KVM_X86_PMU_OP(pmc_is_enabled)
0017 KVM_X86_PMU_OP(pmc_idx_to_pmc)
0018 KVM_X86_PMU_OP(rdpmc_ecx_to_pmc)
0019 KVM_X86_PMU_OP(msr_idx_to_pmc)
0020 KVM_X86_PMU_OP(is_valid_rdpmc_ecx)
0021 KVM_X86_PMU_OP(is_valid_msr)
0022 KVM_X86_PMU_OP(get_msr)
0023 KVM_X86_PMU_OP(set_msr)
0024 KVM_X86_PMU_OP(refresh)
0025 KVM_X86_PMU_OP(init)
0026 KVM_X86_PMU_OP(reset)
0027 KVM_X86_PMU_OP_OPTIONAL(deliver_pmi)
0028 KVM_X86_PMU_OP_OPTIONAL(cleanup)
0029 
0030 #undef KVM_X86_PMU_OP
0031 #undef KVM_X86_PMU_OP_OPTIONAL