On 07/27/2018 05:13 PM, Markus Armbruster wrote: > qtest_init() creates a new QTestState, and leaves @global_qtest alone. > qtest_start() additionally assigns it to @global_qtest, but > qtest_startf() additionall sets assigns NULL to @global_qtest. This > makes no sense. Replace it by qtest_initf() that works like > qtest_init(), i.e. leaves @global_qtest alone.
FWIW, the original idea was to get rid of global_qtest, and then to remove qtest_init instead: https://lists.gnu.org/archive/html/qemu-devel/2017-09/msg02723.html Not sure whether Eric is still working on these patches, though. Thomas