Skip to content

Commit 61bde82

Browse files
Christian Borntraegermatosatti
authored andcommitted
KVM: s390: Set CPU in stopped state on initial cpu reset
The initial cpu reset sets the cpu in the stopped state. Several places check for the cpu state (e.g. sigp set prefix) and not setting the STOPPED state triggered errors with newer guest kernels after reboot. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
1 parent 00763e4 commit 61bde82

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/s390/kvm/kvm-s390.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ static void kvm_s390_vcpu_initial_reset(struct kvm_vcpu *vcpu)
347347
vcpu->arch.guest_fpregs.fpc = 0;
348348
asm volatile("lfpc %0" : : "Q" (vcpu->arch.guest_fpregs.fpc));
349349
vcpu->arch.sie_block->gbea = 1;
350+
atomic_set_mask(CPUSTAT_STOPPED, &vcpu->arch.sie_block->cpuflags);
350351
}
351352

352353
int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu)

0 commit comments

Comments
 (0)