* [PATCH] powerpc/hvcall: Reorder Nestedv2 hcall opcodes
@ 2023-12-19 9:22 Vaibhav Jain
2023-12-31 11:07 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Vaibhav Jain @ 2023-12-19 9:22 UTC (permalink / raw)
To: linuxppc-dev, kvm, kvm-ppc
Cc: mikey, sbhat, amachhiw, Jordan Niethe, gautam, Nicholas Piggin,
David.Laight, kconsul, Vaibhav Jain, Vaidyanathan Srinivasan
This trivial patch reorders the newly introduced hcall opcodes for Nestedv2
to follow the increasing-opcode-number convention followed in
'hvcall.h'. The patch also updates the value for MAX_HCALL_OPCODE which is
at various places in arch code for range checking.
Fixes: 19d31c5f1157 ("KVM: PPC: Add support for nestedv2 guests")
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Vaibhav Jain<vaibhav@linux.ibm.com>
---
arch/powerpc/include/asm/hvcall.h | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h
index ddb99e982917..605ed2b58aff 100644
--- a/arch/powerpc/include/asm/hvcall.h
+++ b/arch/powerpc/include/asm/hvcall.h
@@ -349,7 +349,17 @@
#define H_GET_ENERGY_SCALE_INFO 0x450
#define H_PKS_SIGNED_UPDATE 0x454
#define H_WATCHDOG 0x45C
-#define MAX_HCALL_OPCODE H_WATCHDOG
+#define H_WATCHDOG 0x45C
+#define H_GUEST_GET_CAPABILITIES 0x460
+#define H_GUEST_SET_CAPABILITIES 0x464
+#define H_GUEST_CREATE 0x470
+#define H_GUEST_CREATE_VCPU 0x474
+#define H_GUEST_GET_STATE 0x478
+#define H_GUEST_SET_STATE 0x47C
+#define H_GUEST_RUN_VCPU 0x480
+#define H_GUEST_COPY_MEMORY 0x484
+#define H_GUEST_DELETE 0x488
+#define MAX_HCALL_OPCODE H_GUEST_DELETE
/* Scope args for H_SCM_UNBIND_ALL */
#define H_UNBIND_SCOPE_ALL (0x1)
@@ -393,15 +403,6 @@
#define H_ENTER_NESTED 0xF804
#define H_TLB_INVALIDATE 0xF808
#define H_COPY_TOFROM_GUEST 0xF80C
-#define H_GUEST_GET_CAPABILITIES 0x460
-#define H_GUEST_SET_CAPABILITIES 0x464
-#define H_GUEST_CREATE 0x470
-#define H_GUEST_CREATE_VCPU 0x474
-#define H_GUEST_GET_STATE 0x478
-#define H_GUEST_SET_STATE 0x47C
-#define H_GUEST_RUN_VCPU 0x480
-#define H_GUEST_COPY_MEMORY 0x484
-#define H_GUEST_DELETE 0x488
/* Flags for H_SVM_PAGE_IN */
#define H_PAGE_IN_SHARED 0x1
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc/hvcall: Reorder Nestedv2 hcall opcodes
2023-12-19 9:22 [PATCH] powerpc/hvcall: Reorder Nestedv2 hcall opcodes Vaibhav Jain
@ 2023-12-31 11:07 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2023-12-31 11:07 UTC (permalink / raw)
To: linuxppc-dev, kvm, kvm-ppc, Vaibhav Jain
Cc: mikey, sbhat, amachhiw, Jordan Niethe, gautam, Nicholas Piggin,
David.Laight, kconsul, Vaidyanathan Srinivasan
On Tue, 19 Dec 2023 14:52:36 +0530, Vaibhav Jain wrote:
> This trivial patch reorders the newly introduced hcall opcodes for Nestedv2
> to follow the increasing-opcode-number convention followed in
> 'hvcall.h'. The patch also updates the value for MAX_HCALL_OPCODE which is
> at various places in arch code for range checking.
>
>
Applied to powerpc/next.
[1/1] powerpc/hvcall: Reorder Nestedv2 hcall opcodes
https://git.kernel.org/powerpc/c/eb8446e164572180c2cd0ea4e8494e4419202396
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-31 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-19 9:22 [PATCH] powerpc/hvcall: Reorder Nestedv2 hcall opcodes Vaibhav Jain
2023-12-31 11:07 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).