Thread (30 messages) 30 messages, 3 authors, 2021-06-24

Re: [PATCH v6 04/17] powerpc/vas: Add platform specific user window operations

flat view

From: Nicholas Piggin <npiggin@gmail.com>
Date: 2021-06-17 23:27:37
Also in: linux-crypto

Excerpts from Haren Myneni's message of June 18, 2021 6:31 am:
quoted hunk ↗ jump to hunk
PowerNV uses registers to open/close VAS windows, and getting the
paste address. Whereas the hypervisor calls are used on PowerVM.

This patch adds the platform specific user space window operations
and register with the common VAS user space interface.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
---
 arch/powerpc/include/asm/vas.h              | 16 +++++--
 arch/powerpc/platforms/book3s/vas-api.c     | 53 +++++++++++++--------
 arch/powerpc/platforms/powernv/vas-window.c | 45 ++++++++++++++++-
 arch/powerpc/platforms/powernv/vas.h        |  2 +
 4 files changed, 91 insertions(+), 25 deletions(-)
diff --git a/arch/powerpc/include/asm/vas.h b/arch/powerpc/include/asm/vas.h
index 6076adf9ab4f..163a8bb85d02 100644
--- a/arch/powerpc/include/asm/vas.h
+++ b/arch/powerpc/include/asm/vas.h
@@ -5,6 +5,7 @@
 
 #ifndef _ASM_POWERPC_VAS_H
 #define _ASM_POWERPC_VAS_H
+#include <uapi/asm/vas-api.h>
 
 struct vas_window;
 
@@ -48,6 +49,16 @@ enum vas_cop_type {
 	VAS_COP_TYPE_MAX,
 };
 
+/*
+ * User space window operations used for powernv and powerVM
+ */
+struct vas_user_win_ops {
+	struct vas_window * (*open_win)(int vas_id, u64 flags,
+				enum vas_cop_type);
Thanks for changing that to not pass down the struct passed in by the 
user. Looks good.

Thanks,
Nick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help