[PATCH v2 0/4] Add support for QEMU's 'fmode' and 'dmode'