Searched hist:c173723f247c69974a83af1395020d0f01a0d334 (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/hw/ide/ |
H A D | atapi.c | diff c173723f247c69974a83af1395020d0f01a0d334 Wed Jun 06 14:09:55 CDT 2018 Paolo Bonzini <pbonzini@redhat.com> ide: introduce ide_transfer_start_norecurse
For the case where the end_transfer_func is also the caller of ide_transfer_start, the mutual recursion can lead to unlimited stack usage. Introduce a new version that can be used to change tail recursion into a loop, and use it in trace_ide_atapi_cmd_reply_end.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180606190955.20845-8-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
|
H A D | core.c | diff c173723f247c69974a83af1395020d0f01a0d334 Wed Jun 06 14:09:55 CDT 2018 Paolo Bonzini <pbonzini@redhat.com> ide: introduce ide_transfer_start_norecurse
For the case where the end_transfer_func is also the caller of ide_transfer_start, the mutual recursion can lead to unlimited stack usage. Introduce a new version that can be used to change tail recursion into a loop, and use it in trace_ide_atapi_cmd_reply_end.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180606190955.20845-8-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
|