KVM: s390: take care of clock-comparator sign control
authorDavid Hildenbrand <[email protected]>
Wed, 7 Feb 2018 11:46:42 +0000 (12:46 +0100)
committerChristian Borntraeger <[email protected]>
Tue, 20 Feb 2018 20:50:29 +0000 (20:50 +0000)
commit5fe01793dd953ab947fababe8abaf5ed5258c8df
treed03e75f8bebc3f533f56f7808852453ed32bba1d
parentbaabee67f4135e3de87bc874929ac50637aacb0d
KVM: s390: take care of clock-comparator sign control

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 <[email protected]>
Message-Id: <20180207114647[email protected]>
Fixes: 8fa1696ea781 ("KVM: s390: Multiple Epoch Facility support")
Cc: [email protected]
Reviewed-by: Christian Borntraeger <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
arch/s390/kvm/interrupt.c