summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorGautam Gala <ggala@linux.ibm.com>2026-10-20 10:25:34 +0200
committerChristian Borntraeger <borntraeger@linux.ibm.com>2026-11-05 13:56:23 +0100
commita4ac406a32910b45159fce463032faac7acd3894 (patch)
tree6524de92f910177248f91b0f899a9a46c28b9fbf /tools/perf/scripts/python/bin
parent25ef4be4b4b06c0d21378bf6bced2532216d4d56 (diff)
KVM: s390: pqap: fix AP status written to wrong half of GR1
The AP Queue Status Word (APQSW) occupies bit positions 32-63 of GR1, i.e. the low 32 bits of the 64-bit register, while the upper 32 bits are reserved. The no-hook fallback path in handle_pqap() synthesizes an APQSW and copies struct ap_queue_status directly into GPR1 using memcpy(). On big-endian s390 this places the APQSW in the upper 32 bits of the register rather than in the architecturally defined APQSW field. Use union ap_queue_status_reg and assign its value directly to GPR1. This places APQSW in the correct half of the register and aligns the fallback path with the register layout used by the AP infrastructure. Fixes: e5282de93105 ("s390: ap: kvm: add PQAP interception for AQIC") Reported-by: Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by: Gautam Gala <ggala@linux.ibm.com> Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions