diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-07-25 16:37:19 +0200 |
---|---|---|
committer | Janosch Frank <frankja@linux.ibm.com> | 2023-08-28 09:24:20 +0000 |
commit | 1ad1fa820e6424ae75d3d9f59774e40c9c7ec1e5 (patch) | |
tree | 615f046b44d9f358f3452cc4dbaac541c0347280 /scripts/gdb/linux/pgtable.py | |
parent | ba853a4e1c7addc631df55535bf0b04c62dc79d8 (diff) |
KVM: s390: interrupt: Fix single-stepping userspace-emulated instructions
Single-stepping a userspace-emulated instruction that generates an
interrupt causes GDB to land on the instruction following it instead of
the respective interrupt handler.
The reason is that after arranging a KVM_EXIT_S390_SIEIC exit,
kvm_handle_sie_intercept() calls kvm_s390_handle_per_ifetch_icpt(),
which sets KVM_GUESTDBG_EXIT_PENDING. This bit, however, is not
processed immediately, but rather persists until the next ioctl(),
causing a spurious single-step exit.
Fix by clearing this bit in ioctl().
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20230725143857.228626-5-iii@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Diffstat (limited to 'scripts/gdb/linux/pgtable.py')
0 files changed, 0 insertions, 0 deletions