s390x/tcg: SET CLOCK COMPARATOR can clear CKC interrupts
authorDavid Hildenbrand <david@redhat.com>
Wed, 27 Jun 2018 13:44:07 +0000 (15:44 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 2 Jul 2018 08:37:38 +0000 (10:37 +0200)
commit345f1ab96e8279a537f32ae7447296d23308c7d1
tree8ef85e2b58ad3ac9c24a3339298260e519e891e8
parent7de3b1cdc67dcb572c1761c2051252e91a438b22
s390x/tcg: SET CLOCK COMPARATOR can clear CKC interrupts

Let's stop the timer and delete any pending CKC IRQ before doing
anything else.

While at it, add a comment why the check for ckc == -1ULL is needed.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180627134410.4901-7-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/misc_helper.c