Skip to content

Commit 9ee71f2

Browse files
Pierre Morelborntraeger
authored andcommitted
KVM: s390: vsie: allow guest FORMAT-0 CRYCB on host FORMAT-2
When the guest schedules a SIE with a FORMAT-0 CRYCB, we are able to schedule it in the host with a FORMAT-2 CRYCB if the host uses FORMAT-2 Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com> Message-Id: <20180925231641.4954-24-akrowiak@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
1 parent 6b79de4 commit 9ee71f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/s390/kvm/vsie.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ static int setup_apcb(struct kvm_vcpu *vcpu, struct kvm_s390_crypto_cb *crycb_s,
246246

247247
switch (fmt_h) {
248248
case CRYCB_FORMAT2:
249-
return -EINVAL;
249+
return setup_apcb10(vcpu, &crycb_s->apcb1,
250+
(unsigned long) &crycb->apcb0,
251+
&crycb_h->apcb1);
250252
case CRYCB_FORMAT1:
251253
case CRYCB_FORMAT0:
252254
return setup_apcb00(vcpu,

0 commit comments

Comments
 (0)