[PATCH 2/4] qemu: add support for 'fmode' and 'dmode' options