mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-05 07:08:06 -04:00
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. Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
This commit is contained in:
committed by
Claudio Imbrenda
parent
46aa186a08
commit
e3372ffb5f
@@ -2589,9 +2589,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;
|
||||
|
||||
Reference in New Issue
Block a user