[PATCH 1/1] qemu: add support for 'fmode' and 'dmode'