summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGautam Gala <ggala@linux.ibm.com>2026-10-15 12:48:21 +0200
committerChristian Borntraeger <borntraeger@linux.ibm.com>2026-11-05 13:52:25 +0100
commit25ef4be4b4b06c0d21378bf6bced2532216d4d56 (patch)
treeb34dad95f238cff63ed7047d25d0aad90762dbd6 /tools/perf/scripts/python
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
KVM: s390: fix ESSA addressing exception injection in migration mode
__do_essa() treated any negative return from dat_perform_essa() as the normal "no CBRL entry appended" case and returned 0, so a page-table walk failure silently dropped the addressing exception. Return -PGM_ADDRESSING on a walk failure and inject the program interrupt in __do_essa() for the -PGM_ADDRESSING return value. DAT_WALK_ANY is required in the dat_entry_walk() call so that a GFN backed by a large page (segment or region entry) does not return an error: the walk stops early but succeeds, leaving ptep as NULL, which is already handled by the existing "set exception state, return -1" path. Without DAT_WALK_ANY such addresses would fall through to the new error path and incorrectly inject PGM_ADDRESSING. Fixes: e38c884df921 ("KVM: s390: Switch to new gmap") Reported-by: Christian Borntraeger <borntraeger@linux.ibm.com> Suggested-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by: Gautam Gala <ggala@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions