]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: PPC: Book3S HV: tracing: Add missing hcall names
authorFabiano Rosas <farosas@linux.ibm.com>
Tue, 14 Jun 2022 16:52:04 +0000 (13:52 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jun 2022 09:21:29 +0000 (19:21 +1000)
The kvm_trace_symbol_hcall macro is missing several of the hypercalls
defined in hvcall.h.

Add the most common ones that are issued during guest lifetime,
including the ones that are only used by QEMU and SLOF.

Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220614165204.549229-1-farosas@linux.ibm.com
arch/powerpc/include/asm/hvcall.h
arch/powerpc/kvm/trace_hv.h

index d92a20a85395f6d20b1625e49ebc504d3528aded..1d454c70e7c62df2cd5525e86459f0ddd4e25556 100644 (file)
 /* Platform specific hcalls, used by KVM */
 #define H_RTAS                 0xf000
 
+/*
+ * Platform specific hcalls, used by QEMU/SLOF. These are ignored by
+ * KVM and only kept here so we can identify them during tracing.
+ */
+#define H_LOGICAL_MEMOP  0xF001
+#define H_CAS            0XF002
+#define H_UPDATE_DT      0XF003
+
 /* "Platform specific hcalls", provided by PHYP */
 #define H_GET_24X7_CATALOG_PAGE        0xF078
 #define H_GET_24X7_DATA                0xF07C
index 32e2cb5811cc8cd0a977e55ad4ddec31a63c7e2a..8d57c84285319fb0c9217b415e45f75938307833 100644 (file)
@@ -94,6 +94,7 @@
        {H_GET_HCA_INFO,                "H_GET_HCA_INFO"}, \
        {H_GET_PERF_COUNT,              "H_GET_PERF_COUNT"}, \
        {H_MANAGE_TRACE,                "H_MANAGE_TRACE"}, \
+       {H_GET_CPU_CHARACTERISTICS,     "H_GET_CPU_CHARACTERISTICS"}, \
        {H_FREE_LOGICAL_LAN_BUFFER,     "H_FREE_LOGICAL_LAN_BUFFER"}, \
        {H_QUERY_INT_STATE,             "H_QUERY_INT_STATE"}, \
        {H_POLL_PENDING,                "H_POLL_PENDING"}, \
        {H_COP,                         "H_COP"}, \
        {H_GET_MPP_X,                   "H_GET_MPP_X"}, \
        {H_SET_MODE,                    "H_SET_MODE"}, \
-       {H_RTAS,                        "H_RTAS"}
+       {H_REGISTER_PROC_TBL,           "H_REGISTER_PROC_TBL"}, \
+       {H_QUERY_VAS_CAPABILITIES,      "H_QUERY_VAS_CAPABILITIES"}, \
+       {H_INT_GET_SOURCE_INFO,         "H_INT_GET_SOURCE_INFO"}, \
+       {H_INT_SET_SOURCE_CONFIG,       "H_INT_SET_SOURCE_CONFIG"}, \
+       {H_INT_GET_QUEUE_INFO,          "H_INT_GET_QUEUE_INFO"}, \
+       {H_INT_SET_QUEUE_CONFIG,        "H_INT_SET_QUEUE_CONFIG"}, \
+       {H_INT_ESB,                     "H_INT_ESB"}, \
+       {H_INT_RESET,                   "H_INT_RESET"}, \
+       {H_RPT_INVALIDATE,              "H_RPT_INVALIDATE"}, \
+       {H_RTAS,                        "H_RTAS"}, \
+       {H_LOGICAL_MEMOP,               "H_LOGICAL_MEMOP"}, \
+       {H_CAS,                         "H_CAS"}, \
+       {H_UPDATE_DT,                   "H_UPDATE_DT"}, \
+       {H_GET_PERF_COUNTER_INFO,       "H_GET_PERF_COUNTER_INFO"}, \
+       {H_SET_PARTITION_TABLE,         "H_SET_PARTITION_TABLE"}, \
+       {H_ENTER_NESTED,                "H_ENTER_NESTED"}, \
+       {H_TLB_INVALIDATE,              "H_TLB_INVALIDATE"}, \
+       {H_COPY_TOFROM_GUEST,           "H_COPY_TOFROM_GUEST"}
+
 
 #define kvm_trace_symbol_kvmret \
        {RESUME_GUEST,                  "RESUME_GUEST"}, \