| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|---|
| 2 | #if !defined(KVM_X86_PMU_OP) || !defined(KVM_X86_PMU_OP_OPTIONAL) |
| 3 | BUILD_BUG_ON(1) |
| 4 | #endif |
| 5 | |
| 6 | /* |
| 7 | * KVM_X86_PMU_OP() and KVM_X86_PMU_OP_OPTIONAL() are used to help generate |
| 8 | * both DECLARE/DEFINE_STATIC_CALL() invocations and |
| 9 | * "static_call_update()" calls. |
| 10 | * |
| 11 | * KVM_X86_PMU_OP_OPTIONAL() can be used for those functions that can have |
| 12 | * a NULL definition. |
| 13 | */ |
| 14 | KVM_X86_PMU_OP(rdpmc_ecx_to_pmc) |
| 15 | KVM_X86_PMU_OP(msr_idx_to_pmc) |
| 16 | KVM_X86_PMU_OP_OPTIONAL(check_rdpmc_early) |
| 17 | KVM_X86_PMU_OP(is_valid_msr) |
| 18 | KVM_X86_PMU_OP(get_msr) |
| 19 | KVM_X86_PMU_OP(set_msr) |
| 20 | KVM_X86_PMU_OP(refresh) |
| 21 | KVM_X86_PMU_OP(init) |
| 22 | KVM_X86_PMU_OP_OPTIONAL(reset) |
| 23 | KVM_X86_PMU_OP_OPTIONAL(deliver_pmi) |
| 24 | KVM_X86_PMU_OP_OPTIONAL(cleanup) |
| 25 | |
| 26 | #undef KVM_X86_PMU_OP |
| 27 | #undef KVM_X86_PMU_OP_OPTIONAL |
| 28 |
