]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: prevent sleep duration underflows in handle_wait()
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 12 Dec 2014 11:26:40 +0000 (12:26 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 23 Jan 2015 12:25:31 +0000 (13:25 +0100)
commit1c6528a27c38ae94fa608a1bee016b46ab0af427
treeb4d5d31b3f759f2e2e7abbd999a2ec6da1b026c3
parentd9c1f0db4f9a5a3db3afc63b2dc6d5347df22517
KVM: s390: prevent sleep duration underflows in handle_wait()

We sometimes get an underflow for the sleep duration, which most
likely won't result in the short sleep time we wanted.

So let's check for sleep duration underflows and directly continue
to run the guest if we get one.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c