[PATCHv3 2/5] qemu: add support for 'fmode' and 'dmode' options