Skip to contentSkip to conversation

KVM: s390: consider epoch index on hotplugged CPUs

GIT PULL Christian Borntraeger 1 participant 1 message Feb 22, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: David Hildenbrand <[email protected]>

We must copy both, the epoch and the epoch_idx.

Message-Id: <[email protected]>

Fixes 8fa1696ea781 ("KVM: s390: Multiple Epoch Facility support")
Fixes 8fa1696ea781 ("KVM: s390: Multiple Epoch Facility support")
---
 arch/s390/kvm/kvm-s390.c | 1 +
 1 file changed, 1 insertion(+)
arch/s390/kvm/kvm-s390.c +1 -0
index ba4c7092335a..5b7fe80cda56 100644
@@ -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)) {
Signature · 1 line
2.14.3