KVM: s390: fix cc for successful PQAP
authorEric Farman <farman@linux.ibm.com>
Fri, 1 Dec 2023 18:16:57 +0000 (19:16 +0100)
committerChristian Borntraeger <borntraeger@linux.ibm.com>
Mon, 8 Jan 2024 17:05:44 +0000 (18:05 +0100)
commit83303a4c776ce1032d88df59e811183479acea77
treeb29c6c23a362f1618d2857a9b01046da99aca609
parentfe752331d4b361d43cfd0b89534b4b2176057c32
KVM: s390: fix cc for successful PQAP

The various errors that are possible when processing a PQAP
instruction (the absence of a driver hook, an error FROM that
hook), all correctly set the PSW condition code to 3. But if
that processing works successfully, CC0 needs to be set to
convey that everything was fine.

Fix the check so that the guest can examine the condition code
to determine whether GPR1 has meaningful data.

Fixes: e5282de93105 ("s390: ap: kvm: add PQAP interception for AQIC")
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Link: https://lore.kernel.org/r/20231201181657.1614645-1-farman@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-Id: <20231201181657.1614645-1-farman@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
arch/s390/kvm/priv.c