1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef ARCH_PERF_BOOK3S_HV_HCALLS_H 3 #define ARCH_PERF_BOOK3S_HV_HCALLS_H 4 5 /* 6 * PowerPC HCALL codes : hcall code to name mapping 7 */ 8 #define kvm_trace_symbol_hcall \ 9 {0x4, "H_REMOVE"}, \ 10 {0x8, "H_ENTER"}, \ 11 {0xc, "H_READ"}, \ 12 {0x10, "H_CLEAR_MOD"}, \ 13 {0x14, "H_CLEAR_REF"}, \ 14 {0x18, "H_PROTECT"}, \ 15 {0x1c, "H_GET_TCE"}, \ 16 {0x20, "H_PUT_TCE"}, \ 17 {0x24, "H_SET_SPRG0"}, \ 18 {0x28, "H_SET_DABR"}, \ 19 {0x2c, "H_PAGE_INIT"}, \ 20 {0x30, "H_SET_ASR"}, \ 21 {0x34, "H_ASR_ON"}, \ 22 {0x38, "H_ASR_OFF"}, \ 23 {0x3c, "H_LOGICAL_CI_LOAD"}, \ 24 {0x40, "H_LOGICAL_CI_STORE"}, \ 25 {0x44, "H_LOGICAL_CACHE_LOAD"}, \ 26 {0x48, "H_LOGICAL_CACHE_STORE"}, \ 27 {0x4c, "H_LOGICAL_ICBI"}, \ 28 {0x50, "H_LOGICAL_DCBF"}, \ 29 {0x54, "H_GET_TERM_CHAR"}, \ 30 {0x58, "H_PUT_TERM_CHAR"}, \ 31 {0x5c, "H_REAL_TO_LOGICAL"}, \ 32 {0x60, "H_HYPERVISOR_DATA"}, \ 33 {0x64, "H_EOI"}, \ 34 {0x68, "H_CPPR"}, \ 35 {0x6c, "H_IPI"}, \ 36 {0x70, "H_IPOLL"}, \ 37 {0x74, "H_XIRR"}, \ 38 {0x78, "H_MIGRATE_DMA"}, \ 39 {0x7c, "H_PERFMON"}, \ 40 {0xdc, "H_REGISTER_VPA"}, \ 41 {0xe0, "H_CEDE"}, \ 42 {0xe4, "H_CONFER"}, \ 43 {0xe8, "H_PROD"}, \ 44 {0xec, "H_GET_PPP"}, \ 45 {0xf0, "H_SET_PPP"}, \ 46 {0xf4, "H_PURR"}, \ 47 {0xf8, "H_PIC"}, \ 48 {0xfc, "H_REG_CRQ"}, \ 49 {0x100, "H_FREE_CRQ"}, \ 50 {0x104, "H_VIO_SIGNAL"}, \ 51 {0x108, "H_SEND_CRQ"}, \ 52 {0x110, "H_COPY_RDMA"}, \ 53 {0x114, "H_REGISTER_LOGICAL_LAN"}, \ 54 {0x118, "H_FREE_LOGICAL_LAN"}, \ 55 {0x11c, "H_ADD_LOGICAL_LAN_BUFFER"}, \ 56 {0x120, "H_SEND_LOGICAL_LAN"}, \ 57 {0x124, "H_BULK_REMOVE"}, \ 58 {0x130, "H_MULTICAST_CTRL"}, \ 59 {0x134, "H_SET_XDABR"}, \ 60 {0x138, "H_STUFF_TCE"}, \ 61 {0x13c, "H_PUT_TCE_INDIRECT"}, \ 62 {0x14c, "H_CHANGE_LOGICAL_LAN_MAC"}, \ 63 {0x150, "H_VTERM_PARTNER_INFO"}, \ 64 {0x154, "H_REGISTER_VTERM"}, \ 65 {0x158, "H_FREE_VTERM"}, \ 66 {0x15c, "H_RESET_EVENTS"}, \ 67 {0x160, "H_ALLOC_RESOURCE"}, \ 68 {0x164, "H_FREE_RESOURCE"}, \ 69 {0x168, "H_MODIFY_QP"}, \ 70 {0x16c, "H_QUERY_QP"}, \ 71 {0x170, "H_REREGISTER_PMR"}, \ 72 {0x174, "H_REGISTER_SMR"}, \ 73 {0x178, "H_QUERY_MR"}, \ 74 {0x17c, "H_QUERY_MW"}, \ 75 {0x180, "H_QUERY_HCA"}, \ 76 {0x184, "H_QUERY_PORT"}, \ 77 {0x188, "H_MODIFY_PORT"}, \ 78 {0x18c, "H_DEFINE_AQP1"}, \ 79 {0x190, "H_GET_TRACE_BUFFER"}, \ 80 {0x194, "H_DEFINE_AQP0"}, \ 81 {0x198, "H_RESIZE_MR"}, \ 82 {0x19c, "H_ATTACH_MCQP"}, \ 83 {0x1a0, "H_DETACH_MCQP"}, \ 84 {0x1a4, "H_CREATE_RPT"}, \ 85 {0x1a8, "H_REMOVE_RPT"}, \ 86 {0x1ac, "H_REGISTER_RPAGES"}, \ 87 {0x1b0, "H_DISABLE_AND_GETC"}, \ 88 {0x1b4, "H_ERROR_DATA"}, \ 89 {0x1b8, "H_GET_HCA_INFO"}, \ 90 {0x1bc, "H_GET_PERF_COUNT"}, \ 91 {0x1c0, "H_MANAGE_TRACE"}, \ 92 {0x1d4, "H_FREE_LOGICAL_LAN_BUFFER"}, \ 93 {0x1d8, "H_POLL_PENDING"}, \ 94 {0x1e4, "H_QUERY_INT_STATE"}, \ 95 {0x244, "H_ILLAN_ATTRIBUTES"}, \ 96 {0x250, "H_MODIFY_HEA_QP"}, \ 97 {0x254, "H_QUERY_HEA_QP"}, \ 98 {0x258, "H_QUERY_HEA"}, \ 99 {0x25c, "H_QUERY_HEA_PORT"}, \ 100 {0x260, "H_MODIFY_HEA_PORT"}, \ 101 {0x264, "H_REG_BCMC"}, \ 102 {0x268, "H_DEREG_BCMC"}, \ 103 {0x26c, "H_REGISTER_HEA_RPAGES"}, \ 104 {0x270, "H_DISABLE_AND_GET_HEA"}, \ 105 {0x274, "H_GET_HEA_INFO"}, \ 106 {0x278, "H_ALLOC_HEA_RESOURCE"}, \ 107 {0x284, "H_ADD_CONN"}, \ 108 {0x288, "H_DEL_CONN"}, \ 109 {0x298, "H_JOIN"}, \ 110 {0x2a4, "H_VASI_STATE"}, \ 111 {0x2b0, "H_ENABLE_CRQ"}, \ 112 {0x2b8, "H_GET_EM_PARMS"}, \ 113 {0x2d0, "H_SET_MPP"}, \ 114 {0x2d4, "H_GET_MPP"}, \ 115 {0x2ec, "H_HOME_NODE_ASSOCIATIVITY"}, \ 116 {0x2f4, "H_BEST_ENERGY"}, \ 117 {0x2fc, "H_XIRR_X"}, \ 118 {0x300, "H_RANDOM"}, \ 119 {0x304, "H_COP"}, \ 120 {0x314, "H_GET_MPP_X"}, \ 121 {0x31c, "H_SET_MODE"}, \ 122 {0xf000, "H_RTAS"} \ 123 124 #endif 125