- applied patch from the Qemu-devel list by Filip Navara