Power11 firmware can give a virtual ethernet adapter several RX
queues. Add the PAPR 11.20.00 hcall numbers to register a queue, add
buffers to it and free it: H_REG_LOGICAL_LAN_QUEUE (0x49C),
H_ADD_LOGICAL_LAN_BUFFERS_QUEUE (0x4A0) and H_FREE_LOGICAL_LAN_QUEUE
(0x4A8). ibmveth uses the first two later in this series; it frees
every queue with one H_FREE_LOGICAL_LAN, so the third only completes
the set.
Raise MAX_HCALL_OPCODE so hvCall_inst counts them. KVM's
enabled_hcalls bitmap keeps its size, and KVM implements none of
them, so KVM_CAP_PPC_ENABLE_HCALL still rejects them. The
tools/perf powerpc-hcalls names will follow separately.
Signed-off-by: Mingming Cao <m…@linux.ibm.com>
---
arch/powerpc/include/asm/hvcall.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h
index dff90a7d7f70..3b3cc9ed20be 100644
--- a/arch/powerpc/include/asm/hvcall.h
+++ b/arch/powerpc/include/asm/hvcall.h
@@ -362,7 +362,10 @@
#define H_GUEST_DELETE 0x488
#define H_PKS_WRAP_OBJECT 0x490
#define H_PKS_UNWRAP_OBJECT 0x494
-#define MAX_HCALL_OPCODE H_PKS_UNWRAP_OBJECT
+#define H_REG_LOGICAL_LAN_QUEUE 0x49C
+#define H_ADD_LOGICAL_LAN_BUFFERS_QUEUE 0x4A0
+#define H_FREE_LOGICAL_LAN_QUEUE 0x4A8
+#define MAX_HCALL_OPCODE H_FREE_LOGICAL_LAN_QUEUE
/* Scope args for H_SCM_UNBIND_ALL */
#define H_UNBIND_SCOPE_ALL (0x1)
--
2.50.1 (Apple Git-155)