Skip to content

Commit

Permalink
KVM: s390: consider epoch index on hotplugged CPUs
Browse files Browse the repository at this point in the history
We must copy both, the epoch and the epoch_idx.

Signed-off-by: David Hildenbrand <[email protected]>
Message-Id: <[email protected]>
Fixes: 8fa1696 ("KVM: s390: Multiple Epoch Facility support")
Reviewed-by: Cornelia Huck <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Fixes: 8fa1696 ("KVM: s390: Multiple Epoch Facility support")
Cc: [email protected]
Signed-off-by: Christian Borntraeger <[email protected]>
  • Loading branch information
davidhildenbrand authored and borntraeger committed Feb 20, 2018
1 parent 5fe0179 commit d16b52c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/s390/kvm/kvm-s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -2389,6 +2389,7 @@ void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu)
mutex_lock(&vcpu->kvm->lock);
preempt_disable();
vcpu->arch.sie_block->epoch = vcpu->kvm->arch.epoch;
vcpu->arch.sie_block->epdx = vcpu->kvm->arch.epdx;
preempt_enable();
mutex_unlock(&vcpu->kvm->lock);
if (!kvm_is_ucontrol(vcpu->kvm)) {
Expand Down

0 comments on commit d16b52c

Please sign in to comment.