KVM: s390: use atomic bitops to access pending_irqs bitmap
authorJens Freimann <jfrei@linux.vnet.ibm.com>
Mon, 1 Dec 2014 15:43:40 +0000 (16:43 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 4 Dec 2014 15:38:57 +0000 (16:38 +0100)
commit9185124e8754e54f3ae03ef3b3eab628aa066ef6
tree5bbe75e2fd8cdf5972de88d1a9ec5ae62811c477
parent467fc29892b8d563592d17d7128296495b6cf335
KVM: s390: use atomic bitops to access pending_irqs bitmap

Currently we use a mixture of atomic/non-atomic bitops
and the local_int spin lock to protect the pending_irqs bitmap
and interrupt payload data.

We need to use atomic bitops for the pending_irqs bitmap everywhere
and in addition acquire the local_int lock where interrupt data needs
to be protected.

Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c