Skip to contentSkip to conversation

s390/uvdevice: Support longer secret lists

PATCH Superseded Steffen Eiden 1 participant 1 message Oct 30, 2024

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/uvdevice: Support longer secret lists

Enable the list IOCTL to provide lists longer than on page (85 entries). The list IOCTL accepts argument length up to 8 pages in page granularity and will fill the argument up to this length with entries until the list ends. User space unaware of this enhancement will still receive one page of data and an uv_rc 0x0100.

---

Janosch picked the rest of this series[1].
This is an alternate approach on how to forward the enhanced list UVC
to userspace without adding a new IOCTL by looping through the list UVCs in kernel space instead of in userspace. This allows a much cleaner API and
streamlined implementation for both, kernel and userspace.

This patch is based on series [1] without PATCH 5.

[1] https://lore.kernel.org/lkml/[email protected]/

 arch/s390/include/uapi/asm/uvdevice.h |  1 +
 drivers/s390/char/uvdevice.c          | 74 ++++++++++++++++++++-------
 2 files changed, 56 insertions(+), 19 deletions(-)
arch/s390/include/uapi/asm/uvdevice.h +1 -0
index 4947f26ad9fb..c584250d4a35 100644
@@ -71,6 +71,7 @@ struct uvio_uvdev_info {
 #define UVIO_ATT_ADDITIONAL_MAX_LEN	0x8000
 #define UVIO_ADD_SECRET_MAX_LEN		0x100000
 #define UVIO_LIST_SECRETS_LEN		0x1000
+#define UVIO_LIST_SECRETS_MAX_LEN	0x8000
 #define UVIO_RETR_SECRET_MAX_LEN	0x2000
 
 #define UVIO_DEVICE_NAME "uv"
drivers/s390/char/uvdevice.c +55 -19

98 lines not on this page · raw message

Signature · 1 line
2.45.2