qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

iotests.py: Enable faulthandler

With this, you can send SIGABRT to a hanging test case and you'll get a
Python stack trace so you know where it was hanging.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200313083617.8326-2-kwolf@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

authored by

Kevin Wolf and committed by
Peter Maydell
aa1cbeb8 7b1e7cb7

+3
+3
tests/qemu-iotests/iotests.py
··· 30 30 import atexit 31 31 import io 32 32 from collections import OrderedDict 33 + import faulthandler 33 34 34 35 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) 35 36 from qemu import qtest 36 37 37 38 assert sys.version_info >= (3,6) 39 + 40 + faulthandler.enable() 38 41 39 42 # This will not work if arguments contain spaces but is necessary if we 40 43 # want to support the override options that ./check supports.