qemu.tests.virtio_console: test_perf fixes

Hi guys,

this patchset fixes some issues in test_perf including an infinite loop fix. See the details in patches.

Kind regards,
Lukáš