Apply private patch to support QEMU