]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:28:37 +0000 (08:28 -0500)
commit061f22c3845ee3bd9dc060c1810a7e484b7186b8
tree411394c95be0f7213c3782e1d62e955e581160a7
parentdaeb50055d508b661da6c35ca3c08b48ccfb4b75
KVM: s390: take care of clock-comparator sign control

BugLink: http://bugs.launchpad.net/bugs/1755179
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>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/s390/kvm/interrupt.c