Skip to content

Commit d16b52c

Browse files
davidhildenbrandborntraeger
authored andcommitted
KVM: s390: consider epoch index on hotplugged CPUs
We must copy both, the epoch and the epoch_idx. Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20180207114647.6220-4-david@redhat.com> Fixes: 8fa1696 ("KVM: s390: Multiple Epoch Facility support") Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Fixes: 8fa1696 ("KVM: s390: Multiple Epoch Facility support") Cc: stable@vger.kernel.org Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
1 parent 5fe0179 commit d16b52c

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
@@ -2389,6 +2389,7 @@ void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu)
23892389
mutex_lock(&vcpu->kvm->lock);
23902390
preempt_disable();
23912391
vcpu->arch.sie_block->epoch = vcpu->kvm->arch.epoch;
2392+
vcpu->arch.sie_block->epdx = vcpu->kvm->arch.epdx;
23922393
preempt_enable();
23932394
mutex_unlock(&vcpu->kvm->lock);
23942395
if (!kvm_is_ucontrol(vcpu->kvm)) {

0 commit comments

Comments
 (0)