KVM: s390: take care of clock-comparator sign control
authorDavid Hildenbrand <david@redhat.com>
Wed, 7 Feb 2018 11:46:42 +0000 (12:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 06:41:21 +0000 (22:41 -0800)
commitc09ea9a8da5b91baba50a0e8e4d2ac95e163e585
tree8434fcaed0955a7af3aa819029cf087c30867df2
parentbd3ead4576387fc1d71952441c218e57c275cac0
KVM: s390: take care of clock-comparator sign control

commit 5fe01793dd953ab947fababe8abaf5ed5258c8df upstream.

Missed when enabling the Multiple-epoch facility. If the facility is
installed and the control is set, a sign based comaprison has to be
performed.

Right now we would inject wrong interrupts and ignore interrupt
conditions. Also the sleep time is calculated in a wrong way.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180207114647.6220-2-david@redhat.com>
Fixes: 8fa1696ea781 ("KVM: s390: Multiple Epoch Facility support")
Cc: stable@vger.kernel.org
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kvm/interrupt.c