[PATCH 0/5] qemu: Clean up and fix corner case in 'max_outputs'/heads handling