HomeSource World

qemu-vm: fix inconsistent caching of xchg dirs

Description

qemu-vm: fix inconsistent caching of xchg dirs

xchg is advertised as a bidirectional exchange dir, but file content
transfer from host to VM fails due to caching:
If a file is read in the VM and then modified on the host, subsequent
re-reads in the VM can yield old, cached data.
This is caused by the use of 9p's cache=loose mode that is explicitly
meant for read-only mounts.

9p doesn't provide any suitable cache modes, so fix this by disabling
caching.

Also, remove a now unnecessary sync in the test driver.

Details

Provenance
Erik Arvstedt <erik.arvstedt@gmail.com>Authored on May 27 2020, 8:07 PM
sorpaasPushed on Jun 4 2020, 10:16 PM
Parents
rNIXPKGSdfa743e49e45: test-driver: remove useless syncs
Branches
Unknown
Tags
Unknown

Event Timeline

Erik Arvstedt <erik.arvstedt@gmail.com> committed rNIXPKGSd85dc4f69028: qemu-vm: fix inconsistent caching of xchg dirs (authored by Erik Arvstedt <erik.arvstedt@gmail.com>).Jun 1 2020, 7:55 PM