Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Julius Niedworok and committed by
Christian Borntraeger
75a4615c 29b4817d

+1
+1
arch/s390/kvm/kvm-s390.c
··· 1672 1672 KVM_SYNC_CRS | 1673 1673 KVM_SYNC_ARCH0 | 1674 1674 KVM_SYNC_PFAULT; 1675 + kvm_s390_set_prefix(vcpu, 0); 1675 1676 if (test_kvm_facility(vcpu->kvm, 64)) 1676 1677 vcpu->run->kvm_valid_regs |= KVM_SYNC_RICCB; 1677 1678 /* fprs can be synchronized via vrs, even if the guest has no vx. With