KVM: s390: Increase permitted SE header size to 1 MiB
PATCH 1/1 KVM: s390: Increase permitted SE header size to 1 MiB
Relax the maximum allowed Secure Execution (SE) header size from 8 KiB to 1 MiB. This allows individual secure guest images to run on a wider range of physical machines.
--- arch/s390/kvm/kvm-s390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/s390/kvm/kvm-s390.c +2 -2
@@ -2744,9 +2744,9 @@ static int kvm_s390_handle_pv(struct kvm *kvm, struct kvm_pv_cmd *cmd)if (copy_from_user (&parms, argp,sizeof (parms)))break ; -/* Currently restricted to 8KB */ +/* Currently restricted to 1MiB */ r = -EINVAL ; -if (parms.length >PAGE_SIZE *2 ) +if (parms.length >SZ_1M )break ; r = -ENOMEM ;
Signature · 1 line
2.51.0
Quoted 5 lines · On Mon, 9 Feb 2026 16:29:25 +0100 Steffen Eiden <[email protected]> wrote:
Relax the maximum allowed Secure Execution (SE) header size from 8 KiB to 1 MiB. This allows individual secure guest images to run on a wider range of physical machines.
Signed-off-by Steffen Eiden <[email protected]>
Quoted 20 lines
--- arch/s390/kvm/kvm-s390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/s390/kvm/kvm-s390.c +2
-2@@ -2744,9 +2744,9 @@ static int kvm_s390_handle_pv(struct kvm *kvm, struct kvm_pv_cmd *cmd)if (copy_from_user (&parms, argp,sizeof (parms)))break ; -/* Currently restricted to 8KB */ +/* Currently restricted to 1MiB */ r = -EINVAL ; -if (parms.length >PAGE_SIZE *2 ) +if (parms.length >SZ_1M )break ; r = -ENOMEM ;
Quoted 5 lines · Steffen Eiden
Relax the maximum allowed Secure Execution (SE) header size from 8 KiB to 1 MiB. This allows individual secure guest images to run on a wider range of physical machines.
Signed-off-by Steffen Eiden <[email protected]>
Quoted 20 lines
--- arch/s390/kvm/kvm-s390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/s390/kvm/kvm-s390.c +2
-2@@ -2744,9 +2744,9 @@ static int kvm_s390_handle_pv(struct kvm *kvm, struct kvm_pv_cmd *cmd)if (copy_from_user (&parms, argp,sizeof (parms)))break ; -/* Currently restricted to 8KB */ +/* Currently restricted to 1MiB */ r = -EINVAL ; -if (parms.length >PAGE_SIZE *2 ) +if (parms.length >SZ_1M )break ; r = -ENOMEM ;
Quoted 15 lines · Steffen Eiden
Relax the maximum allowed Secure Execution (SE) header size from 8 KiB to 1 MiB. This allows individual secure guest images to run on a wider range of physical machines.
Signed-off-by Steffen Eiden <[email protected]>--- arch/s390/kvm/kvm-s390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/s390/kvm/kvm-s390.c +0
-0@@ -2744,9 +2744,9 @@ static int kvm_s390_handle_pv(struct kvm *kvm, struct kvm_pv_cmd *cmd)if (copy_from_user (&parms, argp,sizeof (parms)))
arch/s390/kvm/kvm-s390.c static int kvm_s390_handle_pv(struct kvm *kvm, struct kvm_pv_cmd *cmd) · line 2752
Quoted 10 lines
arch/s390/kvm/kvm-s390.c +2
-2break ; -/* Currently restricted to 8KB */ +/* Currently restricted to 1MiB */ r = -EINVAL ; -if (parms.length >PAGE_SIZE *2 ) +if (parms.length >SZ_1M )break ; r = -ENOMEM ;