[PATCH] qemu: Rewrite of code pattern