KVM: s390: don't use kvm lock in interrupt injection code
The kvm lock protects us against vcpus going away, but they only go away when the virtual machine is shut down. We don't need this mutex here, so let's get rid of it. Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
7939503147
commit
331cbc277e
|
@ -991,7 +991,6 @@ int kvm_s390_inject_vcpu(struct kvm_vcpu *vcpu,
|
||||||
trace_kvm_s390_inject_vcpu(vcpu->vcpu_id, s390int->type, s390int->parm,
|
trace_kvm_s390_inject_vcpu(vcpu->vcpu_id, s390int->type, s390int->parm,
|
||||||
s390int->parm64, 2);
|
s390int->parm64, 2);
|
||||||
|
|
||||||
mutex_lock(&vcpu->kvm->lock);
|
|
||||||
li = &vcpu->arch.local_int;
|
li = &vcpu->arch.local_int;
|
||||||
spin_lock(&li->lock);
|
spin_lock(&li->lock);
|
||||||
if (inti->type == KVM_S390_PROGRAM_INT)
|
if (inti->type == KVM_S390_PROGRAM_INT)
|
||||||
|
@ -1003,7 +1002,6 @@ int kvm_s390_inject_vcpu(struct kvm_vcpu *vcpu,
|
||||||
li->action_bits |= ACTION_STOP_ON_STOP;
|
li->action_bits |= ACTION_STOP_ON_STOP;
|
||||||
atomic_set_mask(CPUSTAT_EXT_INT, li->cpuflags);
|
atomic_set_mask(CPUSTAT_EXT_INT, li->cpuflags);
|
||||||
spin_unlock(&li->lock);
|
spin_unlock(&li->lock);
|
||||||
mutex_unlock(&vcpu->kvm->lock);
|
|
||||||
kvm_s390_vcpu_wakeup(vcpu);
|
kvm_s390_vcpu_wakeup(vcpu);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue