Skip to content

Commit 73de65f

Browse files
committed
Merge tag 'kvm-s390-master-5.0' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kvm-master
KVM: s390: Fix crypto handling for nested KVM
2 parents a3b22b9 + b10bd9a commit 73de65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kvm/vsie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static int shadow_crycb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
297297
scb_s->crycbd = 0;
298298

299299
apie_h = vcpu->arch.sie_block->eca & ECA_APIE;
300-
if (!apie_h && !key_msk)
300+
if (!apie_h && (!key_msk || fmt_o == CRYCB_FORMAT0))
301301
return 0;
302302

303303
if (!crycb_addr)

0 commit comments

Comments
 (0)