qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

vvfat: Fix inherit_options flags

Overriding flags violates the precedence rules of
bdrv_reopen_queue_child. Just like the read-only option, no-flush should
be put into the options. The same is done in bdrv_temp_snapshot_options.

Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>

authored by

Fam Zheng and committed by
Kevin Wolf
4f8e3a1f b76e4458

+1 -1
+1 -1
block/vvfat.c
··· 3129 3129 int parent_flags, QDict *parent_options) 3130 3130 { 3131 3131 qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "off"); 3132 - *child_flags = BDRV_O_NO_FLUSH; 3132 + qdict_set_default_str(child_options, BDRV_OPT_CACHE_NO_FLUSH, "on"); 3133 3133 } 3134 3134 3135 3135 static const BdrvChildRole child_vvfat_qcow = {