Skip to content

Commit 75a4615

Browse files
Julius Niedworokborntraeger
authored andcommitted
KVM: s390: set the prefix initially properly
When KVM_RUN is triggered on a VCPU without an initial reset, a validity intercept occurs. Setting the prefix will set the KVM_REQ_MMU_RELOAD bit initially, thus preventing the bug. Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Julius Niedworok <jniedwor@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
1 parent 29b4817 commit 75a4615

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/s390/kvm/kvm-s390.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,7 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
16721672
KVM_SYNC_CRS |
16731673
KVM_SYNC_ARCH0 |
16741674
KVM_SYNC_PFAULT;
1675+
kvm_s390_set_prefix(vcpu, 0);
16751676
if (test_kvm_facility(vcpu->kvm, 64))
16761677
vcpu->run->kvm_valid_regs |= KVM_SYNC_RICCB;
16771678
/* fprs can be synchronized via vrs, even if the guest has no vx. With

0 commit comments

Comments
 (0)