Commit 4103500e authored by Janosch Frank's avatar Janosch Frank Committed by Cornelia Huck
Browse files

s390x: sigp: Fix sense running reporting



The logic was inverted and reported running if the cpu was stopped.
Let's fix that.

Signed-off-by: default avatarJanosch Frank <frankja@linux.ibm.com>
Fixes: d1b468bc ("s390x/tcg: implement SIGP SENSE RUNNING STATUS")
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Message-Id: <20200124134818.9981-1-frankja@linux.ibm.com>
Signed-off-by: default avatarCornelia Huck <cohuck@redhat.com>
parent 3e0209bb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -348,9 +348,9 @@ static void sigp_sense_running(S390CPU *dst_cpu, SigpInfo *si)

    /* If halted (which includes also STOPPED), it is not running */
    if (CPU(dst_cpu)->halted) {
        si->cc = SIGP_CC_ORDER_CODE_ACCEPTED;
    } else {
        set_sigp_status(si, SIGP_STAT_NOT_RUNNING);
    } else {
        si->cc = SIGP_CC_ORDER_CODE_ACCEPTED;
    }
}