This table must not have got updated in quite a while; tmem_op for
example has managed to not only appear since then, but also disappear
again (adding a name for it nevertheless, to make more obvious that
something strange is going on if the slot would ever have a non-zero
value).
Also resolve arch_0 and arch_1 to more meaningful names on x86.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
#include <string.h>
#define X(name) [__HYPERVISOR_##name] = #name
-const char *hypercall_name_table[64] =
+static const char *const hypercall_name_table[64] =
{
X(set_trap_table),
X(mmu_update),
X(sysctl),
X(domctl),
X(kexec_op),
+ X(tmem_op),
+ X(argo_op),
+ X(xenpmu_op),
+ X(dm_op),
+ X(hypfs_op),
+#if defined(__i386__) || defined(__x86_64__)
+ X(mca),
+ [__HYPERVISOR_arch_1] = "paging-domctl-continuation",
+#else
X(arch_0),
X(arch_1),
+#endif
X(arch_2),
X(arch_3),
X(arch_4),